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

Daniel J McDonald dan.mcdonald at austinenergy.com
Thu Mar 8 19:02:22 CET 2007


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
http://www.austinenergy.com



More information about the mrtg mailing list