You are on page 1of 4

JUNOS-to-Cisco IOS/XR Command Reference

Here are some very useful command references when moving between JUNOS and Cisco IOS/XR:

System Administration & General Commands

Juniper Command Description Cisco Command Description


Unix Shell - enter cli for
user@host%
Operational Mode.
user@host> Operational mode router> user exec mode
To enter configuration mode.
Configuration mode config t
(from priveledge mode)
exit To log out exit To log out
show version To show JUNOS version sh version To show IOS Version
show system processes
View CPU utilization per process sh process cpu View CPU utilization per process
extensive
View free disk space in the View free disk space in the
show system storage dir
router's file system router's file system
To verify how long router has To verify how long router has
show system uptime sh version
been up been up
View how long router View how long router
show chassis forwarding sh version, sh diag
components have been up. components have been up.
View power supply, fan, and View power supply, fan, and
show chassis environment sh environment
operating temperature operating temperature
View router hardware and View router hardware and
show chassis hardware sh version, sh diag
versions versions
show chassis
To view memory usage sh memory sum View memory usage
routing-engine
request system reboot To reboot router. reload To reboot router
show ntp associations Show NTP associations sh ntp associations Show NTP associations
show ntp status Show NTP Status sh ntp status Show NTP Status
View all active alarms on a
show system alarms
router
show system users View users logged in to a router sh users View users logged in to a router
View routing protocols running
show system connetions View protocols running on router sh protocols
on router
request system logout
Log a user out of a router clear line <line nubmer> Log a user out of a router
username
To extend data to end of page
<command>| no-more term length 0 To extend data to end of page
for a single command.

Configuration

Juniper Command Description Cisco Command Description


configure -or- edit Enter configuraiton mode config t Enter global configuration mode
set Set a value in the configuration. <command> Set a value in the configuration.
Remove a value from the Remove a value from the
delete no <command>
configuration. configuration.
Move you back up the config Move you back up the config
up -or- exit exit
hierchy tree one level hierchy tree one level
Move you to the top of the config
top
hierchy.
Moves you down the hierchy
edit
tree. Ex. edit protocols

http://packetlife.net/wiki/junos-cisco-iosxr-command-reference/ Page 1
Shutdown an interface 'set Administratively shutdown an
disable shutdown
interfaces so-0/0/0 disable' interface.
Allows the router to recognize a
activate
deactivated interface.
Adds an 'inactive' tag to the
deactivate
interface config.
Opens a paste buffer in the CLI.
Copy a text configuration into
load override teminal Close the paste buffer with the Copy and paste configuration
the router.
Ctrl+D keystroke.
Issue before the router can use
commit
any new config.
To easily restore an old
rollback
configuration.
exit -or-
Exit configuration mode Cntrl + Z -or - end To exit configuration mode
exit-configuration-mode
run <operational Use any operational command Enter show commands from
do <command>
command> from configuration mode. configuration mode.

Troubleshooting

General

Juniper Command Description Cisco Command Description


show configuration View current configuration. sh running-configuration View current configuration.
show configuration | View the set commands for the
display set configuration
show class-of-service See most of the CoS show policy-map View service-policy applied to
interface configuration for an interface interface interface.
show log messages To view router event log entries sh log View router event log entries
To show ip interface status and Show ip interface status and
show interfaces sh ip interfaces
config config
Displays a summary of all Displays a summary of all
show interfaces terse sh ip int brief
interfaces. interfaces.
Displays detailed information on show policy-map View service-policy applied to
show interfaces queue
interface queues interface interface.
Show all IP routes the router has
show route
learned about.
Summary of all routing Summary of all routing
show route summary sh ip route summary
information information
show route View the current IP forwarding View the current IP forwarding
show ip route
forwarding-table table. table.
show route 10.0.0.0/8
View detailed route information.
detail
clear interfaces
Clear all statistics clear counters Reset all stats.
statistics all
clear interfaces Reset data stats under
Clear statistics on an clear counters Serial0
statistics se-0/0/0 interfaces or pvcs
clear ip route * Clear routing table
request support System diagnostic info for
show tech System diagnostic info for Cisco.
information Juniper.

BGP

Juniper Command Description Cisco Command Description


show bgp summary Check the status of BGP peers. sh ip bgp summary Check the status of BGP peers.

http://packetlife.net/wiki/junos-cisco-iosxr-command-reference/ Page 2
View detailed informations about View detailed informations about
show bgp neighbor sh ip bgp neighbor
each BGP peer each BGP peer
show route View BGP routes advertised to a sh ip bgp neighbor View BGP routes advertised to a
advertising-protocol bgp neighbor advertised peer
show route View BGP routes received from sh ip bgp neighbor View BGP routes received from
receive-protocol bgp a peer received a peer
show route protocol bgp View BGP routes w/BGP View BGP routes w/BGP
sh ip bgp
(detail) attributes. attributes.
clear bgp neighbor
Reset BGP neighbor session clear ip bgp * Reset BGP neighbor session
x.x.x.x

IS-IS

Juniper Command Description Cisco Command Description


show isis interface
View IS-IS interface parameters. sh clns interface View IS-IS interface parameters.
(detail)
show isis adjacency View IS-IS neighbor status sh clns neighbor View IS-IS neighbor status
show isis database View IS-IS Database sh isis database View IS-IS Database
Command to view all IS-IS Command to view all IS-IS
show route protocol isis sh ip route isis
routes. routes.

OSPF

Juniper Command Description Cisco Command Description


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

MPLS

Juniper Command Description Cisco Command Description


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

Multicast

Juniper Command Description Cisco Command Description


Displays information about Displays information about
show multicast route sh ip mroute
active groups and sources active groups and sources
Displays information about Displays information about
show route table inet.1 sh ip mroute
active groups and sources active groups and sources
show pim bootstrap Verify the bootstrap router sh ip pim bsr-router Verify the bootstrap router
Display info about known Display info about known
show pim join extensive sh ip igmp groups
groups, sources, & interfaces groups, sources, & interfaces

http://packetlife.net/wiki/junos-cisco-iosxr-command-reference/ Page 3
show pim rps Verify the RP sh ip pim rp Verify the RP
Verify PIM neighbor Verify PIM neighbor
show pim neighbors sh ip pim neighbor
establishment establishment

Firewall Filters

Juniper Command Description Cisco Command Description


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

http://packetlife.net/wiki/junos-cisco-iosxr-command-reference/ Page 4

You might also like