Saturday, February 20, 2010

IOS and JunOS commands

IOS and JunOS commands

Here’s a small “translation” table for IOS and JunOS commands with a comment about their scope.

IOSJunOSPurpose
clear countersclear interface statisticsClears the interface counters
clear arp-cacheclear arpClears the ARP cache
clear ip bgpclear bgp neighborClears all BGP sessions
clear ip bgp neighborclear bgp neighbor peerClears BGP session to a specifis neighbor
clock setset dateSet the actual time
ping destping dest rapid (for cisco like output)Simple Ping
ping (setting source int)ping dest bypass-routingPing with specific source interface
reloadrequest system rebootReboot the system
sendrequest messageSend a message to other users
show arpshow arpShows ARP cache
show clns interfaceshow isis interfaceShows IS-IS information from participating interfaces
show clns neighborsshow isis adjacencyShows ES-IS and IS-IS neighbors
show clockshow system uptimeDisplay current date
show controller interfaceshow interfaces interface extensiveDisplays physical port informations
show diagsshow chassis hardwareDisplays hardware diagnostics and status
show environment allshow chassis environmentInfos about Voltage, Power consumption, Temperature,…
show historyshow cli historyShows recent entered commands
show interface interfaceshow interfaces interface detailShows interface configuration, counters and status
show interface description (newer IOS)show interfaces descriptionShows description, status and interface name
show ip bgp neighbor peer advertised-routesshow route advertising-protocol bgp peerShows whether a neighbor supports the route refresh capabilty
show ip bgp neighbors neigh received-routesshow route receive-protocol bgp peerShows whether a neighbor supports the route refresh capability
show ip bgp peer-groupshow bgp groupDisplays BGP informations about all peer-groups
show ip bgp peer-group groupshow bgp group groupDisplays BGP informations about a specific peer-group
show ip bgp network maskshow route protocol bgp prefixBGP informations about a specific prefix
show ip bgp network mask longer-prefixesshow route range prefixBGP informations about a specific prefix as well as longer prefixes
show ip bgp regexp regexshow route aspath-regexp “regex”Shows routes matching AS path filter regex
show ip bgp summaryshow bgp summaryShows all BGP IPv4 neighbors
show ip interface briefshow interface terseDisplays IPv4 addresses per interface (in JunOS: IPv6 and ISO as well)
show ip ospf databaseshow ospf databaseShows the OSPF database
show ip ospf neighborshow ospf neighborDisplays all OSPF neighbors
show ip ospf interfaceshow ospf interfaceShows OSPF informations for the interface (e.g. state, dead time,…)
show ip routeshow routeDisplays the global routing table
show ip route isisshow isis routes / show route protocol isisDisplay only IS-IS originated routes
show ip route ospfshow ospf route / show route protocol ospfDisplay only OSPF originated routes
show ipv6 neighborsshow ipv6 neighborsDisplay discovered IPv6 neighbors
show ipv6 routeshow route table inet6.0Display IPv6 routing table
sh bgp ipv6 summary / show bgp ipv6 unicastshow bgp summaryDisplays IPv6 BGP neighbors
show tcp briefshow system connectionShows established TCP connections from/to router (BGP, SSH, Telnet,…)
show ip trafficshow system statisticShows infos about IP related traffic (BGP, EIGRP, PIM, ARP, ICMP)
show isis topologyshow isis spf briefShows the resulting IS-IS topology table after spf calculation
show loggingshow log messagesShows infos about loghost (IOS only) and local buffered log file content
show processes cpushow system processDisplays CPU utilization
show route-mapshow policyShows all configured route-maps (JunOS also shows Prefix-Lists,…)
show route-map mapnameshow policy name mapnameShows content of route-map mapname
show running-configshow configurationDisplays the actual running-configuration
show usersshow system usersShows logged in users
show tech-supportrequest support infoDisplays a lot of information. Often needed for TAC request.
show versionshow versionInformation about running software release (IOS also shows hardware infos)
terminal length 0set cli screen-length 0Continous output to terminal without more-breaks
terminal monitormonitor start messagesStart logging to terminal (when connected remotely)
terminal no monitormonitor stopStop logging to terminal (when connected remotely)

No comments:

Post a Comment