FAQ - how to extract device serial number using SNMP protocol

Publication Date:  2015-12-23 Views:  1800 Downloads:  0
Issue Description

This case describe the method about how extract device serial number by querying the system using SNMP protocol.  The test device here is an AR2200 with V200R005C20SPC200.

 

 

Solution

By checking the mib reference documentation we can quickly identify the OID that can extract the required information. This is the corresponding table:

entPhysicalTable
This table lists all the physical objects as well as their types and information. At least one object is contained in the table.
The index of this table is entPhysicalIndex.
The OID prefix of this table is 1.3.6.1.2.1.47.1.1.1.1.
Check the leaf 11.
entPhysicalSerialNum [11] SnmpAdminString (SIZE (0..32)) Indicates the serial number.
The default value is 1. Read-only This object is implemented as defined in the corresponding MIB files.

here below you can find the test result:

 

---------------------- New Test -----------------------
Paessler SNMP Tester 5.1.3
4/29/2015 2:56:42 PM (8 ms) : Device: 192.168.64.24
4/29/2015 2:56:42 PM (13 ms) : SNMP V2c
4/29/2015 2:56:42 PM (17 ms) : Walk 1.3.6.1.2.1.47.1.1.1.1.11
4/29/2015 2:56:42 PM (108 ms) : 1.3.6.1.2.1.47.1.1.1.1.11.3 = "2102113373P0EA000035"
4/29/2015 2:56:42 PM (195 ms) : 1.3.6.1.2.1.47.1.1.1.1.11.262149 = ""
----------------------- New Test -----------------------
Paessler SNMP Tester 5.1.3
4/29/2015 2:57:09 PM (9 ms) : Device: 192.168.64.24
4/29/2015 2:57:09 PM (13 ms) : SNMP V2c
4/29/2015 2:57:09 PM (17 ms) : Custom OID 1.3.6.1.2.1.47.1.1.1.1.11.3
4/29/2015 2:57:09 PM (191 ms) : -------
4/29/2015 2:57:09 PM (196 ms) : Value: 2102113373P0EA000035

<U19_R6_AR2200>dis esn                                                         
ESN of device: 2102113373P0EA000035  

I hope you will find this FAQ usefull.

END