CISCO IOS/XR AND JUNOS COMMAND REFERENCE

Rashmi Bhardwaj | Blog,Config & Troubleshoot
Advertisements

SYSTEM ADMINISTRATION & GENERAL COMMANDS

JUNIPER COMMAND

DESCRIPTION

CISCO COMMAND

DESCRIPTION

user@host%Unix Shell – enter cli for Operational Mode.
user@host>Operational moderouter>user exec mode
Configuration modeconfig t To enter configuration mode.(from privilege mode)
exit To log outexitTo Log out
show versionTo show JUNOS version sh version To show IOS Version
show system processes extensiveView CPU utilization per processsh process cpuView CPU utilization per process
show system storageView free disk space in the
router’s file system
dir View free disk space in the
router’s file system
show system uptimeTo verify how long router has
been up
sh versionTo verify how long router has
been up
show chassis forwardingView how long router
components have been up.
sh version, sh diagView how long router
components have been up.
show chassis environmentView power supply, fan, and
operating temperature
sh environmentView power supply, fan, and
operating temperature
show chassis hardwareView router hardware and
versions
 sh version, sh diag View router hardware and
versions
show chassis
routing-engine
To view memory usagesh memory sumView memory usage
request system rebootTo reboot router.reloadTo reboot router
show ntp associationsShow NTP associationssh ntp associationsShow NTP associations
show ntp statusShow NTP Statussh ntp status Show NTP Status
show system alarmsView all active alarms on a
router
router>user exec mode
show system usersView users logged in to a routersh usersView users logged in to a router
show system connectionsView protocols running on routersh protocolsView routing protocols running
on router
request system logout
username
Log a user out of a routerclear line <line nubmer>Log a user out of a router
command>| no-moreTo extend data to end of page
for a single command.
term length 0To extend data to end of page

CONFIGURATION

JUNIPER COMMAND

DESCRIPTION

CISCO COMMAND

DESCRIPTION

configure -or- editEnter configuraiton mode config t Enter global configuration mode
setSet a value in the configuration.<command>Set a value in the configuration.
 deleteRemove a value from the configuration.no <command>Remove a value from the configuration.
up -or- exitMove you back up the config hierchy tree one levelexitMove you back up the config hierchy tree one level
topMove you to the top of the config hierchy
editMoves you down the hierchy tree. Ex. edit protocols
disableShutdown an interface ‘set interfaces so-0/0/0 disable’shutdownAdministratively shutdown an interface.
activateAllows the router to recognize a deactivated interface.
deactivateAdds an ‘inactive’ tag to the interface config.
load override teminalClose the paste buffer with the Ctrl+D keystrokeCopy and paste configurationCopy a text configuration into the router.
commitIssue before the router can use any new config
rollbackTo easily restore an old configuration.
exit -or exit-configuration-modeExit configuration modeCntrl + Z -or – endTo exit configuration mode
run <operational
command>
Use any operational command from configuration mode.do <command>Enter show commands from configuration mode.

 

TROUBLESHOOTING

JUNIPER COMMAND

DESCRIPTION

CISCO COMMAND

DESCRIPTION

show configurationView current configuration. sh running-configuration View current configuration.
show configuration |
display set
View the set commands for the configuration
 show class-of-service interfaceSee most of the CoS configuration for an interfaceshow policy-map
interface
View service-policy applied to interface
show log messagesTo view router event log entriessh logView router event log entries
show interfacesTo show ip interface status and configsh ip interfacesShow ip interface status and config
show interfaces terseDisplays a summary of all interfaces.sh ip int briefDisplays a summary of all interfaces.
show interfaces queueDisplays detailed information on interface queuesshow policy-map interfaceView service-policy applied to interface.
show routeShow all IP routes the router has learned about.
show route summarySummary of all routing informationsh ip route summarySummary of all routing information
show route forwarding-tableView the current IP forwarding table.show ip routeView the current IP forwarding table.
show route 10.0.0.0/8 detailView detailed route information.
clear interfaces statistics allClear all statisticsclear countersReset all stats.
clear interfaces statistics se-0/0/0Clear statisticsclear counters Serial OReset data stats under interfaces or pvcs
clear ip route *Clear routing table
request support informationSystem diagnostic info for Junipershow techSystem diagnostic info for Cisco

 

