-
-
17 May 2022 21:06:21 UTC
- Distribution: App-Netdisco
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (20)
- Testers
- Kwalitee
Bus factor: 1- 74.63% Coverage
- License: bsd
- Activity
24 month- Tools
- Download (4.29MB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Algorithm::Cron
- AnyEvent
- AnyEvent::DNS::EtcHosts
- App::cpanminus
- App::local::lib::helper
- Archive::Extract
- Authen::Radius
- Authen::TacacsPlus
- CGI::Expand
- Command::Runner
- DBD::Pg
- DBIx::Class
- DBIx::Class::Helpers
- Daemon::Control
- Dancer
- Dancer::Plugin::Auth::Extensible
- Dancer::Plugin::DBIC
- Dancer::Plugin::Passphrase
- Dancer::Plugin::Swagger
- Dancer::Session::Cookie
- Data::Printer
- Data::Visitor::Tiny
- EV
- Expect
- File::Path
- File::ShareDir
- File::Slurper
- File::Spec::Functions
- Guard
- HTML::Parser
- HTTP::Tiny
- IO::Socket::INET6
- IO::Socket::SSL
- JSON
- JSON::PP
- JSON::XS
- List::MoreUtils
- List::Util
- MCE
- MIME::Base64
- Module::Load
- Moo
- Net::DNS
- Net::Domain
- Net::LDAP
- Net::OpenSSH
- NetAddr::IP
- NetAddr::MAC
- Opcode
- Package::DeprecationManager
- Path::Class
- Plack
- Plack::Handler::Twiggy
- Plack::Middleware::Debug
- Plack::Middleware::Expires
- Plack::Middleware::Headers
- Plack::Middleware::ReverseProxy
- Pod::Usage
- Regexp::Common
- Role::Tiny
- SNMP::Info
- SQL::Abstract
- SQL::Translator
- Scope::Guard
- Sereal
- Session::Storage::Secure
- Socket6
- Starman
- Storable
- Sub::Util
- Sys::SigAction
- Template
- Template::AutoFilter
- Template::Plugin::CSV
- Template::Plugin::Number::Format
- Term::ReadLine
- Term::UI
- Try::Tiny
- URI
- URI::Based
- URL::Encode
- URL::Encode::XS
- YAML
- YAML::XS
- aliased
- autovivification
- namespace::clean
- version
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
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
sortable_oid( $oid, $seglen? )
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.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
orwrite
).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.Inherits the
vtp_version
from the previous SNMP::Info instance.Passing VLAN "
0
" (zero) will reset the indexing to the basic v2 community or v3 empty context.decode_and_munge( $method, $data )
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.
Module Install Instructions
To install App::Netdisco, copy and paste the appropriate command in to your terminal.
cpanm App::Netdisco
perl -MCPAN -e shell install App::Netdisco
For more information on module installation, please visit the detailed CPAN module installation guide.