hi,

i've written a Perl agent which extents snmp functionality.

The thing is that it works great, but i've noticed a strange behaviour 
in some snmget requests. I'm a newbie in all this snmp world, and may be 
it's the way that snmp works, but i prefer to ask you.. .just in case.

Well....

Let's say I've got this call....

************
snmpget -v2c -c mypassword 192.168.xx.xxx .1.3.6.1.4.1.2021.255.8.1.102
************

which reads from a file.... captures its value, prints it... and deletes 
the file afterwords.

This file is created from time to time by a cronjob. If the file 
exists... you'll get something like this:

# snmpget -v2c -c  mypassword 192.168.xx.xxx .1.3.6.1.4.1.2021.255.8.1.102
UCD-SNMP-MIB::ucdavis.255.8.1.102 = STRING: "4"

and if it doesn't....

snmpget -v2c -c  mypassword 192.168.xx.xxx .1.3.6.1.4.1.2021.255.8.1.102
UCD-SNMP-MIB::ucdavis.255.8.1.102 = STRING: "NOFILE"

and now my question....
it turns out that when the file exists... i perform de snmpget command, 
i get the proper value and the file is properly deleted as well....
but if right after that, i call snmpget again, i will get "4" again, 
although the file is not there anymore, the cronjob hasn't created it again.
If i wait for some time, and i call snmpget again, i will finally get 
the "NOFILE" value.... so, it's like that value is stored somehow and 
used for some time after it has been initialised.

does that make any sense to you? Is there any way i can change that 
behaviour?

My system is a debian etch machine, running snmp 5.4.1 version.

Thanks.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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

Reply via email to