Oliver Gorwits > App-Netdisco-2.005000_001 > App::Netdisco::Util::Connect



Annotate this POD


View/Report Bugs
Source   Latest Release: App-Netdisco-2.007000_001

App::Netdisco::Util::Connect ^

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.

get_device( $ip )

Given an IP address, returns a DBIx::Class::Row object for the Device in the Netdisco database. The IP can be for any interface on the device.

Returns undef if the device or interface IP is not known to Netdisco.

get_port( $device, $portname )

get_iid( $info, $port )

get_powerid( $info, $port )

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.

Returns undef if the connection fails.

syntax highlighting: