Dell POWEREDGE M1000E User Manual

Page 293

Advertising
background image

Fabric OS Administrator’s Guide

293

53-1002745-02

Executing a command in a different logical switch context

10

Example

The following example creates a logical switch with FID 4, and then assigns domain ID 14 to it.

sw0:FID128:admin> lscfg --create 4
About to create switch with fid=4. Please wait...
Logical Switch with FID (4) has been successfully created.

Logical Switch has been created with default configurations.
Please configure the Logical Switch with appropriate switch
and protocol settings before activating the Logical Switch.
sw0:FID128:admin> setcontext 4
switch_4:FID4:admin> switchdisable
switch_4:FID4:admin> configure

Configure...

Fabric parameters (yes, y, no, n): [no] yes
Domain: (1..239) [1] 100
Select Addressing Mode:
(1 = Zero Based Area Assignment,
2 = Port Based Area Assignment): (1..2) [2] 2
WWN Based persistent PID (yes, y, no, n): [no]

(output truncated)

WARNING: The domain ID will be changed. The port level zoning may be affected

switch_4:FID4:admin> switchenable

Executing a command in a different logical switch context

This procedure describes how to execute a command for a logical switch while you are in the
context of a different logical switch. You can also execute a command for all the logical switches in
a chassis.

The command is not executed on those logical switches for which you do not have permission.

Use the following procedure to execute a command in a different logical switch context:

1. Connect to the physical chassis and log in using an account with the chassis-role permission.

2. Enter one of the following commands:

To execute a command in a different logical switch context:

fosexec --fid fabricID -cmd "command"

To execute the command on all logical switches:

fosexec --fid all -cmd "command"

Example 1: Executing the switchShow command in a different logical switch context

sw0:FID128:admin> fosexec --fid 4 -cmd "switchshow"

---------------------------------------------------

"switchshow" on FID 4:

switchName:

switch_4

switchType:

66.1

switchState:

Online

Advertising