NAME

App::Netdisco::Util::SNMP

DESCRIPTION

Helper functions for SNMP::Info instances.

There are no default exports, however the :all tag will export all subroutines.

EXPORT_OK

fixup_device_auth

Rebuilds the device_auth config with missing defaults and other fixups for config changes over time. Returns a list which can replace device_auth.

get_communities( $device, $mode )

Takes the current device_auth setting and pushes onto the front of the list the last known good SNMP settings used for this mode (read or write).

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.

Passing VLAN "0" (zero) will reset the indexing to the basic v2 community or v3 empty context.