Ad Widget

Collapse

Get a count of entries below an OID

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • paulkoan
    Junior Member
    • May 2015
    • 2

    #1

    Get a count of entries below an OID

    We have a device that uses this OID:

    Code:
    1.3.6.1.2.1.4.35.1.4
    This is where the arp cache is stored. Below this oid are entries like this:

    Code:
    iso.3.6.1.2.1.4.35.1.4.50.1.4.172.99.112.36 = Hex-STRING: 00 50 99 8F 14 99
    Each one of these is an ARP entry, grouped by interface. The IP address forms part of the OID.

    What I'd like to do is get a count of the entries below 1.3.6.1.2.1.4.35.1.4 - which will effectively give me the number of arp table entries for the device.

    Is it possible to create an item that does a count of OIDs below a level?
    Last edited by paulkoan; 02-06-2015, 04:02.
  • paulkoan
    Junior Member
    • May 2015
    • 2

    #2
    I can probably get put together a script that sshes to the box and does a count of the arp entries, but I'd rather not introduce any additional moving parts if possible.

    Comment

    Working...