From 5595fea4279900811482dce22ca33250b9ec502b Mon Sep 17 00:00:00 2001 From: Max Baker <> Date: Wed, 26 Jan 2005 19:22:02 +0000 Subject: [PATCH] documentation catch up --- Info/Layer3/C3550.pm | 37 ++++++++++++++++++++++++++++++++++++- Info/Layer3/C6500.pm | 32 ++++++++++++++++++++++++-------- Info/Layer3/Cisco.pm | 4 ++++ 3 files changed, 64 insertions(+), 9 deletions(-) diff --git a/Info/Layer3/C3550.pm b/Info/Layer3/C3550.pm index 5dee4f84..b4062f66 100644 --- a/Info/Layer3/C3550.pm +++ b/Info/Layer3/C3550.pm @@ -106,7 +106,7 @@ sub model { $model =~ s/^catalyst//; # turn 355048 into 3550-48 - if ($model =~ /^(35\d\d)(\d\d[T]?)$/) { + if ($model =~ /^(35\d\d)(\d\d(T|G)?)$/) { $model = "$1-$2"; } return $model; @@ -181,6 +181,10 @@ a more specific class using the method above. =item SNMP::Info::CiscoStack +=item SNMP::Info::CDP + +=item SNMP::Info::CiscoStats + =back =head2 Required MIBs @@ -195,6 +199,10 @@ See SNMP::Info::CiscoVTP for its own MIB requirements. See SNMP::Info::CiscoStack for its own MIB requirements. +See SNMP::Info::CiscoStats for its own MIB requirements. + +See SNMP::Info::CDP for its own MIB requirements. + =back =head1 GLOBALS @@ -207,6 +215,17 @@ These are methods that return scalar value from SNMP Returns 'cisco' +=item $c3550->model() + +Will take the translated model number and try to format it better. + + 355048 -> 3550-48 + 355012G -> 3550-12G + +=item $c3550->ports() + +Trys to cull the number of ports from the model number. + =back =head2 Globals imported from SNMP::Info::Layer3 @@ -221,6 +240,14 @@ See documentation in SNMP::Info::CiscoVTP for details. See documentation in SNMP::Info::CiscoStack for details. +=head2 Globals imported from SNMP::Info::CDP + +See documentation in SNMP::Info::CDP for details. + +=head2 Globals imported from SNMP::Info::CiscoStats + +See documentation in SNMP::Info::CiscoStats for details. + =head1 TABLE ENTRIES These are methods that return tables of information in the form of a reference @@ -238,4 +265,12 @@ See documentation in SNMP::Info::CiscoVTP for details. See documentation in SNMP::Info::CiscoStack for details. +=head2 Table Methods imported from SNMP::Info::CDP + +See documentation in SNMP::Info::CDP for details. + +=head2 Table Methods imported from SNMP::Info::CiscoStats + +See documentation in SNMP::Info::CiscoStats for details. + =cut diff --git a/Info/Layer3/C6500.pm b/Info/Layer3/C6500.pm index 2e512303..65f0cf07 100644 --- a/Info/Layer3/C6500.pm +++ b/Info/Layer3/C6500.pm @@ -92,13 +92,6 @@ $INIT = 0; *SNMP::Info::Layer3::C6500::i_name = \&SNMP::Info::Layer3::i_name; *SNMP::Info::Layer3::C6500::i_type = \&SNMP::Info::CiscoStack::i_type; -sub model { - my $c6500 = shift; - my $model1 = $c6500->model1(); - return $model1 if defined $model1; - return $c6500->SUPER::model(); -} - sub vendor { return 'cisco'; } @@ -107,7 +100,6 @@ sub cisco_comm_indexing { 1; } - 1; __END__ @@ -158,6 +150,10 @@ a more specific class using the method above. =item SNMP::Info::CiscoStack +=item SNMP::Info::CiscoStats + +=item SNMP::Info::CDP + =back =head2 Required MIBs @@ -172,6 +168,10 @@ See SNMP::Info::CiscoVTP for its own MIB requirements. See SNMP::Info::CiscoStack for its own MIB requirements. +See SNMP::Info::CiscoStats for its own MIB requirements. + +See SNMP::Info::CDP for its own MIB requirements. + =back =head1 GLOBALS @@ -198,6 +198,14 @@ See documentation in SNMP::Info::CiscoVTP for details. See documentation in SNMP::Info::CiscoStack for details. +=head2 Globals imported from SNMP::Info::CDP + +See documentation in SNMP::Info::CDP for details. + +=head2 Globals imported from SNMP::Info::CiscoStats + +See documentation in SNMP::Info::CiscoStats for details. + =head1 TABLE ENTRIES These are methods that return tables of information in the form of a reference @@ -215,5 +223,13 @@ See documentation in SNMP::Info::CiscoVTP for details. See documentation in SNMP::Info::CiscoStack for details. +=head2 Table Methods imported from SNMP::Info::CDP + +See documentation in SNMP::Info::CDP for details. + +=head2 Table Methods imported from SNMP::Info::CiscoStats + +See documentation in SNMP::Info::CiscoStats for details. + =cut diff --git a/Info/Layer3/Cisco.pm b/Info/Layer3/Cisco.pm index fe4fe153..fb5fc386 100644 --- a/Info/Layer3/Cisco.pm +++ b/Info/Layer3/Cisco.pm @@ -134,6 +134,10 @@ See SNMP::Info::Layer3 for its own MIB requirements. See SNMP::Info::CiscoVTP for its own MIB requirements. +See SNMP::Info::CiscoStats for its own MIB requirements. + +See SNMP::Info::CDP for its own MIB requirements. + =back =head1 GLOBALS