Cisco IOS Show Commands

Show CommandOutput
show interfacesDisplays information of all interfaces in the chassis or one specified interface
show interfaces switchportDisplays the status of a switching (non routing) port
show interfaces trunkDisplays information on the interface-trunk
show ip interfaceDisplays statuses of all IPv4 interfaces, add brief to get a summary
show ipv6 interfaceDisplays statuses of all IPv6 interfaces, add brief to get a summary
show ip trafficDisplays statistics on IP traffic
show ip routeDisplays the IPv4 routing table of the router
show ipv6 routeDisplays the IPv6 routing table of the router
show ip bgp regexp Displays what routes you're getting from an AS
show ip bgp vpnv4 vrf neighbors received-routesDisplays what routes you're getting from a neighbor,
show ip bgp summaryDisplays sumary information about BGP on the default VRF
show ip bgp vpnv4 vrf summaryDisplays summary information about BGP on a VRF
show ip bgpDisplays BGP routes in default route table
show ip bgp vpnv4 vrf Displays BGP routes in vrf
show ip bgp neighbor  routesDisplays what routes you're getting from a neighbor
show ip bgp vpnv4 vrf neighbor Displays what routes you're getting from a neighbor on a VRF
show ip bgp neighbor  advertised-routesDisplays what routes you're sending a neighbor
show ip ospfDisplays information about the OSPF process and its details.
show ip ospf databaseDisplays information about the contents of the topological database.
show ip ospf interfaceDisplays information on how OSPF has been configured on each interface.
show ip ospf neighborDisplays all the information  about the relationship that the router has with its neighbors.
show ip wccpDisplays information related to the Web Cache Control Protocol
show controllersDisplays clock rate and connected cable type for interface hardware element
show controllers tech-supportDisplays general information about a VIP card for problem reporting
show hardwareDisplays the hardware specific information for the router
show clockDisplays the system clock of the router
show environmentDisplays temperature, voltage, and blower information
show hostsDisplays the configured hostnames and their corresponding IP addresses of the router
show usersDisplays all users connected to the router
show inventoryDisplays the product inventory listing and UDI of all Cisco products installed on the router
show file systemsLists available file systems
show disk:Displays file system information for the disk at the given slot number
show processes detailedDisplays detailed information about all current processes or a specified process
show processes cpuDisplays all processes and their CPU utilization
show processes memoryDisplays the amount of memory used by each system process or a specified process
show historyDisplays command line history
show flashDisplays information about Flash memory
show versionDisplays information about loaded Cisco IOS software
show mac-address tableDisplays the MAC address table
show arpDisplays the ARP table of the router address to MAC address mappings
show protocolsDisplays status of configured Layer 3 protocols; both parameters are optional
show loggingDisplays the state of syslog and the contents of the standard system logging buffer.
show startup-configDisplays configuration saved in NVRAM
show running-configDisplays configuration currently running in RAM
show spanning-treeDisplays information about the spanning tree state
show vlanDisplays VLAN information
show contextDisplays context data
show cefDisplays information about packets sent by Cisco Express Forwarding
show clnsDisplays information on connectionless-mode network service packets that have passed through the router
show cdp neighborsDisplays information of connected routers found through the Cisco Discovery Protocol
show system jumbomtuDisplays the system maximum transmission unit size

Cisco IOS Processing Order of Operations

