App::Netdisco::Transport::SNMP
Singleton for SNMP connections. Returns cached SNMP::Info instance for a given device IP, or else undef. All methods are class methods, for example:
App::Netdisco::Transport::SNMP->reader_for( ... );
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, that community will be tried first, and then other community strings from the application configuration will be tried.
If $useclass is provided, it will be used as the SNMP::Info device class instead of the class in the Netdisco database.
$useclass
Returns undef if the connection fails.
undef
Same as reader_for but uses the read-write community strings from the application configuration file.
reader_for
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.