I am trying to generate snmp.yml by using the generator. This is my generator file :-
modules:
XPPC-MIB:
walk:
- .1.3.6.1.4.1.935.1.1.1.8.3.2.0
version: 3
max_repetitions: 25
retries: 3
timeout: 10s
auth:
username: ********
security_level: authNoPriv
password: *********
auth_protocol: MD5
I am getting the following error :-
level=info ts=2020-09-14T06:12:47.382Z caller=net_snmp.go:142 msg="Loading MIBs" from=$HOME/.snmp/mibs:/usr/share/snmp/mibs
level=info ts=2020-09-14T06:12:47.530Z caller=main.go:52 msg="Generating config for module" module=XPPC-MIB
level=error ts=2020-09-14T06:12:47.538Z caller=main.go:130 msg="Error generating config netsnmp" err="cannot find oid '.1.3.6.1.4.1.935.1.1.1.8.3.2.0' to walk"
If I try snmptranslate, it works :-
snmptranslate -mALL .1.3.6.1.4.1.935.1.1.1.8.3.2.0
XPPC-MIB::upsThreePhaseOutputVoltageR.0
snmpwalk to that oid also gives the value of the oid :-
snmpwalk -l authNoPriv -u ******** -a MD5 -A ********* XX.XX.XX.XX .1.3.6.1.4.1.935.1.1.1.8.3.2.0
SNMPv2-SMI::enterprises.935.1.1.1.8.3.2.0 = INTEGER: 2323
So I'm pretty sure that netsnmp is working fine.
The
XPPC-MIB.txt file is in
/usr/share/snmp/mibs.
I'm working on Centos 8.
What am I doing wrong? Any help is appreciated.
Thanks.