Sei sulla pagina 1di 10

B-Series (Brocade) switches uses both web and CLI, the table below displays some commons uses

but not all the CLI commands. help switchdisabled switchenable portdisable portenable porterrshow portname portcfgpersistentdisable portcfgpersistentenable licenseadd licensehelp licenseshow diaghelp configure date uptime diagshow prints available commands disable the switch enable the switch Disable a specified port Enable a specified port Print port error summary show the portname or you can rename the portname Persistently disable a port Enable a persistently disabled port Adds license keys to switch license commands Displays current license keys diagnostic commands change switch parameters (BB credits, etc) Print/set the system date and time Print how long switch has been up POST results since last boot

routehelp switchshow supportshow portshow # nsshow nsallshow fabricshow Firmwareshow reboot switchreboot firmwarecommit firmwaredownload firmwaredownloadstatus firmwarerestore fabswitchshow errshow errdump fastboot

routing commands display switch show (normally first command to run to obtain switch configuration) prints switch information for debugging purposes display port info nameserver contents NS for full fabric show fabric membership info display firmware versions in the switch full reboot with POST Halts and restarts the operational switch. Commit firmware to stable storage Download firmware into switch display the progress and status of firmwareDownload Restore the old firmware in the switch display fabric switch state information print error log print error log (no page breaks) reboot without POST

B-Series (Brocade) zoning commands are detailed in the below table

create a zone zonecreate (zone) zonecreate "arg1", "arg2" zoneshow shows defined and effective zones and configurations adds a member to a zone zoneadd zoneadd "arg1", "arg2" zoneremove zonedelete cfgcreate (zoneset) cfgclear cfgadd cfgshow cfgenable cfgsave cfgremove cfgdelete cfgdisable removes a member from a zone delete a zone create a zoneset configuration clears all zoning information (must disable the effective config first) adds a zone to a zone configuration display the zoning information enable a zone set saves defined config to all switches in fabric across reboots removes a zone from a zone configuration deletes a zone from a zone configuration disables the effective zone set

B-series creating a zone commands Creating zone by WWN zonecreate "zone1", "10:00:00:e0:69:20:07:10 ; 50:06:04:80:b8:91:c2:ce"

Create a zone configuration saving the zone configuration enable the zone configuration saving the zone configuration view zoning information

cfgcreate "FabricName_cfg", "zone1 ; zone2" cfgsave (this will save across reboots)

cfgenable "FabicName_cfg"

cfgsave zoneshow or cfgshow

Tips In CLI, you can list out the data you want by using these commands. Example: switchshow |grep hostname Switchshow |grep zonename

M-Series (Mcdata) switches uses both web GUI and CLI, the table below displays some commons uses but not all the CLI commands. commadelim config login maint perf reserved Toggle comma-demlimited display mode configure settings login into CLI with different access rights maintenance settings Performance statistics reserved for future development

show features ip logout port security snmp switch system zoning

display attributes configure feature settings configure IP settings logout of the CLI configure port data configure security settings configure snmp configure switch data configure system data configure zoning settings

There are several commands that allow you to navigate through the switch "..", "ctrl-U" and "root" .

M-Series (Mcdata) zoning commands are detailed in the below table

showactive clearzone deletezone activezoneset addzone addwwnmem

show actively running zoneSet clear WWN's in a zone remove zone from running config activation of changes add a new zone to the working area add a WWN to a zone

showpending renamezone deletewwn renamezoneset

show pending zones rename a zone delete a WWN from a zone rename a zone set

Zoning limits

64 zone sets (max) 2000 zones (max) 1024 zones per zone set (max) default should all ways be disabled (causes all port to see each other creating ghosts in a FA's login table)

MDS-Series (Cisco) switches uses both web GUI and CLI, the table below displays some commons uses but not all the CLI commands, the ones highlighted will be the ones used most often. EXEC mode commands: attach bios callhome clear clock connect to a specific linecard BIOS related commands callhome commands reset functions manage the system clock

config debug discover exit fcping fctrace load no reload setup show system test write zone

enter configuration mode debug functions discover information exit ffrom the submode Ping a N_Port trace a route for a N_Port load system image disable debugging functions reboot the switch run the basic setup command facility display running system information system management commands test command write the current configuration zoning server commands

CONFIG mode commands:

aaa boot

config aaa configure boot variables

callhome clock fcalias fcanalyzer fcc fcdomain fcdroplatency fcflow fcinterop fcns fcroute fcs fctimer fspf interface ip no ntp power poweroff qos

enter the callhome configuration mode configure time and date fcalias configuration commands configure fabric analyzer configure FCC congestion control enter the fcdomain configuration mode configure switch or network latency configure fcflow interop commands Name server configuration configure FC routes Configure fabric config server configure fibre channel timers configure fspf select an interface to configure configure IP features Negate a command or set its default NTP configuration configure power supply power off module in switch Configure priority of FC control frames

radius-server role snmp-server span ssh switchname system trunk username vsan zone zoneset

configure radius related parameters configure roles configure snmp enter SPAN configuration mode configure ssh parameters configure systems network name system config command configure switch wide trunk protocol configure username information enter the vsan configuration mode zoning configuration commands zoneset configuration commands

There are several commands that allow you to navigate through the switch "cd", "copy", "dir", "find", "mkdir", "move", "rmdir" and "tail". MDS-series creating a zone

create a zone and place it in # zone name testzone1 vsan 4 the vsan add a member (port wwn example) add a member (fabric port wwn example) # member pwwn 10:00:00:00:c9:21:40:b8 (port on the host) # member fwwn 10:01:10:01:10:ab:cd:ef (port on the switch)

add a member (FCID example - hard zoning) add a member (FC alias example)

# member fcid 0x7f0000 (24 bit address)

# member fcalias payroll

MDS-series common commands

display logged in WWN, display vsan information display the specific vsan logins activatng a zoneset delete a zoneset configure the default zone

# show flogi database

# show fcns database vsan 4 # zoneset activate name zone1 vsan 4 # clear zone dataabse vsan 4 # zone default-zone permit vsan 4 # show zoneset active # show zoneset # show zoneset active vsan 4 # zone copy active-zoneset full-zoneset vsan 4

display zones and zonsets

copy active zone set to the full zone set

distribute the full zoning # zoneset distribute full vsan 4 database to others switches

Potrebbero piacerti anche