Oliver Gorwits > App-Netdisco-2.020003_003 > App::Netdisco::Util::SNMP

Download:
App-Netdisco-2.020003_003.tar.gz

Dependencies

Annotate this POD

Website

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

NAME ^

App::Netdisco::Util::SNMP

DESCRIPTION ^

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.

EXPORT_OK ^

snmp_connect( $ip )

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.

snmp_connect_rw( $ip )

Same as snmp_connect but uses the read-write community string(s) from the application configuration file.

Returns undef if the connection fails.

snmp_comm_reindex( $snmp, $device, $vlan )

Takes an established SNMP::Info instance and makes a fresh connection using community indexing, with the given $vlan ID. Works for all SNMP versions.

syntax highlighting: