in reply to Re^2: Trouble getting data out of a hash
in thread Trouble getting data out of a hash
First of all, the returned hash is empty so it's no wonder that you the uninitialzed warning. I've never used Net::SNMP but from a quick glance at the docs I see:
holli, /regexed monk/
so I think you're call of request is wrong and should read$result = $session->get_request( [-callback => sub {},] # non-bloc +king [-delay => $seconds,] # non-bloc +king [-contextengineid => $engine_id,] # v3 [-contextname => $name,] # v3 -varbindlist => \@oids, );
$result = $session->get_request( -varbindlist => [$OID] );
holli, /regexed monk/
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Trouble getting data out of a hash
by wruehl (Acolyte) on Oct 26, 2007 at 14:07 UTC |
In Section
Seekers of Perl Wisdom