SAN Switch All Command
SAN Switch All Command
HOME STORAGES & SAN SWITCHES OS SERVER LEARNINGS USEFUL PDF FILES TAPE LIBRARIES & BACKUP EC DATA
Show Commands
Command Description
psshow Displays the status of the power supply
fansshow Displays the status of the fans
tempshow Displays the status of the temperature readings
sensorshow Displays the status of the sensor readings
nsshow Displays information in the name server
nsshow -t Displays information in the name server
nsshow -r Displays the information in the name server along with the state change registration details
nscamshow Displays detailed information of all the devices connected to all the switches in the fabric (Remote Name
nsallshow Servers)
licenseshow Displays the 24 bit address of all devices that are in the fabric
date Displays all the licenses that have been added in the switch
bannershow Displays the current date set on the switch
httpcfgshow Displays the banner that will appear when logging in unsing the CLI or webtools
switchname Displays the JAVA version the switch expects at the management console
fabricshow Displays the switchname
userconfig –show -a Displays information of all the switches in the fabric
switchstatusshow Displays the account information like role , description , password exp date , locked status
switchstatuspolicyshow Displays the overall status of the switch
portshow Displays policy set for the switch regarding Marginal(Yellow) or Down(Red) error status
portcfgshow To show the port status
configshow fabric.ops 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
configshow fabric.ops.pidFormat communicate
switchuptime OR uptime Displays the PID set for a switch Core , Native or Extended edge
firmwareshow Displays the uptime for the switch
version Displays the firmware on the switch
hashow 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 Description
portcfgshow Displays the port settings
portcfg rscnsupr [slot/port] – A registered state change registration is suppressed when a state change occurs on the port
enable A registered state change registration is sent when a state change occurs on the port
portcfg rscnsupr [slot/port] – To assign a name for a port
disable To disable a port or slot
portname To enable a port or slot
portdisable To disable a port , status would not change even after rebooting the switch
portenable To enable a port , status would not change even after rebooting the switch
portcfgpersistentdisable To show the port status
portcfgpersistentenable To set speed for a port Note – 0:auto negotiated 1,2,4 Gbit/sec , 1 : 1Gbit/sec , 2 : 2 Gbit/sec , 4 :
http://quickreference.weebly.com/brocade-switch-commands.html 1/4
2/9/2014 Brocade Switch Commands - Quick Reference
portcfgpersistentenable To set speed for a port Note – 0:auto negotiated 1,2,4 Gbit/sec , 1 : 1Gbit/sec , 2 : 2 Gbit/sec , 4 :
portshow 4Gbit/sec
portcfgspeed , To set speed for all the ports on the switch Note – 0:auto negotiated 1,2,4 Gbit/sec , 1 : 1Gbit/sec , 2 : 2
switchcfgspeed Gbit/sec , 4 : 4Gbit/sec
Displays the speed set for all ports on all slots and other detailed port information
portcfgshow To set the port settings to default
portcfgdefault To set the long distance mode . Default is L0(Normal), as per distance will display LE <=10 kms , L0.5
portcfglongdistance <=25kms , L1 <=50 kms, L2<=100kms , LD=auto , LS = Static
Used to disable a port from being a E port
portcfgeport
Setting commands
Command Description
ipaddrset To set the ip address for the switch
bannerset To set the banner which will appear when logging in using the CLI or webtools
License Commands
Command Description
licenseshow Displays all the licenses that are added in the switch
Banner Commands
Command Description
bannershow Displays the banner that will appear when logging in unsing the CLI or webtools
bannerset To set the banner which will appear when logging in using the CLI or webtools
bannerset “” To remove the bannerset
Password commands
Command Description
passwd To change the password for that particular login
passwdcfg –set -lowercase 3 uppercase 1 -digits 2 - To set the password rules
punctuation 2 -minlength 10 -history 3
passwdcfg –set -minpasswordage 1 To set the minimum password age in Days
passwdcfg –set -maxpasswordage 30 To set the maximum password age in Days
passwdcfg –set -warning 23 To set a warning for the expiration Days remaining
passwdcfg –set -lockoutthreshold 5 To set the account lockout thresh hold
passwdcfg –set -lockoutduration 30 To set the account lockout duration in Minutes
passwdcfg –setdefault To restore the password policy to Factory settings (min length – 8, history -1 ,
lockoutduration – 30)
NPIV Commands
Command Description
portcfgnpivport Enables NPIV functionality on a port . By default on Condor based switches
configure In order to increase the no of port logins ( Default is 126 , max 255)
SNMP
Command Description
snmpconfig snmpconfig for 5.0 above fos
agtcfgset snmp config for fos below 5.0
snmpmibcapset for choosing the MIB’s for the snmp settings
Zoning
Command Description
alicreate “Name”, “domain,port no” Used to create alias
alicreate “Name”,”portname1; To create more than one ports under one alias
portname2″ To delete alias
alidelete “Name” To add additional ports to an alias
aliadd “Name”, “domain,port no” To remove a port from the alias
aliremove “Name”, “domain,port no” To show the alias configuration on the switch
alishow “AliName” To create zones based on alias
zonecreate “Zone Name”, “alias1; alias2″ To delete a zone
zonedelete “ZoneName” To add additional alias into the zone
zoneadd “ZoneName”, “alias name” To remove an alias from the zone
zoneremove “ZoneName”, “alias name” To show the zone configuration information
zoneshow “zoneName” To create configurations by adding in zones
cfgcreate “Configname”, “Zone1; Zone2″ To delete a configuration
cfgdelete “ConfigName” To add additional zones in the configuration
cfgadd “ConfigName”, “Zone3″ To remove a zone from the configuration
cfgremove “ConfigName”, “Zone3″ To show the details of that configuration
cfgshow “ConfigName” To enable a configuration on the switch
cfgenable “ConfigName” To have the effective configuration to be written into the flash memory
cfgsave
Firmware commands
Command Description
configupload Saves the switch config as an ASCII text file to an FTP server
configdownload To restore a switch configuration from ASCII text file Note – Need to disable the switch before
downloading the config file
configure => cfgload attributes : [y] => Ensure Fabric OS v 4.4 & above provides Secure File Copy Protocol (SCP) during upload or download
secure config upload / download : [y] of configurations
http://quickreference.weebly.com/brocade-switch-commands.html 3/4
2/9/2014 Brocade Switch Commands - Quick Reference
Other commands
Command Description
killtelnet To kill a particular session which is using telnet
configure To configure a switch
quitemode To switch off the quietmode
quietmode 1 To suppress messages to the console
switchname Displays the switchname
switchname “EXAMPLE” To assign a switch name
configure To disable/enable TELNETD
timeout Displays the timeout time set for Telnet session on the switch
timeout 10 To set a specific timeout time for the Telnet session
switchuptime OR uptime Displays the uptime for the switch
switchcfgspeed 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 ,
fastboot 4 : 4Gbit/sec
reboot To reboot the switch without post
switchstatusshow To reboot the switch with the post
switchstatuspolicyshow Displays the overall status of the switch
switchstatuspolicyset 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
http://quickreference.weebly.com/brocade-switch-commands.html 4/4