test_class_mocked.pl - Test a device against an SNMP::Info class using output from make_snmpdata.pl stored in a text file.
Eric Miller
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
Specific SNMP::Info class to use. Defaults to SNMP::Info if no specific class provided.
-class Layer2::Catalyst
File containing data gathered using make_snmpdata.pl. No default and a mandatory option.
-file /data/mydevice.txt
Print values of a class method rather than summarizing. May be repeated multiple times.
-print i_description -print i_type
Turns on SNMP::Info debug.
-debug
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
Print help message and exits.
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.
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.