Brocade Fabric OS Command Reference Manual v6.2.0 (53-1001186-01, April 2009)

Fabric OS Command Reference 443
53-1001186-01
fosExec
2
fosExec
Executes a command in a specified logical fabric context.
Synopsis fosexec -fid FID "cmd"
Description Use this command to manage logical switches in the chassis. This command executes a specified
command on a specified logical switch. The logical switch is identified by its fabric ID (FID). The
commands you can execute are defined by the role of the account that executes the command. The
FID must be part of the FID permission list associated with the account. Refer to userConfig help
for more information.
Note The execution of this command is subject to Virtual Fabric or Admin Domain restrictions that may
be in place. Refer to chapter 1, "Using Fabric OS Commands" and Appendix A, "Command
Availability" for details.
Operands This command has the following operands:
-fid FID Specifies the Fabric ID of the logical switch for which the command is
executed.
"cmd" Specifies the command to be executed, enclosed in double quotation marks.
Examples To display switch information for a logical switch with FID 20:
switch:admin> fosexec --fid 2 "switchshow"
switchName: Spirit_66
switchType: 66.1
switchState: Online
switchMode: Native
switchRole: Principal
switchDomain: 66
switchId: fffc42
switchWwn: 10:00:00:05:1e:41:5c:c1
zoning: ON (zone2_cfg)
switchBeacon: OFF
FC Router: OFF
Allow XISL Use: ON
LS Attributes: [FID: 20, Base Switch: No, Default Switch: Yes]
Area Port Media Speed State Proto
=====================================
0 0 id N8 No_Light Disabled (Persistent)
1 1 id N8 No_Light Disabled (Persistent)
2 2 id N8 No_Light
3 3 -- N8 No_Module
4 4 id N4 No_Light
5 5 id N4 No_Light
6 6 id N2 No_Light
7 7 id N2 Online F-Port 10:00:00:00:c9:2e:2d:24
10 10 id N4 Online F-Port 10:00:00:06:2b:0f:42:07
11 11 id N4 Online F-Port 10:00:00:06:2b:0f:42:b4
14 14 id N4 No_Light
15 15 id N4 No_Light
16 16 id N8 No_Light
17 17 id N2 No_Light
18 18 id N8 No_Light