test_class.pl - Test a device against an SNMP::Info class.
Eric Miller
test_class.pl [options]
Options:
-c|class SNMP::Info class to use, Layer2::Catalyst -d|dev Device -s|comm SNMP community -v|ver SNMP version -p|print Print values -i|ignore Ignore Net-SNMP configuration file -m|mibdir Directory containing MIB Files -n|nobulk Disable bulkwalk -x|debug Debugging flag -k|cache Dump cache (requires Data::Printer to be installed) -h|?|help Brief help message
Specific SNMP::Info class to use. Defaults to SNMP::Info if no specific class provided.
-class Layer2::Catalyst
Device to test against. No default and a mandatory option.
-dev 1.2.3.4
SNMP community string. No default and a mandatory option.
-comm public
SNMP version. Default 2.
-ver 1
Print values of a class method rather than summarizing. May be repeated multiple times.
-print i_description -print i_type
Ignore Net-SNMP configuration file snmp.conf. If this used mibdirs must be provided.
-ignore
Directory containing MIB Files. Multiple directories should be separated by a colon ':'.
-mibdir /usr/local/share/snmp/mibs/rfc:/usr/local/share/snmp/mibs/net-snmp
Disable SNMP bulkwalk. Default bulkwalk is on and utilized with version 2.
-nobulk
Turns on SNMP::Info debug.
-debug
Dumps the table and leaf cache at the end of running. Requires that the Data::Printer module be installed, otherwise does nothing.
-cache
Print help message and exits.
test_class.pl will test a device against a specfied SNMP::Info class. This allows debugging and testing of live devices to include validating device support with existing classes.
To install SNMP::Info, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SNMP::Info
CPAN shell
perl -MCPAN -e shell install SNMP::Info
For more information on module installation, please visit the detailed CPAN module installation guide.