doc changes for 0.4

This commit is contained in:
Max Baker
2003-04-29 15:58:17 +00:00
parent 74c85cae9e
commit 622a35de01

View File

@@ -67,6 +67,7 @@ use vars qw/$VERSION %FUNCS %GLOBALS %MIBS %MUNGE $AUTOLOAD $INIT $DEBUG/;
%SNMP::Info::EtherLike::MUNGE %SNMP::Info::EtherLike::MUNGE
); );
sub vendor { sub vendor {
# Sorry, but it's true. # Sorry, but it's true.
return 'cisco'; return 'cisco';
@@ -111,11 +112,7 @@ __END__
=head1 NAME =head1 NAME
SNMP::Info::Layer2::Aironet - SNMP Interface to Aironet devices. SNMP::Info::Layer2::Aironet - SNMP Interface to Cisco Aironet devices running IOS.
=head1 DESCRIPTION
Provides interface to SNMP Data available on an Aironet / Cisco devices.
=head1 AUTHOR =head1 AUTHOR
@@ -123,28 +120,105 @@ Max Baker (C<max@warped.org>)
=head1 SYNOPSIS =head1 SYNOPSIS
my $aironet = new SNMP::Info::Layer2::Aironet(DestHost => 'myaironet', # Let SNMP::Info determine the correct subclass for you.
Community => 'public' ); my $aironet = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
# These arguments are passed directly on to SNMP::Session
DestHost => 'myswitch',
Community => 'public',
Version => 2
)
or die "Can't connect to DestHost.\n";
See SNMP::Info for more information. See SNMP::Info::Layer2, SNMP::Info, SNMP::Info::Entity my $class = $aironet->class();
for available methods in addition to the ones below. print "SNMP::Info determined this device to fall under subclass : $class\n";
=head1 DESCRIPTION
Provides interface to SNMP Data available on an Aironet / Cisco devices.
For speed or debugging purposes you can call the subclass directly, but not after determining
a more specific class using the method above.
my $aironet = new SNMP::Info::Layer2::Aironet(...);
=head2 Inherited Classes
=over
=item SNMP::Info::Layer2
=item SNMP::Info::Entity
=item SNMP::Info::EtherLike
=back
=head2 Required MIBs
=over
=item Inherited Classes
MIBs required by the inherited classes listed above.
=back
=head1 GLOBALS =head1 GLOBALS
These are methods that return scalar value from SNMP
=over =over
=item $aironet->discription()
Adds info from method e_descr() from SNMP::Info::Entity
=item $aironet->vendor() =item $aironet->vendor()
Returns 'cisco' :) Returns 'cisco' :)
=back =back
=head2 Globals imported from SNMP::Info::Layer2
See documentation in SNMP::Info::Layer2 for details.
=head2 Globals imported from SNMP::Info::Entity
See documentation in SNMP::Info::Entity for details.
=head2 Globals imported from SNMP::Info::EtherLike
See documentation in SNMP::Info::EtherLike for details.
=head1 TABLE ENTRIES =head1 TABLE ENTRIES
=head2 Overrides =head2 Overrides
=over =over
=item $aironet->interfaces()
Uses the i_description() field.
=item $aironet->i_duplex()
Crosses information from SNMP::Info::EtherLike to get duplex info for interfaces.
=back =back
=head2 Table Methods imported from SNMP::Info::Layer2
See documentation in SNMP::Info::Layer2 for details.
=head2 Table Methods imported from SNMP::Info::Entity
See documentation in SNMP::Info::Entity for details.
=head2 Table Methods imported from SNMP::Info::EtherLike
See documentation in SNMP::Info::EtherLike for details.
=cut =cut