netdisco-do - Run any Netdisco job from the command-line.
~/bin/netdisco-do <action> [-D] [-d <device> [-p <port>] [-e <extra>]]
Regardless of Netdisco configuration, debug level logging is enabled if the -D flag is given.
-D
This program allows you to run any Netdisco poller job from the command-line.
Note that some jobs (discoverall, macwalk, arpwalk) 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
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).
Set the SNMP location field on the device (specified with -d). Pass the location string in the -e extra parameter.
-e
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").
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.