Object name instead of OID in GoSNMP

341 Views Asked by At

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"
    },
1

There are 1 best solutions below

0
CrazyCrow On

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