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