Error handling when getting multiple values (in Perl)
"Ulrich Windl" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi!
A problem with snmpget for multiple values is error handling: You can find out that something went wrong, but not easily which of multiple requested values had a problem getting.
So I'm considering using Perl instead of a shell script. In Perl you can "$sess->get(<vars> [,<callback>])" to get multiple values, also. Unfortunately the error handling is no specified either:
---
$sess->get(<vars> [,<callback>])
do SNMP GET, multiple <vars> formats accepted. for syncronous
operation <vars> will be updated with value(s) and type(s) and will
also return retrieved value(s). If <callback> supplied method will
operate asyncronously
---
Can I sanely guess that "undef" will be returned where a value couldn't be got?
For efficiency I'd like to get as many values with one request as possible...
Regards,
Ulrich
------------------------------------------------------------------------------
_______________________________________________
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