netdisco-do show takes a param for method in -p
This commit is contained in:
@@ -276,6 +276,10 @@ leaf with the class short name, for example "C<Layer3::C3550::interfaces>" or
|
||||
~netdisco/bin/netdisco-do show -d 192.0.2.1 -e interfaces
|
||||
~netdisco/bin/netdisco-do show -d 192.0.2.1 -e Layer2::HP::interfaces
|
||||
|
||||
A paramter may be passed to the C<SNMP::Info> method in the C<-p> parameter:
|
||||
|
||||
~netdisco/bin/netdisco-do show -d 192.0.2.1 -e has_layer -p 3
|
||||
|
||||
=head2 psql
|
||||
|
||||
Start an interactive terminal with the Netdisco PostgreSQL database. If you
|
||||
|
||||
@@ -28,7 +28,7 @@ register_worker({ phase => 'main', driver => 'snmp' }, sub {
|
||||
}
|
||||
|
||||
my $i = App::Netdisco::Transport::SNMP->reader_for($device, $class);
|
||||
Data::Printer::p($i->$extra);
|
||||
Data::Printer::p($i->$extra($port));
|
||||
|
||||
return Status->done(
|
||||
sprintf "Showed %s response from %s", $extra, $device->ip);
|
||||
|
||||
Reference in New Issue
Block a user