Aug 8, 2018, 1:55 PM
Post #1 of 3
Currently, I have a n mrtg command that I think was done as a perl script. I don't know for sure, as I did not set it up and have no notes. The mrtg setup is basically a server running mrtg, that communicates with a number of routers to track traffic.
mrtg update command using perl
It is snmp v2c command right now. I want to move it to a 3v.
My v3 command at this point:
/usr/bin/cfgmaker --global "WorkDir: /var/www/mrtg/cordr1" --enablesnmpv3 --username=username --privprotocol=aescfb128 --authprotocol=sha --privpassword=shapass --authpassword=password --contextengineid=0x2e81200 --snmp-options=:::::3 --global "Options[_]: bits,growright" --global "WithPeak[_]: ymwd" --ifdesc=alias --output /etc/mrtg/mrtg_cordr1.cfg fqdn
This returns an snmpopen: received usmstatswrongdigests
However, the username/shapass/password seem right as an snmpwalk command seems to work fine.
snmpwalk -v3 -l authPriv -u user -a SHA -A shapass -x AES -X password fqdn
It starts to parse BGP route tables.
Now, you might wonder why I am on a perl forum, but I think the cfgmaker command is in perl, and I feel that my command should be close, but something must be wrong. So, it may just be a syntax error for perl.
If anyone has any thoughts, let me know.