Sunteți pe pagina 1din 4

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

commons uses but not all the CLI commands.



B-Series (Brocade) zoning commands are detailed in the below table
help prints available commands
switchdisabled disable the switch
switchenable enable the switch
portdisable Disable a specified port
portenable Enable a specified port
porterrshow Print port error summary
portname
show the portname or you can rename the
portname
portcfgpersistentdisable Persistently disable a port
portcfgpersistentenable Enable a persistently disabled port
licenseadd Adds license keys to switch
licensehelp license commands
licenseshow Displays current license keys
diaghelp diagnostic commands
configure change switch parameters (BB credits, etc)
date Print/set the system date and time
uptime Print how long switch has been up
diagshow POST results since last boot
routehelp routing commands
switchshow
display switch show (normally first command to run
to obtain switch configuration)
supportshow prints switch information for debugging purposes
portshow # display port info
nsshow nameserver contents
nsallshow NS for full fabric
fabricshow show fabric membership info
Firmwareshow display firmware versions in the switch
reboot full reboot with POST
switchreboot Halts and restarts the operational switch.
firmwarecommit Commit firmware to stable storage
firmwaredownload Download firmware into switch
firmwaredownloadstatus
display the progress and status of
firmwareDownload
firmwarerestore Restore the old firmware in the switch
fabswitchshow display fabric switch state information
errshow print error log
errdump print error log (no page breaks)
fastboot reboot without POST
zonecreate (zone)
create a zone
zonecreate "arg1", "arg2"
zoneshow
shows defined and effective zones and
configurations
zoneadd
adds a member to a zone
zoneadd "arg1", "arg2"
zoneremove removes a member from a zone
zonedelete delete a zone
cfgcreate (zoneset) create a zoneset configuration
cfgclear
clears all zoning information (must disable the
effective config first)
cfgadd adds a zone to a zone configuration
cfgshow display the zoning information
cfgenable enable a zone set
cfgsave
saves defined config to all switches in fabric across
reboots
cfgremove removes a zone from a zone configuration
cfgdelete deletes a zone from a zone configuration
cfgdisable disables the effective zone set
Page 1 of 4 SAN Switch cheat sheet for B-Series (Brocade) | M-Series (Mcdata) | MDS-Series (Cisco...
1/14/2011 http://www.sanduel.com/SAN-Storage-Commands/SAN-Switch-cheat-sheet-for-B-Series-...

B-series creating a zone commands


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.

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



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
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 cfgcreate "FabricName_cfg", "zone1 ; zone2"
saving the zone
configuration
cfgsave (this will save across reboots)
enable the zone
configuration
cfgenable "FabicName_cfg"
saving the zone
configuration
cfgsave
view zoning information zoneshow or cfgshow
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 configure zoning settings
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
Page 2 of 4 SAN Switch cheat sheet for B-Series (Brocade) | M-Series (Mcdata) | MDS-Series (Cisco...
1/14/2011 http://www.sanduel.com/SAN-Storage-Commands/SAN-Switch-cheat-sheet-for-B-Series-...
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:


CONFIG mode commands:

attach connect to a specific linecard
bios BIOS related commands
callhome callhome commands
clear reset functions
clock manage the system clock
config enter configuration mode
debug debug functions
discover discover information
exit exit ffrom the submode
fcping Ping a N_Port
fctrace trace a route for a N_Port
load load system image
no disable debugging functions
reload reboot the switch
setup run the basic setup command facility
show display running system information
system system management commands
test test command
write write the current configuration
zone zoning server commands
aaa config aaa
boot configure boot variables
callhome enter the callhome configuration mode
clock configure time and date
fcalias fcalias configuration commands
fcanalyzer configure fabric analyzer
fcc configure FCC congestion control
fcdomain enter the fcdomain configuration mode
fcdroplatency configure switch or network latency
fcflow configure fcflow
fcinterop interop commands
fcns Name server configuration
fcroute configure FC routes
fcs Configure fabric config server
fctimer configure fibre channel timers
fspf configure fspf
interface select an interface to configure
Cisco Config Manager
Looking for a Configuration
tool for Routers, Switches?
Download Now
ManageEngine.com/DeviceExpert
Simple Storage Solutions
Flexible, High-Performance
Scale-Out Storage. Buy
Today. CA.
www.Coraid.com
Page 3 of 4 SAN Switch cheat sheet for B-Series (Brocade) | M-Series (Mcdata) | MDS-Series (Cisco...
1/14/2011 http://www.sanduel.com/SAN-Storage-Commands/SAN-Switch-cheat-sheet-for-B-Series-...

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



MDS-series common commands

ip configure IP features
no Negate a command or set its default
ntp NTP configuration
power configure power supply
poweroff power off module in switch
qos Configure priority of FC control frames
radius-server configure radius related parameters
role configure roles
snmp-server configure snmp
span enter SPAN configuration mode
ssh configure ssh parameters
switchname configure systems network name
system system config command
trunk configure switch wide trunk protocol
username configure username information
vsan enter the vsan configuration mode
zone zoning configuration commands
zoneset zoneset configuration commands
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
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
Page 4 of 4 SAN Switch cheat sheet for B-Series (Brocade) | M-Series (Mcdata) | MDS-Series (Cisco...
1/14/2011 http://www.sanduel.com/SAN-Storage-Commands/SAN-Switch-cheat-sheet-for-B-Series-...

S-ar putea să vă placă și