INGRESS FEATURESEGRESS FEATURES
1. Virtual Reassembly *1. Output IOS IPS Inspection
2. IP Traffic Export (RITE)2. Output WCCP Redirect
3. QoS Policy Propagation through BGP (QPPB)3. NM-CIDS
4. Ingress Flexible NetFlow *4. NAT Inside-to-Outside or NAT Enable *
5. Network Based Application Recognition (NBAR)5. Network Based Application Recognition (NBAR)
6. Input QoS Classification6. BGP Policy Accounting
7. Ingress NetFlow *7. Lawful Intercept
8. Lawful Intercept8. Check crytpo map ACL and mark for encryption
9. IOS IPS Inspection (inbound)9. Output QoS Classification
10. Input Stateful Packet Inspection (IOS FW) *10. Output ACL check (if not marked for encryption)
11. Check reverse crypto map ACL11. Crypto outbound ACL check (if marked for encryption)
12. Input ACL (unless existing NetFlow record was found)12. Output Flexible Packet Matching (FPM)
13. Input Flexible Packet Matching (FPM)13. DoS Tracker
14. IPsec Decryption (if encrypted)14. Output Stateful Packet Inspection (IOS FW) *
15. Crypto inbound ACL check (if packet had been encrypted)15. TCP Intercept
16. Unicast RPF check16. Output QoS Marking
17. Input QoS Marking17. Output Policing (CAR)
18. Input Policing (CAR)18. Output MAC/Precedence Accounting
19. Input MAC/Precedence Accounting19. IPsec Encryption
20. NAT Outside-to-Inside *20. Output ACL check (if encrypted)
21. Policy Routing21. Egress NetFlow *
22. Input WCCP Redirect22. Egress Flexible NetFlow *
 23. Egress RITE
 24. Output Queuing (CBWFQ, LLQ, WRED)

Windows to Linux Command Conversions

