in reply to Extract data using snmpget with hash array
You should then be able to work out how to extract needed info.use Data::Dumper; for my $host ( @ARGV ) { if ( $result->{$host} ) { print "Got host $host:\n", Dumper( $result->{$host} ); } else { print "Did not get host $host:\n", Dumper( $err->{$host} ); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Extract data using snmpget with hash array
by ivancheng (Initiate) on Sep 04, 2015 at 11:16 UTC |