Kelly Goedert
Kelly Goedert

Reputation: 1067

snmpwalk -m with snmp4j

on linux I can execute something like this snmpwalk -c public -v2c -m <path_to_vendor_mib_file> <ip_address>

I would like to implement this same line in java using snmp4j. Is it possible? I didn't find any examples using the -m parameter to load the vendor specific mib file.

Upvotes: 2

Views: 1359

Answers (1)

bstpierre
bstpierre

Reputation: 31206

According to this message, it is not possible to load MIB specifications at runtime with snmp4j.

If it works for your application, it will be better to parse the MIB file at design/build time to generate code. This will make your application more rigid in that it will only know about that particular MIB.

If your application is more general purpose, you will need to find a MIB parsing library like Mibble.

Upvotes: 1

Related Questions