You are on page 1of 9

CISCO SAN Commands

1.To get help commands

*switch# ?

2.To create Alias Name

* switch# config

SWITCH(config)# device-alias database

SWITCH(config-device-alias-db)# device-alias name usxxxxx09_fc1 pwwn


21:00:xx:1b:xx:1b:cf:96

3.To disable Alias Name

SWITCH(config-device-alias-db)# no device-alias name usdcxxxa09_fc1 pwwn


21:00:xx:1b:xx:1b:cf:96

4.To Rename Alias

* SWITCH(config-device-alias-db)# device-alias rename USxxxxxxX05_fc1


USxxxP03_fc1

5.To verify the health of the link

*fspf hello-interval seconds

Ex: switch(config)# interface fc1/1

switch(config-if)# fspf hello-interval 3

6.To assign an IP address to the Ethernet management port

*switch(config)# interface mgmt 0

switch(config-if)# ip address 10.5.1.1 255.255.0.0

7.To remove the IP address


*no ip address address netmask

8.To configure the IP address of the default gateway

*switch# config

switch(config)# ip default-gateway 10.1.1.4

9.To remove the IP address of the default gateway

*no ip default-gateway destination-ip-address

10. To reboot the switch

*switch# reload

This command will reboot the system. (y/n)? y

11. To enter the switch setup mode

*switch# setup

12.To display the accounting log contents

*switch# show accounting log

13.To display the system date and time and verify the time zone configuration

*switch# show clock

14. To display all environment-related switch information

*switch# show environment

15. To display the member name information

*switch# show fcalias

16. To display the Fibre Channel domain

*switch# show fcdomain

17. To display the name server database


*switch# show fcns database [detail | domain domain-id | fcid fcid-id]

18. To display the status of the fabric configuration

*switch# show fcs database

19. To view the Fibre Channel timers

*show fctimer [d_s_tov | e_d_tov | f_s_tov | r_a_tov]

Ex: switch# show fctimer

F_S_TOV D_S_TOV E_D_TOV R_A_TOV

--------------------------------

5000 ms 5000 ms 2000 ms 10000 ms

20. To list all the FLOGI sessions

*switch# show flogi database

21. To display switch hardware inventory details

*switch# show hardware

22. To display the IP Access Control Lists (IP-ACLs) currently active

*switch# show ip access-list [list-name | usage]

23. To display the IP routing information

*switch# show ip route

24. To display the current message logging configuration

*switch# show logging [info | last lines | level | logfile | monitor | server]

25. To display general information about all the processes

*switch# show processes {log [details]}

26. To display the running configuration file


*switch# show running-config [diff]

27. To display the switch network name

*switch# show switchname

28. To display the system information

*switch# show system [reset-reason | uptime]

29. To display information useful to technical support when reporting a problem

*switch# show tech-support [brief | create | details | interface | module 1]

30. To display configured information about user accounts

*switch# show user-account

31. To display all users currently accessing the switch

*switch# show users

32. To display the version of system software that is currently running on the switch

*switch# show version

33. To display zone information

*switch# show zone [active | member {fcalias alias-name | pwwn wwn} | name string | status]

34. To display the configured zone sets

*switch# show zoneset [active | name zoneset-name]

35. To disable an interface (Port)

*switch# config

switch(config)# interface fc13/13

switch(config-if)# shutdown

36. To enable an interface (Port)


*switch# config

switch(config)# interface fc13/13

switch(config-if)# no shutdown

37. To change the name of the switch, use the switchname

*switch# config

switch(config)# switchname myswitch1

38. To configure switchport parameter on a Fibre Channel interface

*switchport {beacon|description text|mode [auto | E | F | FL | Fx]|speed [1000 |


2000 | 4000 | auto]}

Ex: switch# config

switch(config)# interface fc1/1-4

switch(config-if)# switchport description ISLs

switch(config-if)# switchport mode E

switch(config-if)# switchport speed 4000


39. To enable the Telnet server, use the telnet server enable command in configuration mode

* switch(config)# telnet server enable

40. To define a user, use the username command in configuration mode

* switch(config)# username name {password user-password | [expire days] | role


