NAME

test_class_mocked.pl - Test a device against an SNMP::Info class using output from make_snmpdata.pl stored in a text file.

AUTHOR

Eric Miller

SYNOPSIS

test_class_mocked.pl [options]

Options:

-class    SNMP::Info class to use, Layer2::Catalyst    
-file     File containing data gathered using make_snmpdata.pl
-print    Print values 
-debug    Debugging flag
-ignore   Ignore Net-SNMP configuration file
-mibdir   Directory containing MIB Files
-help     Brief help message

OPTIONS

-class

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

-class Layer2::Catalyst

-file

File containing data gathered using make_snmpdata.pl. No default and a mandatory option.

-file /data/mydevice.txt

-print

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

-print i_description -print i_type

-debug

Turns on SNMP::Info debug.

-debug

-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

-help

Print help message and exits.

DESCRIPTION

test_class_mocked.pl will test a device against an SNMP::Info class using snmpwalk output from the utility make_snmpdata.pl stored in a text file. This allows debugging and testing without requiring network access to the device being tested.