0

Is it possible to return Object name instead of OID using gosnmp

For eg:

Instead of

    ".1.3.6.1.2.1.25.2.3.1.1.1": {
        "type": "2",
        "val": "1"
    },

How can i get:

    "hrStorageIndex": {
        "type": "2",
        "val": "1"
    },
James Sapam
  • 16,036
  • 12
  • 50
  • 73

1 Answers1

0

The answer is simple - use MIBs. GoSNMP doesn't have MIB support, but you can use the idea from https://github.com/soniah/gosnmp/issues/57

CrazyCrow
  • 4,125
  • 1
  • 28
  • 39