CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: General Discussions: General Questions:
mrtg update command using perl

 



vinmansbrew
New User

Aug 8, 2018, 1:55 PM

Post #1 of 3 (1179 views)
mrtg update command using perl Can't Post

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.
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.
Thanks!


FishMonger
Veteran / Moderator

Aug 9, 2018, 11:16 AM

Post #2 of 3 (1176 views)
Re: [vinmansbrew] mrtg update command using perl [In reply to] Can't Post

It's very unlikely that cfgmaker is written in perl. It's more likely to be written in C/C#.

Have you read the man page to check the proper syntax?
https://linux.die.net/man/1/cfgmaker


vinmansbrew
New User

Aug 10, 2018, 5:38 AM

Post #3 of 3 (1170 views)
Re: [FishMonger] mrtg update command using perl [In reply to] Can't Post

No, I don't think cfgmaker, itself, is in perl. I just thought the command that I am attempting to use, was a perl script. But maybe not, I don't know anything about perl and was just going by something I read in my searching.
I've looked at the man page, but I'll check out the c/c# angle.
Thanks

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives