Got it

[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 364 5 9 1

You can obtain the card startup time using the hwEntityUpTime object in the hwEntityStateTable table.






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





  • x
  • convention:

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

View more
  • x
  • convention:

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

it is userful, great!
View more
  • x
  • convention:

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

View more
  • x
  • convention:

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

It is userful, Thanks!
View more
  • x
  • convention:

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

View more
  • x
  • convention:


You need to log in to comment 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."

My Followers

Login and enjoy all the member benefits


Huawei Enterprise Support Community
Huawei Enterprise Support Community
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Please bind your phone number to obtain invitation bonus.