[mrtg] Want to run snmpget from cli of mrtg server

Mersberger, Robert robert.mersberger at goldenven.com
Thu Mar 8 19:35:57 CET 2007

 Looks like Snmp_util is loaded. Can you tell me how I would evoke this
from the command line?

I would like to do and snmpwalk -c dogface 


-----Original Message-----
From: mrtg-bounces at lists.oetiker.ch
[mailto:mrtg-bounces at lists.oetiker.ch] On Behalf Of Daniel J McDonald
Sent: Thursday, March 08, 2007 12:02 PM
To: mrtg at lists.oetiker.ch
Subject: Re: [mrtg] Want to run snmpget from cli of mrtg server

On Thu, 2007-03-08 at 11:13 -0600, Mersberger, Robert wrote:
> Is there a way to run snmpget or snmpwalk that mrtg uses from the 
> command line of the server that mrtg is installed on?

mrtg uses one of two perl modules to perform that work.  Which module is
loaded depends on whether you are using snmp V3 or V1/V2c

If you were to run cfgmaker or mrtg with perl -d, you could stop the
script after the snmp credentials are parsed and either SNMP_util.pm or
Net_SNMP_util.pm is loaded.  Then you could do snmpwalk or snmpget in
the perl debugger.

Full details on the module are available using `perldoc Net_SNMP_util`.
The syntax is mostly the same for both modules, but SNMP_util does not
have any pod associated with it. 

Daniel J McDonald, CCIE # 2495, CISSP # 78281, CNX Austin Energy

mrtg mailing list
mrtg at lists.oetiker.ch

This e-mail message and any attachment(s) (collectively, this 'Email') are intended
only for the confidential use of the recipient(s) named above. If the reader of this
message is not the intended recipient named above or an agent responsible for
delivering it to the intended recipient named above, you have received this Email in error.
Please notify the sender immediately and permanently delete this Email and any copies thereof.

More information about the mrtg mailing list