Command's PurposeMS-DOSLinuxBasic Linux Example
Copies filescopycpcp thisfile.txt /home/thisdirectory
Moves filesmovemvmv thisfile.txt /home/thisdirectory
Lists filesdirlsls
Clears screenclsclearclear
Closes prompt windowexitexitexit
Displays or sets datedatedatedate
Deletes filesdelrmrm thisfile.txt
"Echoes" output on the screenechoechoecho this message
Edits files with simple text editoreditpicopico thisfile.txt
Compares the contents of filesfcdiffdiff file1 file2
Finds a string of text in a filefindgrepgrep this word or phrase thisfile.txt
Formats a floppyformat a: (if floppy's in A:)mke2fs (or mformat/sbin/mke2fs /dev/fd0 (/dev/fd0 is the Linux equivalent of A:)
Displays command helpcommand /?manman command
Creates a directorymkdirmkdirmkdir directory
Screens through a filemorelessless thisfile.txt
Renames a filerenmvmv thisfile.txt thatfile.txt
Shows your location in the file systemchdirpwdpwd
Changes directories with a specified path (absolute path)cd pathnamecd pathnamecd /directory/directory
Changes directories with a relative pathcd ..cd ..cd ..
Displays the timetimedatedate
Shows amount of RAM and usememfreeprocinfo

Juniper JUNOS Commands

Juniper JUNOS CommandOperation
show chassis alarmChassis alarm status
show chassis craft-interfaceInformation currently on craft display
   set chassis display message "M40e unit for swap"displays a user defined message on the LCD craft interface
show chassis environmentEnvironmental information & temperature
show chassis temperature-thresholdsDisplays temperature thresholds
show chassis routing-engineDisplays info about the RE, memory & CPU utilization
show chassis hardwareHardware inventory + serial numbers; frus shows fans; ext shows eeprom, flash/disk capacity
show chassis fpcdisplays status of all FPCs installed (mem heap should be <80% !)
show chassis fpc detailincludes also SRAM/SDRAM available Mem and usage
show chassis fpc pic-satusDisplays info for all PICs
show chassis pic fpc-slot 0 pic-slot 1Displays info about one particular PIC
show chassis mac-addressesMAC address
show chassis [feb | scb | ssb | sfm slot]displays satus about PFE system control board (temp, cpu%,DRAM...)
show hostns lookup
show versiondisplays software running on the box
show system softwaredisplays installed packages
show system uptimeuptime of the router
show system processesShow the process table
show system statisticsShow protocol statistics
show system connectionslists only active IP sockets on RE
show system usersShow users currently logged into the system
show system storagedisplays the amount of amount of free disk space on file system
  root% df -kshow system storage from Shell
show system boot-messagesdisplays contents of boot log  (boot-up messages)
show system virtual-memorydisplays current memory state
request system rebootRestarts the system
request system haltStops the router and prepares it to be shut down
request system rebootReboot the system
request system snapshotSave config in /altconfig and software in /altroot before upgrade
request support informationshow tech
request system software add performs bsd pgkadd; always use jbundle (4->5 jinstall)
restart [ gracefully, immediately, soft]Restart process
request chassis routing-engine diagnostics allruns a diagnostic script in compact-flash,hard-disk & memory
request system storage cleanupFree storage space on the router by rotating log files and proposing a list
 of files for deletion. User input is required for file deletion.
configurationenters configuration mode
showdisplays the current configuration
editmodifies configuration statements
setsets configuration statements
deleteremoves configuration statements
exitexists edit mode and also config mode
commitsave, validate and activate a complete config
commit checkjust check config do not apply
commit confirmed xactivates config for a x minutes and then ask for confirmation, x=10 default
commit and-quitactivates config and exists edit mode
commit synchronizeactivates config on active RE and replicates it into backup RE
commit fullsignals to all daemons a SIGHUP (kill -1) which forces them to read their config files (restarts all daemons)
  root% mgd -lsame as commit full but from shell
commit atactivates config at a given time (schedule a commit)
  clear system commit Clear all pending commit requests
rollback 0deletes the new edited changes and returns to current config
rollbackreturns to the last commited config
rollback    +    commitit will return to previously saved config. Only at the top level!
load merge combines the current config and the new one
load override erases the candidate config and replaces it with "luis"
load merge terminalcopy and paste portions of the config, vanaf root config
load factory-defaultloads the factory default settings config
show | comparecompares the candidate config with the running config
show system rollback 40displays a rollback file
show system rollback compare 0 32shows differences between rollbacks 0 and 32 files
savesaves config in /var/home directory
save username@host:filenamesaves config in remote system using ssh
show configuration groups junos-defaultsdisplays only certain JUNOS default settins (system/services/apps)
start shell 
/configcontains active config and rollbacks 1,2 & 3
/var/db/configcontains rollback files 4 through 49
/var/tmpcontains core files generated by the daemons when they crash
/var/logfiles generated by the logging and traceoptions
/var/homecontains subdirectory per user
/altrootcontains a copy of the root file structure form the flash drive
/altconfigcontains a copy of the /config file structure on the flash drive
file listdisplays all files on this user home directory
file list /configdisplays all files on the /config directory
file show displays content of
file deletedeletes a file from hard disk
file copy source destinationcopies files from one RE to the other
file copy filenameftp://hostname/filenameCopy Files from the Local Router to a Remote System
file copy filename scp://user@hostname/filename 
file copy  ftp://hostname/filename  filenameCopy Files from a Remote System to the local router
show system rollback 40displays a rollback file
show system rollback compare 0 32shows differences between rollbacks 0 and 32 files
show log messagesshows all the logs, location is /var/log
show log  file-nameshows logs about an specific log file
show log clishow logs about cli commands issued
show log chassisdshow logs about chassis probs
show log installshow logs releveant to an install JUNOS version
show log debugshow daemon logs
show log messages?displays all the files with their dates of the collected logs
show log inventoryshows logs about inventory
monitor start  file-namemonitors logs in real time
monitor stopstops monitoring
help syslogexplanation of log meaning
monitor interface x-x/x/xmonitors interface real-time statistics
monitor traffic interface x-x/x/xprints packet headers to your terminal screen for info sent/received by the RE. No filtering allowed !!
monitor traffic interface x-x/x/x write-file [file]writes output to this command to a file, with L2 headers present
 all info is stored in a file so you can use tcpdump to read it
   % tcpdump -rread the contents of a tcpdump file
monitor start prints logfile to your terminal screen
show arpshows ARP entries
 clear interfaces statistics so-2/0/1reset counters & statistics for this particular interface
show interfaces diagnostics optics so-1/0/0displays SONET signaling power values and laser Tx Rx
show routeshow ip route
show route protocol [static, isis...]show ip route for an specific protocol
show route x.x.x.x extensiveextensive view of a route
show route forwarding-table destination x.x.x.xdisplays route entries in the master copy of the FT (on RE)
clear route forwarding-table x.x.x.xclears entries from the FT  (be careful! could lead to RIB/FIB inconsistencies!!)
   SFM0 (vty)# show route ip prefix x.x.x.xdisplays route entries into the PFE FT  (should be identical to RE FT)
show firewallshow packet/byte counts for all policing filters
show firewall loglog in memory resident buffer/kernel cache (detail: packet length)
clear firewall [all|filter-name|counter-name]clears counters
show interfaces filtersdisplays all firewall filters on all interfaces
show interfaces policersdisplays all firewall policers on all interfaces
show policerdisplays all policers, where it is used and no. packets processed
pingicmp echo-request/echo-response
ping atm interface vci ping remote atm interface using oam cells
traceroutesend udp 33434/ttl=1- receive icmp time-exceeded
test policy 0/0Pass all routes (0/0) through the policy as test

Brocade FOS CLI Commands

Brocade FOS CommandOperation
alicreate "Name", "domain,port#"Used to create an alias
alicreate "Name","portname1; portname2″To create multiple ports under a single alias
alidelete "Name"To delete an alias
aliadd "Name", "domain,port#"To add additional ports to an alias
aliremove "Name", "domain,port#"To remove a port from the alias
alishow "AliName"To show the alias configuration on the switch
zoneObjectRename {old_name} {new_name}Rename a zone.  Do a cfgsave followed by an cfgenable {configname} after.
zonecreate "Zone Name", "alias1; alias2″To create zones based on alias
zonedelete "ZoneName"To delete a zone
zoneadd "ZoneName", "alias name"To add additional alias into the zone
zoneremove "ZoneName", "alias name"To remove an alias from the zone
zoneshow "zoneName"To show the zone configuration information
cfgcreate "Configname", "Zone1; Zone2″To create configurations by adding in zones
cfgdelete "ConfigName"To delete a configuration
cfgadd "ConfigName", "Zone3″To add additional zones in the configuration
cfgremove "ConfigName", "Zone3″To remove a zone from the configuration
cfgshow "ConfigName"To show the details of that configuration
cfgenable "ConfigName"To enable a configuration on the switch
cfgsaveTo have the effective configuration to be written into the flash memory
psshowDisplays the status of the power supply
fansshowDisplays the status of the fans
tempshowDisplays the status of the temperature readings
sensorshowDisplays the status of the sensor readings
nsshowDisplays information in the name server
nsshow -tDisplays information in the name server
nsshow -rDisplays the information in the name server along with the state change registration details
nscamshowDisplays detailed information of all the devices connected to all the switches in the fabric (Remote Name Servers)
nsallshowDisplays the 24 bit address of all devices that are in the fabric
licenseshowDisplays all the licenses that have been added in the switch
dateDisplays the current date set on the switch
bannershowDisplays the banner that will appear when logging in using the CLI or web tools
httpcfgshowDisplays the JAVA version the switch expects at the management console
switchnameDisplays the name of the switch
fabricshowDisplays information of all the switches in the fabric
userconfig -show -aDisplays the account information like role , description , password exp date , locked status
switchstatusshowDisplays the overall status of the switch
switchstatuspolicyshowDisplays policy set for the switch regarding Marginal(Yellow) or Down(Red) error status
portshowTo show the port status
portcfgshowDisplays the speed set for all ports on all slots and other detailed port information
configshow fabric.opsDisplays the parameters of the switch. Ensure all switches in a fabric have the same parameters in order to communicate
configshow fabric.ops.pidFormatDisplays the PID set for a switch Core , Native or Extended edge
switchuptime OR uptimeDisplays the uptime for the switch
firmwareshowDisplays the firmware on the switch
versionDisplays the current firmware version on the switch
hashowDisplays the status of local and remote CP's. High availability , heartbeat and synchronization
portcfgshowDisplays the port settings
portcfg rscnsupr [slot/port] -enableA registered state change registration is suppressed when a state change occurs on the port
portcfg rscnsupr [slot/port] -disableA registered state change registration is sent when a state change occurs on the port
portnameTo assign a name for a port
portdisableTo disable a port or slot
portenableTo enable a port or slot
portcfgpersistentdisableTo disable a port , status would not change even after rebooting the switch
portcfgpersistentenableTo enable a port , status would not change even after rebooting the switch
portshowTo show the port status
portcfgspeed ,To set speed for a port#te - 0:auto negotiated 1,2,4 Gbit/sec , 1 : 1Gbit/sec , 2 : 2 Gbit/sec , 4 : 4Gbit/sec
switchcfgspeedTo 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/sec
portcfgshowDisplays the speed set for all ports on all slots and other detailed port information
portcfgdefaultTo set the port settings to default
portcfglongdistanceTo 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 = Static
portcfgeportUsed to disable a port from being a E port
dateDisplays the current date set on the switch
tsclockserver 10.10.1.1Instruction for the principal switch to synchronize time with the NTP server (specify the  ip address of the NTP server)
tsclockserver LOCLInstruction to stop NTP server synchronization (Local time of the switch)
date mmddhhmmyyTo set the time of the switch when the NTP server synchronization is cancelled
tstimezone -5To set the time zone for individual switches
licenseshowDisplays all the licenses that are added in the switch
licenseaddTo add a new license to the switch
licenseremoveTo remove a license from the switch
licenseidshowBased on Switch WWN
bannershowDisplays the banner that will appear when logging in using the CLI or web tools
bannersetTo set the banner which will appear when logging in using the CLI or web tools
bannerset ""To remove the bannerset (two quotes)
passwdTo change the password for that particular login
passwdcfg -set -lowercase 3 uppercase 1 -digits 2 -punctuation 2 -minlength 10 -history 3To set the password rules
passwdcfg -set -minpasswordage 1To set the minimum password age in Days
passwdcfg -set -maxpasswordage 30To set the maximum password age in Days
passwdcfg -set -warning 23To set a warning for the expiration Days remaining
passwdcfg -set -lockoutthreshold 5To set the account lockout thresh hold
passwdcfg -set -lockoutduration 30To set the account lockout duration in Minutes
passwdcfg -setdefaultTo restore the password policy to Factory settings (min length - 8, history -1 , lockoutduration - 30)
snmpconfigsnmpconfig for 5.0 above fos
agtcfgsetsnmp config for fos below 5.0
snmpmibcapsetfor choosing the MIB's for the snmp settings
userconfig -show -a / userconfig -showDisplays all the account information like role , description , password expiration date , locked status
userconfig -add john -r admin -d "John Doe"To add a new account -r = role , -d = description
userconfig -show johnDisplays all the information for the account john
userconfig -change -e noTo 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 rights
userconfig -change -e yesTo Enable an account
configuploadSaves the switch config as an ASCII text file to an FTP server
configdownloadTo restore a switch configuration from ASCII text file Note - Need to disable the switch before downloading the config file
configure => cfgload attributes : [y] => Ensure secure config upload / download : [y]Fabric OS v 4.4 & above provides Secure File Copy Protocol (SCP) during upload or download of configurations
firmwaredownloadTo download the firmware to be installed on the switch
firmwareshowTo be run after installing the firmware on the switch
versionDisplays the current firmware version on the switch
fastbootNeeds to be run after installing the firmware. This does not include the post.
rebootNeeds to be run after installing the firmware. This includes the post.
killtelnetTo kill a particular session which is using telnet
configureTo configure a switch
quietmodeTo switch off the quiet mode
quietmode 1To suppress messages to the console
switchnameDisplays the switch name
switchname "EXAMPLE"To assign a switch name
bannersetTo set the banner which will appear when logging in using the CLI or web tools
timeoutDisplays the timeout time set for Telnet session on the switch
timeout 10To set a specific timeout time for the Telnet session
switchuptime or uptimeDisplays the uptime for the switch
switchcfgspeedTo 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/sec
fastbootTo reboot the switch without post
rebootTo reboot the switch with the post
switchstatusshowDisplays the overall status of the switch
switchstatuspolicyshowDisplays policy set for the switch regarding Marginal(Yellow) or Down(Red) error status
switchstatuspolicysetTo change the policy set for the switch regarding Marginal(Yellow) or Down(Red) error status

 

© 2019