Re: Question on pass_persist feature of net-snmp

Mark Hennelly <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Sorry, please ignore the last post. The script works! The reason it didn't
work before is that I had forgotten to change the permissions to make it
executable. The output of the snmpget command is displayed below:

*snmpget -v 2c -c public localhost .1.3.6.1.3.1.1
EMNETS-MIB::network = STRING: "life the universe and everything"

*
On Tue, Aug 4, 2009 at 2:59 PM, Mark Hennelly <[email protected]>wrote:

> Ok, I've tried what you suggested with the "pass_persisttest" script and
> the error output is exactly the same as before. The script is not being
> executed following the snmp command. I changed the pass_persist line in the
> snmpd.conf file to reference the script and the path to the script is
> definitely correct.
>
> Thanks,
> Mark
>
>
> On Tue, Aug 4, 2009 at 1:07 PM, Dave Shield <[email protected]>wrote:
>
>> 2009/8/4 Mark Hennelly <[email protected]>:
>> > Sorry, I made a mistake with the error output. The actual error I got
>> was:
>> > EMNETS-MIB::networkNodeName.12 = No Such Instance currently exists at
>> this OID
>>
>> OK - that makes more sense.
>>
>>
>>
>> > The output from your 4 snmpgetnext commands is as follows:
>> >
>> > IP-MIB::ipForwarding.0 = INTEGER: notForwarding(2)
>> > UCD-SNMP-MIB::memIndex.0 = INTEGER: 0
>> > UCD-SNMP-MIB::memIndex.0 = INTEGER: 0
>> > NET-SNMP-AGENT-MIB::nsModuleName."".1.0.0 = STRING:
>>
>> Right - so the agent seems to be working sensibly.
>> It's just the extension mechanism that's failing.
>>
>>
>> The next thing to try is to install the 'pass_persisttest' script from
>> the 'local' subdirectory of the source tree. Tweak this script to
>> reference '.1.3.6.1.3.1.1' as the root, and adjust the snmpd.conf
>> file to invoke this script instead of your java program.    Then restart
>> the agent, and try "snmpgetnext ... .1.3.6.1.3.1.1" again.
>>
>> What does that report?
>>
>> Dave
>>
>
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.