> 
> The snmpget is displaying some strange behaviour when using pass method 
> to extend the agent. I have a following line in my snmpd.conf file:
> 
> pass .1.3.6.1.4.1.96.255.2.0 /tmp/a/test

        [snip test]
 
> When I issue snmpget command using the OID, i get the integer 999, as 
> expected: 
> 
> # snmpget -v2c -c community machine .1.3.6.1.4.1.96.255.2.0
> SNMPv2-SMI::enterprises.96.255.2 = INTEGER: 999

[ I presume that's a typo, and there should be a trailing ".0" there ? ]
 

> but if I modify the program by changing the line sleep(0); to sleep(1); 
> and run snmpget the output looks like this:
> 
> # snmpget -v2c -c community machine .1.3.6.1.4.1.96.255.2.0
> SNMPv2-SMI::enterprises.96.255.2.0 = No Such Instance


Hmmm....
  I've just tried this example both with the current development code,
and the 5.1.x line (i.e. what's effectively 5.1.2).  In both cases this
works just as expected - pausing for a moment and then returning 999.

There probably is a timeout associated with the pass mechanism,
but I'd expect it to be significantly longer than one second.

Can you try with the just-released 5.1.2 version, and see whether
this problem still exists?

Dave




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to