Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Perl Net::SNMP returns 1 instead of the desired outcome

by kcott (Archbishop)
on Oct 25, 2013 at 08:03 UTC ( [id://1059609]=note: print w/replies, xml ) Need Help??


in reply to Perl Net::SNMP returns 1 instead of the desired outcome

G'day vlad3848,

I'm not a user of Net::SNMP; however, the documentation for get_result() seems to suggest you're receiving a boolean value. From get_request() - send a SNMP get-request to the remote agent:

"... In non-blocking mode, a true value is returned when no error has occurred. ..."

If you look further down the documentation to the EXAMPLES section, I think 1. Blocking SNMPv1 get-request for sysUpTime may provide what you're looking for.

-- Ken

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1059609]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-24 04:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found