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.
1. Connect to the physical chassis and log in using an account with the chassis-role permission.
2. Enter one of the following commands:
Example 1: Executing the switchShow command in a different logical switch context
Example 2: Executing the fabricShow command on all logical switches
Fabric OS Administrator's Guide
53-1002446-01
Executing a command in a different logical switch context
•
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"
sw0:FID128:admin> fosexec --fid 4 -cmd "switchshow"
---------------------------------------------------
"switchshow" on FID 4:
switchName:
switch_4
switchType:
66.1
switchState:
Online
switchMode:
Native
switchRole:
Principal
switchDomain:
14
switchId:
fffc0e
switchWwn:
10:00:00:05:1e:82:3c:2b
zoning:
OFF
switchBeacon:
OFF
FC Router:
OFF
Fabric Name:
Fab4
Allow XISL Use: ON
LS Attributes:
[FID: 4, Base Switch: No, Default Switch: No, Address Mode 0]
Index Port Address Media Speed State
==============================================
22
22
0e1600
--
23
23
0e1700
--
sw0:FID128:admin> fosexec --fid all -cmd "fabricshow"
---------------------------------------------------
"fabricshow" on FID 128:
Switch ID
Worldwide Name
-------------------------------------------------------------------------
97: fffc61 10:00:00:05:1e:82:3c:2a 10.32.79.105
---------------------------------------------------
Proto
N8
No_Module
FC
N8
No_Module
FC
Enet IP Addr
Disabled
Disabled
FC IP Addr
0.0.0.0
10
Name
>"sw0"
229