Basic IOS-XR command cheat sheet

Some basic commands that I have found useful in managing an ASR9K / IOS-XR device. This page is likely to grow and change over time.

Clear ARP

clear arp-cache <interface> <IPv4 addr> location all 

BGP

show bgp all unicast summary 

BGP Routes

show bgp ipv[4/6] unicast neighbors <neighbor> received route
show bgp ipv[4/6] unicast advertised neighbor <neighbor> 
show bgp ipv[4/6] unicast summary
show bgp ipv[4/6] unicast summary
clear bgp ipv[4/6] unicast <neighbor> soft in
show bgp all unicast summary
show bgp ipv[4/6] unicast bestpath-compare

Hardware Stats

sh controllers fabric fia drops egresssh controllers fabric fia drops ingresssh controllers fabric fia stats
sh controllers np counters all
show hw-module fpd location all

Reset Line Cards

hw-module location <location> reload
hw-module location 0/2/CPU0 reload

NetFlow

show flow exporter <exporter> location 0/RSP0/CPU0 

Processes

show processes
show processes fib_mgr detail location 0/3/CPU0
process restart fib_mgr location 0/3/CPU0