added CiscoImage class
This commit is contained in:
		| @@ -40,10 +40,12 @@ use SNMP::Info::CiscoVTP; | ||||
| use SNMP::Info::CiscoStack; | ||||
| use SNMP::Info::CDP; | ||||
| use SNMP::Info::CiscoStats; | ||||
| use SNMP::Info::CiscoImage; | ||||
|  | ||||
| use vars qw/$VERSION $DEBUG %GLOBALS %MIBS %FUNCS %MUNGE $INIT/ ; | ||||
| @SNMP::Info::Layer3::C3550::ISA = qw/SNMP::Info::Layer3     SNMP::Info::CiscoStack SNMP::Info::CiscoVTP | ||||
|                                      SNMP::Info::CiscoStats SNMP::Info::CDP        Exporter            /; | ||||
|                                      SNMP::Info::CiscoStats SNMP::Info::CDP        Exporter | ||||
|                                      SNMP::Info::CiscoImage/; | ||||
| @SNMP::Info::Layer3::C3550::EXPORT_OK = qw//; | ||||
|  | ||||
| %MIBS =    ( | ||||
| @@ -52,6 +54,7 @@ use vars qw/$VERSION $DEBUG %GLOBALS %MIBS %FUNCS %MUNGE $INIT/ ; | ||||
|             %SNMP::Info::CiscoStack::MIBS, | ||||
|             %SNMP::Info::CDP::MIBS, | ||||
|             %SNMP::Info::CiscoStats::MIBS, | ||||
|             %SNMP::Info::CiscoImage::MIBS, | ||||
|            ); | ||||
|  | ||||
| %GLOBALS = ( | ||||
| @@ -60,6 +63,7 @@ use vars qw/$VERSION $DEBUG %GLOBALS %MIBS %FUNCS %MUNGE $INIT/ ; | ||||
|             %SNMP::Info::CiscoStack::GLOBALS, | ||||
|             %SNMP::Info::CDP::GLOBALS, | ||||
|             %SNMP::Info::CiscoStats::GLOBALS, | ||||
|             %SNMP::Info::CiscoImage::GLOBALS, | ||||
|             'ports2'      => 'ifNumber', | ||||
|            ); | ||||
|  | ||||
| @@ -69,6 +73,7 @@ use vars qw/$VERSION $DEBUG %GLOBALS %MIBS %FUNCS %MUNGE $INIT/ ; | ||||
|             %SNMP::Info::CiscoStack::FUNCS, | ||||
|             %SNMP::Info::CDP::FUNCS, | ||||
|             %SNMP::Info::CiscoStats::FUNCS, | ||||
|             %SNMP::Info::CiscoImage::FUNCS, | ||||
|          ); | ||||
|  | ||||
| %MUNGE = ( | ||||
| @@ -78,6 +83,7 @@ use vars qw/$VERSION $DEBUG %GLOBALS %MIBS %FUNCS %MUNGE $INIT/ ; | ||||
|             %SNMP::Info::CiscoStack::MUNGE, | ||||
|             %SNMP::Info::CDP::MUNGE, | ||||
|             %SNMP::Info::CiscoStats::MUNGE, | ||||
|             %SNMP::Info::CiscoImage::MUNGE, | ||||
|          ); | ||||
|  | ||||
| # Pick and choose | ||||
| @@ -179,6 +185,8 @@ a more specific class using the method above. | ||||
|  | ||||
| =item SNMP::Info::CiscoStats | ||||
|  | ||||
| =item SNMP::Info::CiscoImage | ||||
|  | ||||
| =back | ||||
|  | ||||
| =head2 Required MIBs | ||||
| @@ -195,6 +203,8 @@ See SNMP::Info::CiscoStack for its own MIB requirements. | ||||
|  | ||||
| See SNMP::Info::CiscoStats for its own MIB requirements. | ||||
|  | ||||
| See SNMP::Info::CiscoImage for its own MIB requirements. | ||||
|  | ||||
| See SNMP::Info::CDP for its own MIB requirements. | ||||
|  | ||||
| =back | ||||
| @@ -242,6 +252,10 @@ See documentation in SNMP::Info::CDP for details. | ||||
|  | ||||
| See documentation in SNMP::Info::CiscoStats for details. | ||||
|  | ||||
| =head2 Globals imported from SNMP::Info::CiscoImage | ||||
|  | ||||
| See documentation in SNMP::Info::CiscoImage for details. | ||||
|  | ||||
| =head1 TABLE ENTRIES | ||||
|  | ||||
| These are methods that return tables of information in the form of a reference | ||||
| @@ -267,4 +281,8 @@ See documentation in SNMP::Info::CDP for details. | ||||
|  | ||||
| See documentation in SNMP::Info::CiscoStats for details. | ||||
|  | ||||
| =head2 Table Methods imported from SNMP::Info::CiscoImage | ||||
|  | ||||
| See documentation in SNMP::Info::CiscoImage for details. | ||||
|  | ||||
| =cut | ||||
|   | ||||
| @@ -28,7 +28,6 @@ | ||||
| # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
|  | ||||
| package SNMP::Info::Layer3::C6500; | ||||
| $VERSION = 1.0; | ||||
| # $Id$ | ||||
|  | ||||
| use strict; | ||||
| @@ -39,10 +38,13 @@ use SNMP::Info::CiscoVTP; | ||||
| use SNMP::Info::CiscoStack; | ||||
| use SNMP::Info::CDP; | ||||
| use SNMP::Info::CiscoStats; | ||||
| use SNMP::Info::CiscoImage; | ||||
|  | ||||
| use vars qw/$VERSION $DEBUG %GLOBALS %MIBS %FUNCS %MUNGE $INIT/ ; | ||||
| $VERSION = 1.0; | ||||
| @SNMP::Info::Layer3::C6500::ISA = qw/ SNMP::Info::Layer3 SNMP::Info::CiscoStack SNMP::Info::CiscoVTP  | ||||
|                                       SNMP::Info::CiscoStats SNMP::Info::CDP Exporter/; | ||||
|                                       SNMP::Info::CiscoStats SNMP::Info::CDP Exporter | ||||
|                                       SNMP::Info::CiscoImage/; | ||||
| @SNMP::Info::Layer3::C6500::EXPORT_OK = qw//; | ||||
|  | ||||
| %MIBS =    ( | ||||
| @@ -51,6 +53,7 @@ use vars qw/$VERSION $DEBUG %GLOBALS %MIBS %FUNCS %MUNGE $INIT/ ; | ||||
|             %SNMP::Info::CiscoStack::MIBS, | ||||
|             %SNMP::Info::CDP::MIBS, | ||||
|             %SNMP::Info::CiscoStats::MIBS, | ||||
|             %SNMP::Info::CiscoImage::MIBS, | ||||
|            ); | ||||
|  | ||||
| %GLOBALS = ( | ||||
| @@ -59,6 +62,7 @@ use vars qw/$VERSION $DEBUG %GLOBALS %MIBS %FUNCS %MUNGE $INIT/ ; | ||||
|             %SNMP::Info::CiscoStack::GLOBALS, | ||||
|             %SNMP::Info::CDP::GLOBALS, | ||||
|             %SNMP::Info::CiscoStats::GLOBALS, | ||||
|             %SNMP::Info::CiscoImage::GLOBALS, | ||||
|            ); | ||||
|  | ||||
| %FUNCS = ( | ||||
| @@ -67,6 +71,7 @@ use vars qw/$VERSION $DEBUG %GLOBALS %MIBS %FUNCS %MUNGE $INIT/ ; | ||||
|             %SNMP::Info::CiscoStack::FUNCS, | ||||
|             %SNMP::Info::CDP::FUNCS, | ||||
|             %SNMP::Info::CiscoStats::FUNCS, | ||||
|             %SNMP::Info::CiscoImage::FUNCS, | ||||
|          ); | ||||
|  | ||||
| %MUNGE = ( | ||||
| @@ -75,6 +80,7 @@ use vars qw/$VERSION $DEBUG %GLOBALS %MIBS %FUNCS %MUNGE $INIT/ ; | ||||
|             %SNMP::Info::CiscoStack::MUNGE, | ||||
|             %SNMP::Info::CDP::MUNGE, | ||||
|             %SNMP::Info::CiscoStats::MUNGE, | ||||
|             %SNMP::Info::CiscoImage::MUNGE, | ||||
|          ); | ||||
|  | ||||
| # Pick and choose | ||||
| @@ -148,6 +154,8 @@ a more specific class using the method above. | ||||
|  | ||||
| =item SNMP::Info::CDP | ||||
|  | ||||
| =item SNMP::Info::CiscoImage | ||||
|  | ||||
| =back | ||||
|  | ||||
| =head2 Required MIBs | ||||
| @@ -166,6 +174,8 @@ See SNMP::Info::CiscoStats for its own MIB requirements. | ||||
|  | ||||
| See SNMP::Info::CDP for its own MIB requirements. | ||||
|  | ||||
| See SNMP::Info::CiscoImage for its own MIB requirements. | ||||
|  | ||||
| =back | ||||
|  | ||||
| =head1 GLOBALS | ||||
| @@ -205,6 +215,10 @@ See documentation in SNMP::Info::CDP for details. | ||||
|  | ||||
| See documentation in SNMP::Info::CiscoStats for details. | ||||
|  | ||||
| =head2 Globals imported from SNMP::Info::CiscoImage | ||||
|  | ||||
| See documentation in SNMP::Info::CiscoImage for details. | ||||
|  | ||||
| =head1 TABLE ENTRIES | ||||
|  | ||||
| These are methods that return tables of information in the form of a reference | ||||
| @@ -230,5 +244,9 @@ See documentation in SNMP::Info::CDP for details. | ||||
|  | ||||
| See documentation in SNMP::Info::CiscoStats for details. | ||||
|  | ||||
| =head2 Table Methods imported from SNMP::Info::CiscoImage | ||||
|  | ||||
| See documentation in SNMP::Info::CiscoImage for details. | ||||
|  | ||||
| =cut | ||||
|  | ||||
|   | ||||
| @@ -27,7 +27,6 @@ | ||||
| # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
|  | ||||
| package SNMP::Info::Layer3::Cisco; | ||||
| $VERSION = 1.0; | ||||
| # $Id$ | ||||
|  | ||||
| use strict; | ||||
| @@ -37,11 +36,13 @@ use SNMP::Info::Layer3; | ||||
| use SNMP::Info::CiscoVTP; | ||||
| use SNMP::Info::CDP; | ||||
| use SNMP::Info::CiscoStats; | ||||
| use SNMP::Info::CiscoImage; | ||||
|  | ||||
| use vars qw/$VERSION $DEBUG %GLOBALS %MIBS %FUNCS %MUNGE $INIT/ ; | ||||
| $VERSION = 1.0; | ||||
| @SNMP::Info::Layer3::Cisco::ISA = qw/SNMP::Info::Layer3 SNMP::Info::CiscoVTP  | ||||
|                                      SNMP::Info::CDP    SNMP::Info::CiscoStats  | ||||
|                                      Exporter/; | ||||
|                                      SNMP::Info::CiscoImage Exporter/; | ||||
| @SNMP::Info::Layer3::Cisco::EXPORT_OK = qw//; | ||||
|  | ||||
| %MIBS = ( | ||||
| @@ -49,6 +50,7 @@ use vars qw/$VERSION $DEBUG %GLOBALS %MIBS %FUNCS %MUNGE $INIT/ ; | ||||
|             %SNMP::Info::CiscoVTP::MIBS, | ||||
|             %SNMP::Info::CDP::MIBS, | ||||
|             %SNMP::Info::CiscoStats::MIBS, | ||||
|             %SNMP::Info::CiscoImage::MIBS, | ||||
|         ); | ||||
|  | ||||
| %GLOBALS = ( | ||||
| @@ -56,6 +58,7 @@ use vars qw/$VERSION $DEBUG %GLOBALS %MIBS %FUNCS %MUNGE $INIT/ ; | ||||
|             %SNMP::Info::CiscoVTP::GLOBALS, | ||||
|             %SNMP::Info::CDP::GLOBALS, | ||||
|             %SNMP::Info::CiscoStats::GLOBALS, | ||||
|             %SNMP::Info::CiscoImage::GLOBALS, | ||||
|            ); | ||||
|  | ||||
| %FUNCS = ( | ||||
| @@ -63,6 +66,7 @@ use vars qw/$VERSION $DEBUG %GLOBALS %MIBS %FUNCS %MUNGE $INIT/ ; | ||||
|             %SNMP::Info::CiscoVTP::FUNCS, | ||||
|             %SNMP::Info::CDP::FUNCS, | ||||
|             %SNMP::Info::CiscoStats::FUNCS, | ||||
|             %SNMP::Info::CiscoImage::FUNCS, | ||||
|          ); | ||||
|  | ||||
| %MUNGE = ( | ||||
| @@ -70,6 +74,7 @@ use vars qw/$VERSION $DEBUG %GLOBALS %MIBS %FUNCS %MUNGE $INIT/ ; | ||||
|             %SNMP::Info::CiscoVTP::MUNGE, | ||||
|             %SNMP::Info::CDP::MUNGE, | ||||
|             %SNMP::Info::CiscoStats::MUNGE, | ||||
|             %SNMP::Info::CiscoImage::MUNGE, | ||||
|          ); | ||||
|  | ||||
| 1; | ||||
| @@ -116,6 +121,8 @@ Subclass for Generic Cisco Routers running IOS | ||||
|  | ||||
| =item SNMP::Info::CiscoStats | ||||
|  | ||||
| =item SNMP::Info::CiscoImage | ||||
|  | ||||
| =back | ||||
|  | ||||
| =head2 Required MIBs | ||||
| @@ -132,6 +139,8 @@ See SNMP::Info::CiscoStats for its own MIB requirements. | ||||
|  | ||||
| See SNMP::Info::CDP for its own MIB requirements. | ||||
|  | ||||
| See SNMP::Info::CiscoImage for its own MIB requirements. | ||||
|  | ||||
| =back | ||||
|  | ||||
| =head1 GLOBALS | ||||
| @@ -162,6 +171,10 @@ See documentation in SNMP::Info::CDP for details. | ||||
|  | ||||
| See documentation in SNMP::Info::CiscoStats for details. | ||||
|  | ||||
| =head2 Globals imported from SNMP::Info::CiscoImage | ||||
|  | ||||
| See documentation in SNMP::Info::CiscoImage for details. | ||||
|  | ||||
| =head1 TABLE ENTRIES | ||||
|  | ||||
| These are methods that return tables of information in the form of a reference | ||||
| @@ -183,4 +196,8 @@ See documentation in SNMP::Info::CDP for details. | ||||
|  | ||||
| See documentation in SNMP::Info::CiscoStats for details. | ||||
|  | ||||
| =head2 Table Methods imported from SNMP::Info::CiscoImage | ||||
|  | ||||
| See documentation in SNMP::Info::CiscoImage for details. | ||||
|  | ||||
| =cut | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Max Baker
					Max Baker