loading
02. January 2025.
Toni Kuzman
103 views

Unlike IOS, IOS-XR will not show you the device's serial number with the show version or show inventory commands. To be precise, show inventory will display serial numbers, but only for the route processor, line cards, etc., not for the IOS-XR chassis itself.

How can you find the serial number of a device without physically inspecting it? There are several ways to do this. Let’s go step by step.

First, you need to change config mode into "admin"

RP/0/RP0/CPU0:A9K#admin

sysadmin-vm:0_RP0#

As you can see, prompt has been changed into sysadmin. Now, you are ready to get serial number from you chassis using commands like:

Option 1.

sysadmin-vm:0_RP0# show inventory chassis         

 Name: Rack 0                Descr: ASR 9902 Chassis                                           

 PID: ASR-9902               VID: V01                   SN: FOC1543N6FR

-----------------------------------------------------------------------------

Option 2.

sysadmin-vm:0_RP0# show rack-inventory            

                            Rack          

Location  Rack Serial  Number  State 

--------------------------------------

0/0      FOC1543N6FR  0       2     

0/RP0    FOC1543N6FR  0       2     

0/RP1     FOC1543N6FR  0       2   

------------------------------------------------------------------------------

Option 3.

sysadmin-vm:0_RP0# show diag chassis              

Diag Information For : 0

 Rack 0-IDPROM Info

    Controller Family        : 00ef

    Controller Type          : 02f2

    PID                      : ASR-9902

    Version Identifier       : V01

    UDI Description          : ASR 9902 Chassis

    Top Assy. Part Number    : 68-7275-03

    Top Assy. Revision       : L0 

    Chassis Serial Number    : FOC1543N6FR

    PCB Serial Number        : FOC1543K1K3

    CLEI Code                : INMGE10CRA

    Capabilities             : 00

Option 4.

If SNMP is configured, you can use SNMP tools or scripts to retrieve the serial number.

  • Common OIDs for serial numbers include: 1.3.6.1.2.1.47.1.1.1.1.11 (entPhysicalSerialNum)

So it is not big deal to get it, just you need to know where to look for it.