netdisco-do - Run any Netdisco job from the command-line.
~/bin/netdisco-do <action> [-DISQ] [-d <device> [-p <port>] [-e <extra>]]
This program allows you to run any Netdisco poller job from the command-line.
Note that some jobs (discoverall, macwalk, arpwalk), nbtwalk) simply add entries to the Netdisco job queue for other jobs, so won't seem to do much when you trigger them.
discoverall
macwalk
arpwalk
nbtwalk
Run a discover on the device (specified with -d).
-d
Run a macsuck on the device (specified with -d).
Run an arpnip on the device (specified with -d).
Run an nbtstat on the node (specified with -d).
Generate GrapgViz graphs for the largest cluster of devices.
Dump the content of an SNMP MIB leaf, which is useful for diagnostics and troubleshooting. You should provide the "-e" option which is the name of the leaf (such as interfaces or uptime).
-e
interfaces
uptime
If you wish to test with a device class other than that discovered, prefix the leaf with the class short name, for example "Layer3::C3550::interfaces" or "Layer2::HP::uptime".
Layer3::C3550::interfaces
Layer2::HP::uptime
Set the SNMP location field on the device (specified with -d). Pass the location string in the -e extra parameter.
Set the SNMP contact field on the device (specified with -d). Pass the contact name in the -e extra parameter.
Set the description on a device port. Requires the -d parameter (device), -p parameter (port), and -e parameter (description).
-p
Set the up/down status on a device port. Requires the -d parameter (device), -p parameter (port), and -e parameter ("up" or "down").
Set the native VLAN on a device port. Requires the -d parameter (device), -p parameter (port), and -e parameter (VLAN number).
Set the PoE on/off status on a device port. Requires the -d parameter (device), -p parameter (port), and -e parameter ("true" or "false").
The flags "-DISQ" can be specified, multiple times, and enable the following items in order:
-DISQ
-D
Netdisco debug log level
-I
-II
SNMP::Info trace level (1 or 2).
-S
-SS
-SSS
SNMP (net-snmp) trace level (1, 2 or 3).
-Q
DBIx::Class trace enabled.
To install App::Netdisco, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Netdisco
CPAN shell
perl -MCPAN -e shell install App::Netdisco
For more information on module installation, please visit the detailed CPAN module installation guide.