Digest, Vol 70, Issue 36

Shantanu Bhadoria shantanu at
Fri Nov 4 08:01:44 GMT 2011

Ohh I should probably add, my snmpwalk command doesn't work with string
vars like sysDescr either, that too ask for OIDs. I know that people do it
with Stringified variables.

On Fri, Nov 4, 2011 at 3:58 PM, Shantanu Bhadoria <shantanu at> wrote:

> Hey folks,
> I am resurrecting the old SNMP thread. I request mongers for some more
> help :p
> Here is the problem I have been facing.
> I see that in all the scripts where I use variables from MIBS I have to
> call these two lines before I can make use of SNMP variables instead of
> OIDs to call stuff.
> SNMP::initMib();
> SNMP::loadModules('ALL');
> However on other systems I noted that lines like the following worked
> without having to explicitly call the above two lines :
> my $vars = SNMP::VarList->new( [ 'sysUpTime', 0 ], [ 'sysDescr', 0 ] );
> Is there a system configuration setting that I am missing that
> automatically load MIBs?
> whoever answers this, you have my eternal gratitude for answering this
> question cuz I am struggling :P
> thanks and cheers!
> -Shantanu

More information about the mailing list