Switches

Brocase switches

Some Usefull Brocade Switch commands

 aliadd                     Add a member to a zone alias
 alicreate                  Create a zone alias
 alidelete                  Delete a zone alias
 aliremove                  Remove a member from a zone alias
 alishow                    Print zone alias information

 cfgadd                     Add a member to a configuration
 cfgclear                   Clear all zone configurations
 cfgcreate                  Create a zone configuration
 cfgdelete                  Delete a zone configuration
 cfgdisable                 Disable a zone configuration
 cfgenable                  Enable a zone configuration
 cfgremove                  Remove a member from a configuration
 cfgsave                    Save zone configurations in flash
 cfgshow                    Print zone configuration information
 cfgsize                    Print size details of zone database
 cfgtransabort              Abort zone configuration transaction
 cfgtransshow               Print zone configurations in transaction buffer

 fabportshow                Display contents of a particular port's data
 fabricshow                 Print fabric membership info
 fabstateclear              Clears the fabric state information
 fabstateshow               Displays the fabric state information
 fabstatsshow               Displays the fabric statistics information
 fabswitchshow              Display fabric switch state information

 nsaliasshow                Display local Name Server information with Aliases
 nsallshow                  Print global Name Server information
 nscamshow                  Print local Name Server Cache information
 nsshow                     Print local Name Server information information
 nszonemember               Display the information of all the online devices

 switchshow                 Print switch and port status
 switchuptime               Displays the amount of time for which the switch is up

 portdisable                Disable a specified port
 portenable                 Enable a specified port

 zoneadd                    Add a member to a zone
 zonecreate                 Create a zone
 zonedelete                 Delete a zone
 zonehelp                   Print zoning help info
 zoneremove                 Remove a member from a zone
 zoneshow                   Print zone information 

Cookbook to create a zone and add it to a config

01. Create the alias for the Device WWNs

 swd77:admin> alicreate "ET_CM0_CA0_P1", "21:40:00:0b:5d:6a:05:82"
 swd77:admin> alicreate "test1_fcd0", "50:01:43:80:03:3a:86:ca"

02. Create a new zone called test1

 swd77:admin> zonecreate "test1", "ET_CM0_CA0_P0;test1_fcd0"

03. Create a Config and Add the zone to SAN0 config

 swd77:admin> cfgcreate "SAN0", "test31"   ## To create a config first time
 swd77:admin> cfgadd "SAN0", "test31"

04. Save the zone to flash memeory

 swd77:admin> cfgsave

05. Enable the modified configuration

 swd77:admin> cfgenable SAN0

06. Verify the zone

 swd77:admin> zoneshow
 Defined configuration:
  cfg:   SAN0    aembwpd1; aemtest3
  zone:  aembwpd1
                 Aembwpd1_P0; ET_CM0_CA0_P0
  zone:  test1
                 ET_CM0_CA0_P0; aemtest3_fcd0
  alias: Aembwpd1_P0
                 50:01:43:80:02:9a:92:f0
  alias: ET_CM0_CA0_P0
                 20:40:00:0b:5d:6a:05:82
  alias: ET_CM0_CA0_P1
                 21:40:00:0b:5d:6a:05:82
  alias: test1_fcd0
                 50:01:43:80:03:3a:86:ca   

 Effective configuration:
  cfg:   SAN0
  zone:  aembwpd1
                 50:01:43:80:02:9a:92:f0
                 20:40:00:0b:5d:6a:05:82
  zone:  test1
                 20:40:00:0b:5d:6a:05:82
                 50:01:43:80:03:3a:86:ca  

switchshow command

switchshow [-portcount | -iscsi]

swd77:admin> switchshow -portcount
FC ports =  24

swd77:admin> switchshow
switchName:     swd77
switchType:     71.2
switchState:    Online
switchMode:     Native
switchRole:     Principal
switchDomain:   1
switchId:       fffc01
switchWwn:      10:00:00:05:1e:9b:db:72
zoning:         ON (SAN0)
switchBeacon:   OFF

Area Port Media Speed State     Proto
=====================================
  0   0   id    N4   Online           F-Port  50:01:43:80:02:9a:92:f0
  1   1   id    N4   Online           F-Port  50:01:43:80:02:9a:92:4c
  2   2   id    N4   Online           F-Port  50:01:43:80:03:3a:86:ca
  3   3   id    N4   No_Light
  4   4   id    N4   No_Light
  5   5   id    N4   No_Light
  6   6   id    N4   No_Light
  7   7   id    N4   Online           F-Port  20:40:00:0b:5d:6a:05:82
  8   8   id    N4   No_Light
  9   9   id    N4   No_Light
 10  10   id    N4   No_Light
 11  11   id    N4   No_Light
 12  12   id    N4   No_Light
 13  13   id    N4   No_Light
 14  14   id    N4   No_Light
 15  15   id    N4   Online           F-Port  21:40:00:0b:5d:6a:05:82
 16  16   --    N8   No_Module        (No POD License) Disabled
 17  17   --    N8   No_Module        (No POD License) Disabled
 18  18   --    N8   No_Module        (No POD License) Disabled
 19  19   --    N8   No_Module        (No POD License) Disabled
 20  20   --    N8   No_Module        (No POD License) Disabled
 21  21   --    N8   No_Module        (No POD License) Disabled
 22  22   --    N8   No_Module        (No POD License) Disabled
 23  23   --    N8   No_Module        (No POD License) Disabled 

To delete an alias

 Switch1:admin> alidelete "test1_fcd0"

To Delete a Zone

 Switch1:admin> zonedelete "test01"

To remove test4 zone from configuration SAN1

 Switch2:admin> cfgremove "SAN1", "test4"

McData Switches:

Fabric Manager:

Create a zone
add it to a zoneset
Activate the Zone set

http://www.unixway.com/