SAN # Brocade Switch# FOS CLI Commands

Useful Brocade SAN Switch CLI commands

Here is the list of commonly used Brocade SAN switch CLI command List

Show Commands

Command
psshow
fansshow
tempshow
sensorshow
nsshow
nsshow -t
nsshow -r
nscamshow
nsallshow
licenseshow
date
bannershow
httpcfgshow
switchname
fabricshow
userconfig –show -a
switchstatusshow
switchstatuspolicyshow
portshow
portcfgshow
configshow fabric.ops

configshow fabric.ops.pidFormat
switchuptime OR uptime
firmwareshow
version
hashow

Description
Displays the status of the power supply
Displays the status of the fans
Displays the status of the temperature readings
Displays the status of the sensor readings
Displays information in the name server
Displays information in the name server
Displays the information in the name server along with the state change registration details
Displays detailed information of all the devices connected to all the switches in the fabric (Remote Name Servers)
Displays the 24 bit address of all devices that are in the fabric
Displays all the licenses that have been added in the switch
Displays the current date set on the switch
Displays the banner that will appear when logging in unsing the CLI or webtools
Displays the JAVA version the switch expects at the management console
Displays the switchname
Displays information of all the switches in the fabric
Displays the account information like role , description , password exp date , locked status
Displays the overall status of the switch
Displays policy set for the switch regarding Marginal(Yellow) or Down(Red) error status
To show the port status
Displays the speed set for all ports on all slots and other detailed port information
Displays the parameters of the switch. Ensure all switches in a fabric have the same parameters in order to communicate
Displays the PID set for a switch Core , Native or Extended edge
Displays the uptime for the switch
Displays the firmware on the switch
Displays the current firmware version on the switch
Displays the status of local and remote CP’s. High availability , heartbeat and synchronization

Port Settings

Command
portcfgshow
portcfg rscnsupr [slot/port] –enable
portcfg rscnsupr [slot/port] –disable
portname
portdisable
portenable
portcfgpersistentdisable
portcfgpersistentenable
portshow
portcfgspeed ,
switchcfgspeed

portcfgshow
portcfgdefault
portcfglongdistance

portcfgeport

Description
Displays the port settings
A registered state change registration is suppressed when a state change occurs on the port
A registered state change registration is sent when a state change occurs on the port
To assign a name for a port
To disable a port or slot
To enable a port or slot
To disable a port , status would not change even after rebooting the switch
To enable a port , status would not change even after rebooting the switch
To show the port status
To set speed for a port Note – 0:auto negotiated 1,2,4 Gbit/sec , 1 : 1Gbit/sec , 2 : 2 Gbit/sec , 4 : 4Gbit/sec
To set speed for all the ports on the switch Note – 0:auto negotiated 1,2,4 Gbit/sec , 1 : 1Gbit/sec , 2 : 2 Gbit/sec , 4 : 4Gbit/sec
Displays the speed set for all ports on all slots and other detailed port information
To set the port settings to default
To set the long distance mode . Default is L0(Normal), as per distance will display LE <=10 kms , L0.5 <=25kms , L1 <=50 kms, L2<=100kms , LD=auto , LS = Static
Used to disable a port from being a E port

Setting commands

Command
ipaddrset
bannerset
Description
To set the ip address for the switch
To set the banner which will appear when logging in using the CLI or webtools

Time and Date Settings

Command
date
tsclockserver 10.10.1.1
tsclockserver LOCL
date mmddhhmmyy
tstimezone -5
Description
Displays the current date set on the switch
Instruction for the principal switch to synchronize time with the NTP server (specify ipaddress of the NTP server)
Instruction to stop NTP server synchronization (Local time of the switch)
To set the time of the switch when the NTP server synchronization is cancelled
To set the time zone for individual switches

License Commands

Command
licenseshow
licenseadd
licenseremove
licenseidshow
Description
Displays all the licenses that are added in the switch
To add a new license to the switch
To remove a license from the switch
Based on Switch WWN

Banner Commands

Command
bannershow
bannerset
bannerset “”
Description
Displays the banner that will appear when logging in unsing the CLI or webtools
To set the banner which will appear when logging in using the CLI or webtools
To remove the bannerset

Password commands

