How to collect real uptime of the device?

Created: May 17, 2019 17:39:33Latest reply: May 17, 2019 17:50:00 52 1 0 0
  Rewarded Hi-coins: 0 (problem resolved)

May I ask you a small question about CE cwitches?


On CE6851HI and CE5855EI sysUpTime, the customer noticed OID sysUpTimeInstance 1.3.6.1.2.1.1.3.0 resetting after ~ 497 days uptime and becomes a count.


But the UpTime (while checking) display version did not reset after ~497 uptime days.


The question is: while using NMS and not receiving trap-alarms while UpTime is resetting, do we have the option to collect the real UpTime of the device?

  • x
  • convention:

Featured Answers
DCN_Documentation     Created May 17, 2019 17:50:00 Helpful(1) Helpful(1)

Hey!

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

The query procedure is as follows:

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.

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.

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.

Link: https://forum.huawei.com/enterpr ... e/thread/528401-861
  • x
  • convention:

All Answers
DCN_Documentation     Created May 17, 2019 17:50:00 Helpful(1) Helpful(1)

Hey!

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

The query procedure is as follows:

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.

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.

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.

Link: https://forum.huawei.com/enterpr ... e/thread/528401-861
  • 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