5
SAN Switch cheat sheet M-Series | B-Series | MDS-Series M-Series M-Series (Mcdata) switches uses both web and CLI, the table below displays some but not all the CLI commands. commadelim Toggle comma-demlimited display mode config configure settings login login into CLI with different access rights maint maintenance settings perf Performance statistics reserved reserved for future development show display attributes features configure feature settings ip configure IP settings logout logout of the CLI port configure port data security configure security settings snmp configure snmp switch configure switch data system configure system data zoning confgiure 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 show actively running zoneSet clearzone clear WWN's in a zone deletezone remove zone from running config activezoneset activation of changes addzone add a new zone to the working area addwwnmem add a WWN to a zone showpending show pending zones renamezone rename a zone deletewwn delete a WWN from a zone renamezoneset rename a zone set

SAN Switch Cheat Sheet

Embed Size (px)

Citation preview

Page 1: SAN Switch Cheat Sheet

SAN Switch cheat sheetM-Series | B-Series | MDS-Series

M-Series

M-Series (Mcdata) switches uses both web and CLI, the table below displays some but not all the CLI commands.

commadelim Toggle comma-demlimited display modeconfig configure settingslogin login into CLI with different access rightsmaint maintenance settingsperf Performance statisticsreserved reserved for future developmentshow display attributesfeatures configure feature settingsip configure IP settingslogout logout of the CLIport configure port datasecurity configure security settingssnmp configure snmpswitch configure switch datasystem configure system datazoning confgiure 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 show actively running zoneSetclearzone clear WWN's in a zonedeletezone remove zone from running configactivezoneset activation of changesaddzone add a new zone to the working areaaddwwnmem add a WWN to a zoneshowpending show pending zonesrenamezone rename a zonedeletewwn delete a WWN from a zonerenamezoneset rename a zone set

Zoning limits

64 zone sets (max) 2000 zones (max) 1024 zones per zone set (max)

Page 2: SAN Switch Cheat Sheet

deafult should all ways be disabled (causes all port to see each other creating ghosts in a FA's login table)

B-Series

B-Series (Brocade) switches uses both web and CLI, the table below displays some but not all the CLI commands.

help prints available commandsswitchdisabled disable the switchswitchenable enable the switchlicensehelp license commandsdiaghelp diagnostic commandsconfigure change switch parameters (BB credits, etc)diagshow POST results since last bootroutehelp routing commandsswitchshow display switch show (normally first command to run to obtain switch configuration)supportshow full detailed switch infoportshow # display port infonsshow namesever contentsnsallshow NS for full fabricfabricshow Fabric informationversion firmware code revisionreboot full reboot with POSTfastboot reboot without POST

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

zonecreate (zone) create a zonezoneshow shows defined and effective zones and configurationszoneadd adds a member to a zonezoneremove removes a member from a zonezonedelete delete a zonecfgcreate (zoneset) create a zoneset configurationcfgadd adds a zone to a zone configurationcfgshow display the zoning informationcfgenable enable a zone setcfgsave saves defined config to all switches in fabric across rebootscfgremove removes a zone from a zone configurationcfgdelete deletes a zone from a zone configurationcfgclear clears all zoning information (must disable the effective config first)cfgdisable disables the effective zone set

B-series creating a zone commands

Creating zone by WWN zonecreate "zone1", "20:00:00:e0:69:40:07:08 ; 50:06:04:82:b8:90:c1:8d"

Create a zone configuration cfgcreate "test_cfg", "zone1 ; zone2"

saving the zone configuration cfgsave (this will save across reboots)

enable the zone cfgenable "test_cfg"

Page 3: SAN Switch Cheat Sheet

configurationsaving the zone configuration cfgsave

view zoning information zoneshow or cfgshow

MDS-Series

B-Series (Cisco) switches uses both web and CLI, the table below displays some but not all the CLI commands, the ones highlighted will be the ones used most often.

EXEC mode commands:

attach connect to a specific linecardbios BIOS related commandscallhome callhome commandsclear reset functionsclock manage the system clockconfig enter configuration modedebug debug functionsdiscover discover informationexit exit ffrom the submodefcping Ping a N_Portfctrace trace a route for a N_Portload load system imageno disable debugging functionsreload reboot the switchsetup run the basic setup command facilityshow display running system informationsystem system management commandstest test commandwrite write the current configurationzone zoning server commands

CONFIG mode commands:

aaa config aaaboot configure boot variablescallhome enter the callhome configuration modeclock configure time and datefcalias fcalias configuration commandsfcanalyzer configure fabric analyzerfcc configure FCC congestion controlfcdomain enter the fcdomain configuration modefcdroplatency configure switch or network latencyfcflow configure fcflowfcinterop interop commandsfcns Name server configurationfcroute configure FC routesfcs Configure fabric config server

Page 4: SAN Switch Cheat Sheet

fctimer configure fibre channel timersfspf configure fspfinterface select an interface to configureip configure IP featuresno Negate a command or set its defaultntp NTP configurationpower configure power supplypoweroff power off module in switchqos Configure priority of FC control framesradius-server configure radius related parametersrole configure rolessnmp-server configure snmpspan enter SPAN configuration modessh configure ssh parametersswitchname configure systems network namesystem system config commandtrunk configure switch wide trunk protocolusername configure username informationvsan enter the vsan configuration modezone zoning configuration commandszoneset 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 the vsan # zone name testzone1 vsan 4

add a member (port wwn example) # member pwwn 10:00:00:00:c9:21:40:b8 (port on the host)

add a member (fabric port wwn example) # member fwwn 10:01:10:01:10:ab:cd:ef (port on the switch)

add a member (FCID example - hard zoning) # member fcid 0x7f0000 (24 bit address)

add a member (FC alias example) # member fcalias payroll

MDS-series common commands

display logged in WWN, display vsan information # show flogi database

display the specific vsan logins # show fcns database vsan 4

activatng a zoneset # zoneset activate name zone1 vsan 4

delete a zoneset # clear zone dataabse vsan 4

configure the default zone # zone default-zone permit vsan 4

display zones and zonsets# show zoneset active# show zoneset# show zoneset active vsan 4

copy active zone set to the full zone set # zone copy active-zoneset full-zoneset vsan 4

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