Command
passwd
passwdcfg –set -lowercase 3 uppercase 1 -digits 2 -punctuation 2 –minlength 10 -history 3
passwdcfg –set –minpasswordage 1
passwdcfg –set –maxpasswordage 30
passwdcfg –set -warning 23
passwdcfg –set –lockoutthreshold 5
passwdcfg –set –lockoutduration 30
passwdcfgsetdefault

Description
To change the password for that particular login
To set the password rules

To set the minimum password age in Days
To set the maximum password age in Days
To set a warning for the expiration Days remaining
To set the account lockout thresh hold
To set the account lockout duration in Minutes
To restore the password policy to Factory settings (min length – 8, history -1 , lockoutduration – 30)

User Configuration (commands to administer Accounts)

Command
userconfig –show -a / userconfig –show
userconfig –add jdoe -r admin -d “Jane Doe”
userconfig –show jdoe
userconfig –change -e no

userconfig –change -e yes

Description
Displays all the account information like role , description , password exp date , locked status
To add a new account -r = role , -d = description
Displays all the information for the account jdoe
To Disable an account , usually default a/cs like admin and user . But ensure before disabling the admin a/c there is another a/c with admin rights
To Enable an account

NPIV Commands

Command
portcfgnpivport
configure
Description
Enables NPIV functionality on a port . By default on Condor based switches
In order to increase the no of port logins ( Default is 126 , max 255)

SNMP

Command
snmpconfig
agtcfgset
snmpmibcapset
Description
snmpconfig for 5.0 above fos
snmp config for fos below 5.0
for choosing the MIB’s for the snmp settings

Zoning

Command
alicreate “Name”, “domain,port no”
alicreate “Name”,”portname1; portname2″
alidelete “Name”
aliadd “Name”, “domain,port no”
aliremove “Name”, “domain,port no”
alishow “AliName”
zonecreate “Zone Name”, “alias1; alias2″
zonedelete “ZoneName”
zoneadd “ZoneName”, “alias name”
zoneremove “ZoneName”, “alias name”
zoneshow “zoneName”
cfgcreate “Configname”, “Zone1; Zone2″
cfgdelete “ConfigName”
cfgadd “ConfigName”, “Zone3″
cfgremove “ConfigName”, “Zone3″
cfgshow “ConfigName”
cfgenable “ConfigName”
cfgsave

Description
Used to create alias
To create more than one ports under one alias
To delete alias
To add additional ports to an alias
To remove a port from the alias
To show the alias configuration on the switch
To create zones based on alias
To delete a zone
To add additional alias into the zone
To remove an alias from the zone
To show the zone configuration information
To create configurations by adding in zones
To delete a configuration
To add additional zones in the configuration
To remove a zone from the configuration
To show the details of that configuration
To enable a configuration on the switch
To have the effective configuration to be written into the flash memory

Firmware commands

Command
configupload
configdownload

configure => cfgload attributes : [y] => Ensure secure config upload / download : [y]

firmwaredownload
firmwareshow
version
fastboot
reboot

Description
Saves the switch config as an ASCII text file to an FTP server
To restore a switch configuration from ASCII text file Note – Need to disable the switch before downloading the config file
Fabric OS v 4.4 & above provides Secure File Copy Protocol (SCP) during upload or download of configurations

To download the firmware to be installed on the switch
To be run after installing the firmware on the switch
Displays the current firmware version on the switch
Needs to be run after installing the firmware . This doesnot include the post
Needs to be run after installing the firmware. This includes the post

Other commands

Command
killtelnet
configure
quitemode
quietmode 1
switchname
switchname “EXAMPLE”
configure
timeout
timeout 10
switchuptime OR uptime
switchcfgspeed
fastboot
reboot
switchstatusshow
switchstatuspolicyshow
switchstatuspolicyset

Description
To kill a particular session which is using telnet
To configure a switch
To switch off the quietmode
To suppress messages to the console
Displays the switchname
To assign a switch name
To disable/enable TELNETD
Displays the timeout time set for Telnet session on the switch
To set a specific timeout time for the Telnet session
Displays the uptime for the switch
To set speed for all the ports on the switch Note – 0:auto negotiated 1,2,4 Gbit/sec , 1 : 1Gbit/sec , 2 : 2 Gbit/sec , 4 : 4Gbit/sec
To reboot the switch without post
To reboot the switch with the post
Displays the overall status of the switch
Displays policy set for the switch regarding Marginal(Yellow) or Down(Red) error status
To change the policy set for the switch regarding Marginal(Yellow) or Down(Red) error status

Leave a comment