App::Netdisco::Util::SNMP
A set of helper subroutines to support parts of the Netdisco application.
There are no default exports, however the :all tag will export all subroutines.
:all
Given an IP address, returns an SNMP::Info instance configured for and connected to that device. The IP can be any on the device, and the management interface will be connected to.
If the device is known to Netdisco and there is a cached SNMP community string, this will be tried first, and then other community string(s) from the application configuration will be tried.
Returns undef if the connection fails.
undef
Same as snmp_connect but uses the read-write community string(s) from the application configuration file.
snmp_connect
Takes an established SNMP::Info instance and makes a fresh connection using community indexing, with the given $vlan ID. Works for all SNMP versions.
$vlan
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.