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.
In the examples in this procedure, the fabric consists of BrocadeSwitchA and BrocadeSwitchB.
- Make a console connection and log in to both switches in one fabric.
- 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.
The following example shows the command on BrocadeSwitchA:
The following example shows the command on BrocadeSwitchB:BrocadeSwitchA:admin> switchcfgpersistentdisable
BrocadeSwitchA:admin> switchcfgpersistentdisable
- 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.
The following example shows the command on BrocadeSwitchA:
The following example shows the command on BrocadeSwitchB:BrocadeSwitchA:admin> switchname "FC_switch_A_1"
FC_switch_A_1:admin>BrocadeSwitchB:admin> switchname "FC_Switch_B_1"
FC_switch_B_1:admin> - 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.
The following example shows the commands on FC_switch_A_1:
The following example shows the commands on FC_switch_B_1:FC_switch_A_1:admin> portcfgdefault 0
FC_switch_A_1:admin> portcfgdefault 1
...
FC_switch_A_1:admin> portcfgdefault 39FC_switch_B_1:admin> portcfgdefault 0
FC_switch_B_1:admin> portcfgdefault 1
...
FC_switch_B_1:admin> portcfgdefault 39 - Clear the zoning information by issuing the following commands: cfgdisable cfgclear cfgsave
The following example shows the commands on FC_switch_A_1:
The following example shows the commands on FC_switch_B_1:FC_switch_A_1:admin> cfgdisable
FC_switch_A_1:admin> cfgclear
FC_switch_A_1:admin> cfgsaveFC_switch_B_1:admin> cfgdisable
FC_switch_B_1:admin> cfgclear
FC_switch_B_1:admin> cfgsave - Set the general switch settings to default: configdefault
The following example shows the command on FC_switch_A_1:
The following example shows the command on FC_switch_B_1:FC_switch_A_1:admin> configdefault
FC_switch_B_1:admin> configdefault
- Set all ports to non-trunking mode: switchcfgtrunk 0
The following example shows the command on FC_switch_A_1:
The following example shows the command on FC_switch_B_1:FC_switch_A_1:admin> switchcfgtrunk 0
FC_switch_B_1:admin> switchcfgtrunk 0
- On Lenovo B6510 FC SAN switch switches, disable the Brocade Virtual Fabrics (VF) feature: fosconfig options
The following example shows the command on FC_switch_A_1:
The following example shows the command on FC_switch_B_1:FC_switch_A_1:admin> fosconfig --disable vf
FC_switch_B_1:admin> fosconfig --disable vf
- Clear the Administrative Domain (AD) configuration: ad options
The following example shows the commands on FC_switch_A_1:
The following example shows the commands on FC_switch_B_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> exitFC_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 - Reboot the switch by issuing the following command: reboot
The following example shows the command on FC_switch_A_1:
The following example shows the command on FC_switch_B_1:FC_switch_A_1:admin> reboot
FC_switch_B_1:admin> reboot
Give documentation feedback