App::Netdisco::Util::SNMP
Helper functions for SNMP::Info instances.
There are no default exports, however the :all tag will export all subroutines.
:all
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).
device_auth
read
write
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
Inherits the vtp_version from the previous SNMP::Info instance.
vtp_version
Passing VLAN "0" (zero) will reset the indexing to the basic v2 community or v3 empty context.
0
Return a list of directories in the `netdisco-mibs` folder.
Takes some data from SNMP::Info cache that has been Base64 encoded and frozen with Storable, decodes it and then munge to handle data format, before finally pretty render in JSON format.
Take an OID and return a version of it which is sortable using cmp operator. Works by zero-padding the numeric parts all to be length $seglen, which defaults to 6.
cmp
$seglen
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.