netdisco-do show takes a param for method in -p

This commit is contained in:
Oliver Gorwits
2017-10-07 13:58:52 +01:00
parent 4389cd0459
commit a4b9bf2036
2 changed files with 5 additions and 1 deletions

View File

@@ -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

View File

@@ -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);