beautypg.com

Brocade Fabric OS Administrators Guide (Supporting Fabric OS v7.3.0) User Manual

Page 288

background image

Example of creating a logical switch

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

sw0:FID128:admin> lscfg --create 4

A Logical switch with FID 4 will be created with default configuration.

Would you like to continue [y/n]?:y

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

After you create the logical switch, you assign ports to it, as described in

Adding and moving ports on

a logical switch

on page 290.

Executing a command in a different logical switch context

If you are in the context of a logical switch, you can execute a command for a different logical switch.
You can also execute a command for all of 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:

• To execute a command in a different logical switch context:

fosexec --fid fabricID-cmd "command"

• To execute a command on all logical switches:

fosexec --fid all -cmd "command"

Executing a command in a different logical switch context

288

Fabric OS Administrators Guide

53-1003130-01