in reply to Re: Error handling in AnyEvent::SNMP
in thread Error handling in AnyEvent::SNMP

Thanks, but that doesn't work, it only makes the snmp request on the first OID in the loop
if I force an error, not using an event loop (just snmp non-blocking mode) for example,
$session->get_table( -baseoid => $snmp_table, -maxrepetitions => 1, -callback => sub{ #print "get_sub\n" +; $hosts{$host}{oid_ +results_table}->{$snmp_table}= &snmp_collect(@_); #$cv->end; } )
The error The max-repetitions argument is not applicable when using SNMPv1 is returned
When implemented in the AnyEvent loop the script hangs. Any ideas?

Replies are listed 'Best First'.
Re^3: Error handling in AnyEvent::SNMP
by bliako (Abbot) on Jun 01, 2021 at 04:14 UTC

    where is the $cv->send ?