How to check the OID and SNMPWalk read supported by the device

2022-09-06 22:20:37 Published
  • 0 Followed
  • 0Collected ,1053Browsed

Network Topology

irrelevant

Problem Description

How to check the OID and SNMPWalk read supported by the device


Process Analysis

1.Obtain the supported OID from the device

2. Read the related OID on the device where SNMPWalk is installed

3. Check whether the real-time values on the device are consistent

Solution

  1. Find the correct oid on device, I just execute this command on H3C-R3600.

<Router>dis snmp-agent mib-node | inc Usage

         |-pethMainPowerUsageOnNotification<1.3.6.1.2.1.105.0.2>(NA)

         |-pethMainPowerUsageOffNotification<1.3.6.1.2.1.105.0.3>(NA)

            |-*pethMainPseUsageThreshold<1.3.6.1.2.1.105.1.3.1.1.5>(RW)

            |-*isisISAdjUsage<1.3.6.1.2.1.138.1.6.1.1.8>(RO)

              |-*hh3cEntityExtCpuUsage<1.3.6.1.4.1.25506.2.6.1.1.1.1.6>(RO)

              |-*hh3cEntityExtCpuUsageThreshold<1.3.6.1.4.1.25506.2.6.1.1.1.1.7>(RW)

              |-*hh3cEntityExtMemUsage<1.3.6.1.4.1.25506.2.6.1.1.1.1.8>(RO)

 

  1. snmpwalk this oid to get the cpu usage of device

[root@centos snmp]# snmpwalk -v 2c -c public 1.1.1.1 1.3.6.1.4.1.25506.2.6.1.1.1.1.6.14

SNMPv2-SMI::enterprises.25506.2.6.1.1.1.1.6.14 = INTEGER: 17

[root@centos snmp]# snmpwalk -v 2c -c public 1.1.1.1 1.3.6.1.4.1.25506.2.6.1.1.1.1.6.14

SNMPv2-SMI::enterprises.25506.2.6.1.1.1.1.6.14 = INTEGER: 22

[root@centos snmp]# snmpwalk -v 2c -c public 1.1.1.1 1.3.6.1.4.1.25506.2.6.1.1.1.1.6.14

SNMPv2-SMI::enterprises.25506.2.6.1.1.1.1.6.14 = INTEGER: 15

[root@centos snmp]# snmpwalk -v 2c -c public 1.1.1.1 1.3.6.1.4.1.25506.2.6.1.1.1.1.6.14

SNMPv2-SMI::enterprises.25506.2.6.1.1.1.1.6.14 = INTEGER: 36

[root@centos snmp]# snmpwalk -v 2c -c public 1.1.1.1 1.3.6.1.4.1.25506.2.6.1.1.1.1.6.14

SNMPv2-SMI::enterprises.25506.2.6.1.1.1.1.6.14 = INTEGER: 99

 

  1. check the cpu usage on device

<Router>dis cpu-usage

Unit CPU usage:

      15% in last 5 seconds

      17% in last 1 minute

      16% in last 5 minutes

 

<Router>dis cpu-usage

Unit CPU usage:

      16% in last 5 seconds

      15% in last 1 minute

      16% in last 5 minutes

 

<Router>dis cpu-usage

Unit CPU usage:

      19% in last 5 seconds

      15% in last 1 minute

      16% in last 5 minutes

 

<Router>dis cpu-usage

Unit CPU usage:

      19% in last 5 seconds

      15% in last 1 minute

      16% in last 5 minutes

 

<Router>dis cpu-usage

Unit CPU usage:

      21% in last 5 seconds

      15% in last 1 minute

      16% in last 5 minutes

 

<Router>dis cpu-usage

Unit CPU usage:

      21% in last 5 seconds

Please rate this case:   
0 Comments

No Comments

Add Comments: