NAME

test_class.pl - Test a device against an SNMP::Info class.

AUTHOR

Eric Miller

SYNOPSIS

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

OPTIONS

-class

Specific SNMP::Info class to use. Defaults to SNMP::Info if no specific class provided.

-class Layer2::Catalyst

-dev

Device to test against. No default and a mandatory option.

-dev 1.2.3.4

-comm

SNMP community string. No default and a mandatory option.

-comm public

-ver

SNMP version. Default 2.

-ver 1

-print

Print values of a class method rather than summarizing. May be repeated multiple times.

-print i_description -print i_type

-ignore

Ignore Net-SNMP configuration file snmp.conf. If this used mibdirs must be provided.

-ignore

-mibdir

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

-nobulk

Disable SNMP bulkwalk. Default bulkwalk is on and utilized with version 2.

-nobulk

-debug

Turns on SNMP::Info debug.

-debug

-cache

Dumps the table and leaf cache at the end of running. Requires that the Data::Printer module be installed, otherwise does nothing.

-cache

-help

Print help message and exits.

DESCRIPTION

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.