BGP

JUNIPER COMMAND

DESCRIPTION

CISCO COMMAND

DESCRIPTION

show bgp summaryCheck the status of BGP peers. sh ip bgp summary Check the status of BGP peers.
show bgp neighborView detailed informations about each BGP peersh ip bgp neighborView detailed informations about each BGP peer
 show route advertising-protocolView BGP routes advertised to a neighborsh ip bgp neighbor advertisedView BGP routes advertised to a peer
show route receive-protocol bgpView BGP routes received from a peersh ip bgp neighbor receivedView BGP routes received from a peer
show route protocol bgp (detail)View BGP routes w/BGP attributes.sh ip bgpView BGP routes w/BGP attributes.
clear bgp neighbor x.x.x.xReset BGP neighbor sessionclear ip bgp *Reset BGP neighbor session

 

IS-IS

JUNIPER 

show isis interface (detail)View IS-IS interface parameters. sh clns interface View IS-IS interface parameters.
show isis adjacencyView IS-IS neighbor statussh clns neighborView IS-IS neighbor status
 show isis databaseView IS-IS Databasesh isis databaseView IS-IS Database
show route protocol isisCommand to view all IS-IS routes.sh ip route isisCommand to view all IS-IS routes.

 

OSPF

JUNIPER COMMAND

DESCRIPTION

CISCO COMMAND

DESCRIPTION

show ospf neighborView OSPF neighbor status sh ip ospf neighbor View OSPF neighbor status
show ospf databaseView OSPF databasesh ip ospf databaseView OSPF database
 show ospf interface (detail)View OSPF interface parameters.sh ip ospf interfaceView OSPF interface parameters.
show route protocol ospf Command to view all OSPF routes.sh ip route ospfCommand to view all OSPF routes

MPLS

JUNIPER COMMAND

DESCRIPTION

CISCO COMMAND

DESCRIPTION

show mpls interface
show mpls lspView all ingress, transit, and egress LSPssh mpls ldp bindings (detail)View all ingress, transit, and egress LSPs
 show mpls lsp ingress (extensive)View LSP status
show mpls lsp transit (extensive)View LSP status
show mpls lsp egress (extensive)View LSP status
show rsvp interfaceView interface RSVP informationsh ip rsvp interfaceView interface RSVP information
show route table inet.3View egress address for all operational LSPs

 

MULTICAST

JUNIPER COMMAND

DESCRIPTION

CISCO COMMAND

DESCRIPTION

show multicast route Displays information about active groups and sources sh ip mroute Displays information about active groups and sources
show route table inet.1Displays information about active groups and sourcessh ip mrouteDisplays information about active groups and sources
show pim bootstrapVerify the bootstrap router sh ip pim bsr-router Verify the bootstrap router
sshow pim join extensiveDisplay info about known groups, sources, & interfaces sh ip igmp groups Display info about known groups, sources, & interfaces
show pim rpsVerify the RP sh ip pim rp Verify the RP
show pim neighborsVerify PIM neighbor establishmentsh ip pim neighborVerify PIM neighbor establishment

 

FIREWALL FILTERS

JUNIPER COMMAND

DESCRIPTION

CISCO COMMAND

DESCRIPTION

show firewall View counters and stats for all filters sh access-lists View access-list counters
clear firewallClear filter statsclear ip access-list countersClear access-list counters
show interfaces filtersView filters configured on all interfaces sh ip interfaces View access-list applied to interface

 

ABOUT THE AUTHOR


Leave a Comment

Your email address will not be published. Required fields are marked *

Shopping Cart