Table of ContentsView in Frames

Setting the Brocade FC switch values to factory defaults

You must set the switch to its factory defaults to ensure a successful configuration. You must also assign each switch a unique name.

About this task

In the examples in this procedure, the fabric consists of BrocadeSwitchA and BrocadeSwitchB.

Steps

  1. Make a console connection and log in to both switches in one fabric.
  2. Disable the switch persistently: switchcfgpersistentdisable
    This ensures the switch will remain disabled after a reboot or fastboot. If this command is not available, use the switchdisable command.
    Example
    The following example shows the command on BrocadeSwitchA:
    BrocadeSwitchA:admin> switchcfgpersistentdisable
    The following example shows the command on BrocadeSwitchB:
    BrocadeSwitchA:admin> switchcfgpersistentdisable
  3. Enter switchname switch_name to set the switch name.
    The switches should each have a unique name. After setting the name, the prompt changes accordingly.
    Example
    The following example shows the command on BrocadeSwitchA:
    BrocadeSwitchA:admin> switchname "FC_switch_A_1"
    FC_switch_A_1:admin>
    The following example shows the command on BrocadeSwitchB:
    BrocadeSwitchB:admin> switchname "FC_Switch_B_1"
    FC_switch_B_1:admin>
  4. Set all ports to their default values by issuing the following command for each port: portcfgdefault
    This must be done for all ports on the switch.
    Example
    The following example shows the commands on FC_switch_A_1:
    FC_switch_A_1:admin> portcfgdefault 0
    FC_switch_A_1:admin> portcfgdefault 1
    ...
    FC_switch_A_1:admin> portcfgdefault 39
    The following example shows the commands on FC_switch_B_1:
    FC_switch_B_1:admin> portcfgdefault 0
    FC_switch_B_1:admin> portcfgdefault 1
    ...
    FC_switch_B_1:admin> portcfgdefault 39
  5. Clear the zoning information by issuing the following commands: cfgdisablecfgclearcfgsave
    Example
    The following example shows the commands on FC_switch_A_1:
    FC_switch_A_1:admin> cfgdisable
    FC_switch_A_1:admin> cfgclear
    FC_switch_A_1:admin> cfgsave
    The following example shows the commands on FC_switch_B_1:
    FC_switch_B_1:admin> cfgdisable
    FC_switch_B_1:admin> cfgclear
    FC_switch_B_1:admin> cfgsave
  6. Set the general switch settings to default: configdefault
    Example
    The following example shows the command on FC_switch_A_1:
    FC_switch_A_1:admin> configdefault
    The following example shows the command on FC_switch_B_1:
    FC_switch_B_1:admin> configdefault
  7. Set all ports to non-trunking mode: switchcfgtrunk 0
    Example
    The following example shows the command on FC_switch_A_1:
    FC_switch_A_1:admin> switchcfgtrunk 0
    The following example shows the command on FC_switch_B_1:
    FC_switch_B_1:admin> switchcfgtrunk 0
  8. On Brocade 6510 switches, disable the Brocade Virtual Fabrics (VF) feature: fosconfig options
    Example
    The following example shows the command on FC_switch_A_1:
    FC_switch_A_1:admin> fosconfig --disable vf
    The following example shows the command on FC_switch_B_1:
    FC_switch_B_1:admin> fosconfig --disable vf
  9. Clear the Administrative Domain (AD) configuration: ad options
    Example
    The following example shows the commands on FC_switch_A_1:
    FC_switch_A_1:admin> switch:admin> ad --select AD0
    FC_switch_A_1:> defzone --noaccess
    FC_switch_A_1:> cfgsave
    FC_switch_A_1:> exit
    FC_switch_A_1:admin> ad --clear -f
    FC_switch_A_1:admin> ad --apply
    FC_switch_A_1:admin> ad --save
    FC_switch_A_1:admin> exit
    The following example shows the commands on FC_switch_B_1:
    FC_switch_B_1:admin> switch:admin> ad --select AD0
    FC_switch_A_1:> defzone --noaccess
    FC_switch_A_1:> cfgsave
    FC_switch_A_1:> exit
    FC_switch_B_1:admin> ad --clear -f
    FC_switch_B_1:admin> ad --apply
    FC_switch_B_1:admin> ad --save
    FC_switch_B_1:admin> exit
  10. Reboot the switch by issuing the following command: reboot
    Example
    The following example shows the command on FC_switch_A_1:
    FC_switch_A_1:admin> reboot
    The following example shows the command on FC_switch_B_1:
    FC_switch_B_1:admin> reboot