rolename}

Ex: switch(config)# username knuckles password testpw role network-operator

switch(config)# do show user-account

41. To create a zone

*switch# config
switch(config)# zone name Zone2

switch(config-zone)# member pwwn 10:00:00:23:45:67:89:ab

switch(config-zone)# member fcalias Payroll

42. To rename a zone

*switch# zone rename ZoneA ZoneB

43. To group zones under one zone set

*zoneset [name zoneset-name | activate name zoneset-name | distribute full |


rename current-name new-name]

EX: switch# config

switch(config)# zoneset name gottons

switch(config-zoneset)# member zone1

switch(config-zoneset)# exit

switch(config)# zoneset activate name gottons

switch(config)# commit

IVR Commands(Inter-VSAN Routing)

switch(config)# ivr enable

switch(config-ivr-topology-db)# autonomous-fabric-id fabric-id switch-wwn


hh:hh:hh… vsan-ranges 1-32 vsan-ids

switch(config)# ivr zone name XXXX

switch(config-ivr-zone)# member pwwn hh:hh:hh… vsan vsan-id

switch(config)# ivr zoneset name XXXX

switch(config-ivr-zoneset)# member XXXX


switch(config)# ivr zoneset activate name XXXX

switch(config)# commit

switch# show ivr vsan-topology

switch# show ivr zoneset active

switch# show ivr tech-support

Troubleshooting Commands

switch# fcping fcid fcid vsan vsan-id

switch# fcping pwwn hh:hh:hh… vsan vsan-id

switch# fctrace fcid fcid vsan vsan-id

switch(config)# fcanalyzer local brief

switch# show tech-support details

switch# tac-pac

switch# show version

switch# show interface brief

switch# show interface fc slot/port trunk vsan

switch# show module

switch# show fspf internal route vsan

switch# show topology vsan vsan-id

switch# show device-alias

switch# show fcalias

switch# show fcroute

switch# show fspf internal route vsan vsan-id


switch# show logging logfile

switch# show logging last lines

Command Discription
attach Connect to a specific linecard
callhome Callhome commands
cd Change current directory
cfs CFS parameters
clear Reset functions
cli CLI commands
clock Manage the system clock
configure Enter configuration mode
copy Copy from one file to another
debug Debugging functions
delete Delete a file or directory
diff-clean Remove temp files created by '| diff' filters
dir List files in a directory
discover Discover information
echo Echo argument back to screen (useful for scripts)
ethanalyzer Start cisco packet analyzer
event Event Manager commands
fcanalyzer Start cisco fabric analyzer
fcping Ping an N-Port
fctrace Trace the route for an N-Port.
find Find a file below the current directory
format Format disks
gunzip Uncompresses LZ77 coded files
gzip Compresses file using LZ77 coding
install Upgrade software
ips Various sibyte module related commands
ivr IVR exec commands
load Load system image
mkdir Create new directory
modem Modem commands
mount Mount expansion flash or USB storage
move Move files
nasb NASB control functionality
no Negate a command or set its defaults
ntp Execute NTP commands
out-of-service Make the current module out-of-service
ping Send echo messages
port-channel Port-Channel related commands
purge Deletes unused data
pwd View current directory
reload Reboot the entire box
rmdir Delete a directory
run-script Run shell scripts
send Send message to open sessions
setup Run the basic SETUP command facility
show Show running system information
sld Host LUN Discovery cli
sleep Sleep for the specified number of seconds
slot Run commands on specific linecard (or set slot for commands that take optional slot number)
ssh SSH to another system
system System management commands
tac-pac Save tac info in a compressed .gz file at specific location
tail Display the last part of a file
tar Archiving operations
telnet Telnet to another system
terminal Set terminal line parameters
test Test command
traceroute Trace route to destination
undebug Disable Debugging functions (See also debug)
unmount Unmount expansion flash or USB storage
update Update license
write Write current configuration
zone Execute Zone Server commands
zoneset Execute zoneset commands
end Go to exec mode
exit Exit from command interpreter
pop Pop mode from stack or restore from name
push Push current mode to stack or save it under name
where Shows the cli context you are in

You might also like