in reply to Storing SNMP Next Request into a Hash or Array
my @oids = ( '.1.3.6.1.2.1.4.20.1.2' ); my $req = $snmp->get_next_request( -varbindlist => \@oids, ); $snmp->close; while (my ($key,$value) = each %{$req}) { print "$key = $value\n"; }
Thanks to zby for pointing out the array reference.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Storing SNMP Next Request into a Hash or Array
by CongoGrey (Sexton) on May 13, 2003 at 16:30 UTC | |
by CongoGrey (Sexton) on May 13, 2003 at 18:13 UTC | |
by Mr. Muskrat (Canon) on May 13, 2003 at 18:28 UTC |