Oliver Gorwits > App-Netdisco-2.013001 > netdisco-do

Download:
App-Netdisco-2.013001.tar.gz

Annotate this POD

Website

View/Report Bugs
Source   Latest Release: App-Netdisco-2.029014

NAME ^

netdisco-do - Run any Netdisco job from the command-line.

USAGE ^

 ~/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.

DESCRIPTION ^

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.

ACTIONS ^

discover

Run a discover on the device (specified with -d).

macsuck

Run a macsuck on the device (specified with -d).

arpnip

Run an arpnip on the device (specified with -d).

set_location

Set the SNMP location field on the device (specified with -d). Pass the location string in the -e extra parameter.

set_contact

Set the SNMP contact field on the device (specified with -d). Pass the contact name in the -e extra parameter.

set_portname

Set the description on a device port. Requires the -d parameter (device), -p parameter (port), and -e parameter (description).

set_portcontrol

Set the up/down status on a device port. Requires the -d parameter (device), -p parameter (port), and -e parameter ("up" or "down").

set_vlan

Set the native VLAN on a device port. Requires the -d parameter (device), -p parameter (port), and -e parameter (VLAN number).

set_power

Set the PoE on/off status on a device port. Requires the -d parameter (device), -p parameter (port), and -e parameter ("true" or "false").

syntax highlighting: