Switch Commands (Version 1)
Transcript of Switch Commands (Version 1)
BROCADE SWITCH COMMANDS HELPShow Commandspsshowfansshowtempshow sensorshow nsshownsshow -tnsshow -rnscamshownsallshowlicenseshowdatebannershowhttpcfgshowswitchnamefabricshowuserconfig --show -aswitchstatusshowswitchstatuspolicyshowportshow <port>portcfgshowconfigshow fabric.opsconfigshow fabric.ops.pidFormat switchuptime OR uptimefirmwareshowversionhashow
Port Settingsportcfgshowportcfg rscnsupr [slot/port] --enableportcfg rscnsupr [slot/port] --disableportname <name> <port> <slot/port>portdisable <port> <slot/port>portenable <port> <slot/port>portcfgpersistentdisable <port> <slot/port>portcfgpersistentenable <port> <slot/port>portshow <port>portcfgspeed <port>,<speed level>switchcfgspeed <speed level>portcfgshowportcfgdefaultportcfglongdistance <port> <distance>portcfgeport
Setting commandsipaddrsetbannerset
Time and Date Settingsdatetsclockserver 10.10.1.1tsclockserver LOCLdate mmddhhmmyytstimezone -5
License Commandslicenseshowlicenseaddlicenseremovelicenseidshow
Banner Commandsbannershowbannersetbannerset ""
Other commandskilltelnetconfigurequitemodequietmode 1switchnameswitchname "EXAMPLE"configuretimeouttimeout 10switchuptime OR uptimeswitchcfgspeed <speed level>fastbootrebootswitchstatusshowswitchstatuspolicyshowswitchstatuspolicyset
Password commandspasswdpasswdcfg --set -lowercase 3 uppercase 1 -digits 2 -punctuation 2 -minlength 10 -history 3passwdcfg --set -minpasswordage 1passwdcfg --set -maxpasswordage 30passwdcfg --set -warning 23passwdcfg --set -lockoutthreshold 5passwdcfg --set -lockoutduration 30passwdcfg --setdefault
Unser Configuration (commands to administer Accounts)userconfig --show -a / userconfig --show <name of account>userconfig --add jdoe -r admin -d "Jane Doe"userconfig --show jdoeuserconfig --change <name of account> -e no userconfig --change <name of account> -e yes
NPIV Commandsportcfgnpivportconfigure
SNMPsnmpconfigagtcfgsetsnmpmibcapset
Zoning
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
Firmware commandsconfiguploadconfigdownload
configure => cfgload attributes : [y] => Ensure secure config upload / download : [y]firmwaredownloadfirmwareshowversionfastbootreboot
BROCADE SWITCH COMMANDS HELP
Displays the status of the power supplyDisplays the status of the fans Displays the status of the temperature readingsDisplays the status of the sensor readingsDisplays information in the name serverDisplays the information in the name server along with the device typeDisplays the information in the name server along with the state change registration detailsDisplays 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 fabricDisplays all the licenses that have been added in the switchDisplays the current date set on the switchDisplays the banner that will appear when logging in unsing the CLI or webtoolsDisplays the JAVA version the switch expects at the management consoleDisplays the switchnameDisplays information of all the switches in the fabricDisplays the account information like role , description , password exp date , locked status Displays the overall status of the switchDisplays policy set for the switch regarding Marginal(Yellow) or Down(Red) error statusTo show the port statusDisplays the speed set for all ports on all slots and other detailed port informationDisplays the parameters of the switch. Ensure all switches in a fabric have the same parameters in order to communicateDisplays the PID set for a switch Core , Native or Extended edgeDisplays the uptime for the switchDisplays the firmware on the switchDisplays the current firmware version on the switchDisplays the status of local and remote CP's. High availability , heartbeat and synchronization
Displays the port settingsA registered state change registration is suppressed when a state change occurs on the portA registered state change registration is sent when a state change occurs on the portTo assign a name for a portTo disable a port or slotTo enable a port or slotTo disable a port , status would not change even after rebooting the switchTo enable a port , status would not change even after rebooting the switchTo show the port statusTo set speed for a port Note - 0:auto negotiated 1,2,4 Gbit/sec , 1 : 1Gbit/sec , 2 : 2 Gbit/sec , 4 : 4Gbit/secTo 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/secDisplays the speed set for all ports on all slots and other detailed port informationTo set the port settings to defaultTo 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 = StaticUsed to disable a port from being a E port
To set the ip address for the switchTo set the banner which will appear when logging in using the CLI or webtools
Displays the current date set on the switchInstruction 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 cancelledTo set the time zone for individual switches
Displays all the licenses that are added in the switchTo add a new license to the switchTo remove a license from the switchBased on Switch WWN
Displays the banner that will appear when logging in unsing the CLI or webtoolsTo set the banner which will appear when logging in using the CLI or webtoolsTo remove the bannerset
To kill a particular session which is using telnetTo configure a switchTo switch off the quietmodeTo suppress messages to the consoleDisplays the switchnameTo assign a switch nameTo disable/enable TELNETDDisplays the timeout time set for Telnet session on the switchTo set a specific timeout time for the Telnet sessionDisplays the uptime for the switchTo 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/secTo reboot the switch without postTo reboot the switch with the postDisplays the overall status of the switchDisplays policy set for the switch regarding Marginal(Yellow) or Down(Red) error statusTo change the policy set for the switch regarding Marginal(Yellow) or Down(Red) error status
To change the password for that particular loginTo set the password rulesTo set the minimum password age in DaysTo set the maximum password age in DaysTo set a warning for the expiration Days remainingTo set the account lockout thresh hold To set the account lockout duration in MinutesTo restore the password policy to Factory settings (min length - 8, history -1 , lockoutduration - 30)
Displays all the account information like role , description , password exp date , locked status To add a new account -r = role , -d = descriptionDisplays all the information for the account jdoeTo 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 rightsTo Enable an account
Enables NPIV functionality on a port . By default on Condor based switchesIn order to increase the no of port logins ( Default is 126 , max 255)
snmpconfig for 5.0 above fossnmp config for fos below 5.0for choosing the MIB's for the snmp settings
Used to create aliasTo create more than one ports under one alias
To add additional ports to an aliasTo remove a port from the alias To show the alias configuration on the switch
To create zones based on aliasTo delete a zoneTo add additional alias into the zoneTo remove an alias from the zoneTo show the zone configuration information
To create configurations by adding in zonesTo delete a configurationTo add additional zones in the configurationTo remove a zone from the configurationTo show the details of that configurationTo enable a configuration on the switchTo have the effective configuration to be written into the flash memory
Saves the switch config as an ASCII text file to an FTP serverTo 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 configurationsTo download the firmware to be installed on the switchTo be run after installing the firmware on the switchDisplays the current firmware version on the switchNeeds to be run after installing the firmware . This doesnot include the postNeeds to be run after installing the firmware. This includes the post
Time out or SluggishnessSegmented FabricPort / Node configurationMissing Device Fabric connectivity issues
(Expand)(Expand)(Expand)(Expand)(Expand)
Show commands
show interface briefshow interface countersshow interface counters briefshow interface transceivershow running-configshow interface fcx/xshow interface bbcreditshow interface fcx/x bbcreditshow interface mgmt0show vsan xXshow moduleshow interface fcx/x capabilitiesshow port-resources module xshow interface trunk vsan x-xshow vsan membership interface fcx/x - xshow vsan x membershipshow vsanshow vsan usageshow zonesetshow zoneset active vsan xx
Configuration commandsCommand
config tinterface fcx/xshutdown / no shutdowncopy running-config startup-config
config tinterface fcx/xswitchport fcrxbbcredit xx/defaultcopy running-config startup-config
config tinterface mgmt0ipaddress xx.xx.xx.xx 255.255.255.255no shutdownip default-gateway 1.1.2.3copy running-config startup-config
config tvsan databaseno vsan XX
config tinterface vsan xshutdown / no shutdown
config tinterface fcx/xswitchport speed 1000/2000/4000/auto/auto max xxxx
config tinterface fc x/x switchport rate-mode dedicated/shared
config tinterface fcx/xchannel-group x/auto
config tinterface fcx/xswitchport mode e/f/fl/n
config ttrunk protocol enable
config tinterface fcx/xswitchport trunk mode on/off/auto
config tinterface fcx/xswitchport trunk allowed vsan x-x/xswitchport trunk allowed vsan add x
config tfcdomain restart vsan xfcdomain restart disruptive vsan x
config tvsan databasevsan x
config tvsan databaseno vsan x
config tvsan databasevsan xvsan x name XYZvsan x suspendno vsan x suspendend
config tvsan databasevsan xvsan x interface fcx/x
config tvsan databaseno vsan x interface fcx/x
config tvsan databaseno vsan x
config tzoneset name xyx vsan xzone name xyzz
member pwwn xx:xx:xx:xx:xx:xxendshow zonesetconfig tzoneset activate name xyz vsan xendshow zoneset active vsan x
Show commands
shows the status of the ports on the switchport errors and details of transmissionport transmission details in briefshows details of the sfps used on the ports of the switchshow the details of the switch, ports , firmware , etc
would display the bb credits
To display the details of the management consoleTo display details of a VSANTo display details of the switching moduleTo details of the matrix support for that portTo check port resources like bb credits , rate mode , bandwidth for ports on a 24/48 bit moduleTo checkper vsan information on trunk portsTo check the vsan membership on port level for an interfaceTo check the ports that are part of a vsanTo display all the vsans on the switchTo check the vsans created and available vsan ids to be createdTo display the zoneset details configured on the switch for all vsansTo display the active zoneset for a particular vsan
Configuration commandsAction to be performed
In order to disable a port on the switch
saves the configuration
In order to assign bbcredits to a port
saves the configuration
Setting ip address for the management interface
Default gatewaysaves the configuration
to delete a Vsan , cannot delete default vsan
To disable or enable a vsan
To set port speed
To configure rate mode of a switch port
To add a port to a port channel
To manually set the port type on a switch
To enable trunk protocol on a swith (default)
To enable/disable trunk on a port level
Configures an allowed list of vsans to communicate through that port (TE PORT)
allows to add a specific vsan to the allowed list of vsans
to force to reconfigure without affecting trafficto force vsan to configure with data traffic affected
To create a vsan
to delete a vsan
To create a vsan , to assign it a name . Steps to susped a vsan and unsuspend
Steps to create a vsan and add a port on interface into a vsan
Steps to remove a port on an interface from a vsan
Steps to delete a vsan ( note - cannot delete default vsan 0)
Steps for creating zoneset, zone and adding ports to the zone . Lastly activating the zoneset
Steps for creating zoneset, zone and adding ports to the zone . Lastly activating the zoneset