[DCN] Q &A: For using NMS and not receive trap-alarms while this uptime resetting, do we have option to collect real uptime of the device?

Latest reply: May 21, 2019 02:39:01 138 5 9 0

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.

Table1 Device startup time

Device Index

Device Name

Device ID

Device Startup Time

16842753

CE6850-48T4Q-EI

1

3402


  • x
  • convention:

Created May 17, 2019 09:51:12 Helpful(0) Helpful(0)

good!
  • x
  • convention:

Created May 17, 2019 09:52:59 Helpful(0) Helpful(0)

it is userful, great!
  • x
  • convention:

Created May 20, 2019 11:34:22 Helpful(0) Helpful(0)

good
  • x
  • convention:

Created May 21, 2019 01:01:49 Helpful(0) Helpful(0)

It is userful, Thanks!
  • x
  • convention:

Created May 21, 2019 02:39:01 Helpful(0) Helpful(0)

Tks
  • x
  • convention:

Reply

Reply
You need to log in to reply to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!

Login and enjoy all the member benefits

Login
Fast reply Scroll to top