You can obtain the card startup time using the hwEntityUpTime object in the hwEntityStateTable table.
Object | OID |
entPhysicalName | 1.3.6.1.2.1.47.1.1.1.1.7 |
entPhysicalClass | 1.3.6.1.2.1.47.1.1.1.1.5 |
hwEntityUpTime | 1.3.6.1.4.1.2011.5.25.31.1.1.1.1.10 |
The query procedure is as follows:
1. Perform an SNMP walk operation on the entPhysicalClass object to obtain indexes and types of all entities. Find the entity of the type 9 from the walk operation results. The value 9 indicates that the entity type is device.
entPhysicalClass.16842753 = 9
In the preceding operation results, the value 16842753 indicates an entity index, and the value 9 indicates an entity type.
2. Perform an SNMP get operation on the entPhysicalName object based on the device index to obtain the name and ID of the device.
entPhysicalName.16842753 = CE6850-48T4Q-EI 1
In the preceding operation results, the name and ID of the device with the index 16842753 are CE6850-48T4Q-EI and 1 respectively.
3. Perform an SNMP get operation on the hwEntityUpTime object based on the device index to obtain the device startup time.
hwEntityUpTime.16842753 = 3402
In the preceding operation results, the startup time of the device with the index 16842753 is 3402.
After performing the preceding operations, you can obtain the device startup time, as shown in the table below.
Device Index | Device Name | Device ID | Device Startup Time |
16842753 | CE6850-48T4Q-EI | 1 | 3402 |