[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bigsister-general] snmpvar doesn't support community parameter?


On Tue, 2004-11-23 at 17:53, Matt Kettler wrote:
> I've been trying to get snmpvar to work, but I seem to have run into a 
> problem. snmpvar doesn't appear to support the "community" option, 

Oops, that's a bug.

> What's needed to make snmpvar import and use a specified community string? 
> I'm not averse to making a few .pm or .cfg hacks, but I need a direction.

Edit the etc/tests.cfg file, find the "snmp_anyvar" definition (around
line 494), then add a line

	set community "public";

before the "init {" block (that's the default) and add a line

	instance import community;

within the init { block (that will make the snmpvar test accept
the community argument, like other snmp based tests).

Unless you also change "static set arguments ..." the
testers command will still be unaware of the community
option, but changing the community in uxmon-net like

    testbox community=whatever ... snmpvar

will work.

Best regards,
Tom
--------------------------------------------------------------------
Thomas Aeby, Kirchweg 52, 1735 Giffers, Switzerland, suppressed
Voice:(+41)26 4180040                       PGP public key available
--------------------------------------------------------------------




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Bigsister-general mailing list
suppressed
https://lists.sourceforge.net/lists/listinfo/bigsister-general


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.