Executing A Command In A Different Logical Switch Context - HP StoreFabric SN6500B Administrator's Manual

Fabric os administrator's guide, 7.1.0 (53-1002745-02, march 2013)
Hide thumbs Also See for StoreFabric SN6500B:
Table of Contents

Advertisement

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

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:
Example 1: Executing the switchShow command in a different logical switch context
Fabric OS Administrator's Guide
53-1002745-02

Executing a command in a different logical switch context

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
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
10
293

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fabric os 7.1.0

Table of Contents