POD coverage

This commit is contained in:
Eric Miller
2008-07-18 03:11:38 +00:00
parent 58c1d01b4a
commit 03785c4365
25 changed files with 363 additions and 26 deletions

View File

@@ -426,7 +426,7 @@ for decimal placement.
=over =over
=item munge_power() =item $cdp->munge_power()
Inserts a decimal at the proper location. Inserts a decimal at the proper location.

View File

@@ -369,7 +369,7 @@ The source MAC address carried in the most recently received EAPOL frame.
=over =over
=item munge_pae_capabilities() =item $cps->munge_pae_capabilities()
Return either C<'dot1xPaePortAuthCapable'> or C<'dot1xPaePortSuppCapable'> Return either C<'dot1xPaePortAuthCapable'> or C<'dot1xPaePortSuppCapable'>
based upon bit value. based upon bit value.

View File

@@ -395,6 +395,12 @@ the port administrative speed (C<portAdminSpeed>) which if set to
autonegotiate then the duplex will also autonegotiate, otherwise it uses the autonegotiate then the duplex will also autonegotiate, otherwise it uses the
reported port duplex (C<portDuplex>). reported port duplex (C<portDuplex>).
=item $stack->i_speed_admin()
Returns reference to hash of iid to administrative speed setting.
C<portAdminSpeed>
=item $stack->set_i_speed_admin(speed, ifIndex) =item $stack->set_i_speed_admin(speed, ifIndex)
Sets port speed, must be supplied with speed and port C<ifIndex> Sets port speed, must be supplied with speed and port C<ifIndex>
@@ -603,4 +609,15 @@ C<portAdminTxFlowControl>
=back =back
=head1 Data Munging Callback Subroutines
=over
=item $stack->munge_port_status()
Munges binary byte describing each port into ascii, and returns an ascii
list separated by spaces.
=back
=cut =cut

View File

@@ -246,4 +246,14 @@ Returns reference to hash. Indexes Stats Table to Duplex Status of port.
=back =back
=head1 Data Munging Callback Subroutines
=over
=item $el->munge_el_duplex()
Removes 'Duplex' from the end of a string.
=back
=cut =cut

View File

@@ -292,10 +292,16 @@ to a hash.
=item $l1->interfaces() =item $l1->interfaces()
Returns reference to the map between IID and physical Port.
=item $l1->i_up() =item $l1->i_up()
Returns reference to map of IIDs to link status.
=item $l1->i_up_admin() =item $l1->i_up_admin()
Returns reference to map of IIDs to administrative link status.
=back =back
=head2 Repeater MIB =head2 Repeater MIB

View File

@@ -163,7 +163,9 @@ sub i_name {
return \%i_name; return \%i_name;
} }
1; 1;
__END__ __END__
=head1 NAME =head1 NAME
@@ -249,6 +251,19 @@ See L<SNMP::Info::Layer1/"GLOBALS"> for details.
=over =over
=item $asante->interfaces()
Returns reference to the map between IID and physical Port.
=item $asante->i_description()
Description of the interface.
=item $asante->i_mac()
MAC address of the interface. Note this is just the MAC of the port, not
anything connected to it.
=item $asante->i_name() =item $asante->i_name()
Returns reference to map of IIDs to human-set port name. Returns reference to map of IIDs to human-set port name.
@@ -258,6 +273,10 @@ Returns reference to map of IIDs to human-set port name.
Returns reference to map of IIDs to link status. Changes Returns reference to map of IIDs to link status. Changes
the values of asante_up() to 'up' and 'down'. the values of asante_up() to 'up' and 'down'.
=item $asante->i_speed()
Speed of the link, human format.
=back =back
=head2 Asante MIB =head2 Asante MIB

View File

@@ -295,6 +295,10 @@ These are methods that return scalar value from SNMP
Returns 'cisco' :) Returns 'cisco' :)
=item $c2900->cisco_comm_indexing()
Returns 1. Use vlan indexing.
=back =back
=head2 Globals imported from SNMP::Info::CiscoVTP =head2 Globals imported from SNMP::Info::CiscoVTP

View File

@@ -176,6 +176,29 @@ See documentation in L<SNMP::Info::Layer2/"GLOBALS"> for details.
These are methods that return tables of information in the form of These are methods that return tables of information in the form of
a reference to a hash. a reference to a hash.
=head2 Overrides
=over
=item $netgear->fw_mac()
Returns reference to hash of forwarding table MAC Addresses.
Some devices don't implement the C<BRIDGE-MIB> forwarding table, so we use
the C<Q-BRIDGE-MIB> forwarding table. Fall back to the C<BRIDGE-MIB> if
C<Q-BRIDGE-MIB> doesn't return anything.
=item $netgear->fw_port()
Returns reference to hash of forwarding table entries port interface
identifier (iid)
Some devices don't implement the C<BRIDGE-MIB> forwarding table, so we use
the C<Q-BRIDGE-MIB> forwarding table. Fall back to the C<BRIDGE-MIB> if
C<Q-BRIDGE-MIB> doesn't return anything.
=back
=head2 Table Methods imported from SNMP::Info::Layer2 =head2 Table Methods imported from SNMP::Info::Layer2
See documentation in L<SNMP::Info::Layer2/"TABLE METHODS"> for details. See documentation in L<SNMP::Info::Layer2/"TABLE METHODS"> for details.

View File

@@ -486,6 +486,10 @@ IDs. These are the VLANs which are members of the egress list for the port.
print "Port: $port VLAN: $vlan\n"; print "Port: $port VLAN: $vlan\n";
} }
=item $alteon->v_index()
Returns VLAN IDs
=item $alteon->v_name() =item $alteon->v_name()
Human-entered name for vlans. Human-entered name for vlans.

View File

@@ -1501,8 +1501,11 @@ class only returns container and module types.
=item $bayrs->e_descr() =item $bayrs->e_descr()
Returns reference to hash. Key: IID, Value: Human friendly name. This is only Returns reference to hash. Key: IID, Value: Human friendly name.
available for processors, link modules, and hardware modules.
=item $bayrs->e_name()
Returns reference to hash. Key: IID, Value: Human friendly name.
=item $bayrs->e_hwver() =item $bayrs->e_hwver()
@@ -1557,4 +1560,18 @@ See documentation in L<SNMP::Info::Bridge/"TABLE METHODS"> for details.
See documentation in L<SNMP::Info::Layer3/"TABLE METHODS"> for details. See documentation in L<SNMP::Info::Layer3/"TABLE METHODS"> for details.
=head1 Data Munging Callback Subroutines
=over
=item $extreme->munge_hw_rev()
Converts octets to a decimal major.minor string.
=item $extreme->munge_wf_serial()
Coverts octets to a decimal string.
=back
=cut =cut

View File

@@ -328,6 +328,10 @@ Will take the translated model number and try to format it better.
Tries to cull the number of ports from the model number. Tries to cull the number of ports from the model number.
=item $c3550->cisco_comm_indexing()
Returns 1. Use vlan indexing.
=back =back
=head2 Globals imported from SNMP::Info::Layer3 =head2 Globals imported from SNMP::Info::Layer3

View File

@@ -212,6 +212,20 @@ See L<SNMP::Info::Layer3/"Required MIBs"> for its own MIB requirements.
These are methods that return scalar value from SNMP These are methods that return scalar value from SNMP
=head2 Overrides
=over
=item $c4000->cisco_comm_indexing()
Returns 1. Use vlan indexing.
=item $c4000->fan()
Returns fan status
=back
=head2 Global Methods imported from SNMP::Info::CiscoVTP =head2 Global Methods imported from SNMP::Info::CiscoVTP
See documentation in L<SNMP::Info::CiscoVTP/"GLOBALS"> for details. See documentation in L<SNMP::Info::CiscoVTP/"GLOBALS"> for details.
@@ -249,6 +263,28 @@ See documentation in L<SNMP::Info::Layer3/"GLOBALS"> for details.
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
to a hash. to a hash.
=head2 Overrides
=over
=item $c4000->i_duplex()
Parses mau_index and mau_link to return the duplex information for
interfaces.
=item $c4000->i_duplex_admin()
Parses C<mac_index>,C<mau_autostat>,C<mau_type_admin> in
order to find the admin duplex setting for all the interfaces.
Returns either (auto,full,half).
=item $c4000->i_speed_admin()
Returns administrative speed for interfaces.
=back
=head2 Table Methods imported from SNMP::Info::CiscoVTP =head2 Table Methods imported from SNMP::Info::CiscoVTP
See documentation in L<SNMP::Info::CiscoVTP/"TABLE METHODS"> for details. See documentation in L<SNMP::Info::CiscoVTP/"TABLE METHODS"> for details.

View File

@@ -294,6 +294,10 @@ These are methods that return scalar value from SNMP
Returns 'cisco' Returns 'cisco'
=item $c6500->cisco_comm_indexing()
Returns 1. Use vlan indexing.
=back =back
=head2 Global Methods imported from SNMP::Info::CiscoVTP =head2 Global Methods imported from SNMP::Info::CiscoVTP

View File

@@ -292,8 +292,12 @@ to a hash.
=item $contivity->interfaces() =item $contivity->interfaces()
Returns reference to the map between IID and physical Port. Skips loopback and Returns reference to the map between IID and physical Port. Skips loopback
tunnel interfaces. and tunnel interfaces.
=item $contivity->i_name()
Interface Name field. Skips loopback and tunnel interfaces.
=back =back

View File

@@ -391,6 +391,23 @@ sometimes not unique.
Returns reference to hash of iid to current link administrative duplex setting. Returns reference to hash of iid to current link administrative duplex setting.
=item $dell->fw_mac()
Returns reference to hash of forwarding table MAC Addresses.
Some devices don't implement the C<BRIDGE-MIB> forwarding table, so we use
the C<Q-BRIDGE-MIB> forwarding table. Fall back to the C<BRIDGE-MIB> if
C<Q-BRIDGE-MIB> doesn't return anything.
=item $dell->fw_port()
Returns reference to hash of forwarding table entries port interface
identifier (iid)
Some devices don't implement the C<BRIDGE-MIB> forwarding table, so we use
the C<Q-BRIDGE-MIB> forwarding table. Fall back to the C<BRIDGE-MIB> if
C<Q-BRIDGE-MIB> doesn't return anything.
=back =back
=head2 Table Methods imported from SNMP::Info::Layer3 =head2 Table Methods imported from SNMP::Info::Layer3

View File

@@ -390,6 +390,10 @@ Returns enterasys
Returns enterasys Returns enterasys
=item $enterasys->os_ver()
Returns os version extracted from C<sysDescr>
=item $enterasys->mac() =item $enterasys->mac()
Returns base mac Returns base mac
@@ -429,11 +433,16 @@ to a hash.
=over =over
=item $enterasys->interfaces()
Mapping between the Interface Table Index (iid) and the physical port name.
=item $enterasys->i_ignore() =item $enterasys->i_ignore()
Returns reference to hash. Creates a key for each IID that should be ignored. Returns reference to hash. Creates a key for each IID that should be ignored.
Currently looks for rs232, tunnel,loopback,lo,null from $enterasys->interfaces() Currently looks for rs232, tunnel,loopback,lo,null from
$enterasys->interfaces()
=item $enterasys->i_duplex() =item $enterasys->i_duplex()
@@ -444,6 +453,17 @@ See documentation for mau_i_duplex() in L<SNMP::Info::MAU/"TABLE METHODS">.
See documentation for mau_i_duplex_admin() in See documentation for mau_i_duplex_admin() in
L<SNMP::Info::MAU/"TABLE METHODS">. L<SNMP::Info::MAU/"TABLE METHODS">.
=item $enterasys->fw_mac()
Returns reference to hash of forwarding table MAC Addresses.
=item $enterasys->fw_port()
Returns reference to hash of forwarding table entries port interface
identifier (iid).
(C<dot1qTpFdbPort>)
=back =back
=head2 Topology information =head2 Topology information
@@ -474,9 +494,9 @@ Returns reference to hash. Key: iid Value: remote IPv4 address
If multiple entries exist with the same local port, c_if(), with the same IPv4 If multiple entries exist with the same local port, c_if(), with the same IPv4
address, c_ip(), it may be a duplicate entry. address, c_ip(), it may be a duplicate entry.
If multiple entries exist with the same local port, c_if(), with different IPv4 If multiple entries exist with the same local port, c_if(), with different
addresses, c_ip(), there is either a non-CDP/LLDP device in between two or IPv4 addresses, c_ip(), there is either a non-CDP/LLDP device in between two
more devices or multiple devices which are not directly connected. or more devices or multiple devices which are not directly connected.
Use the data from the Layer2 Topology Table below to dig deeper. Use the data from the Layer2 Topology Table below to dig deeper.

View File

@@ -481,6 +481,7 @@ sub set_add_i_vlan_tagged {
} }
1; 1;
__END__ __END__
=head1 NAME =head1 NAME
@@ -563,6 +564,10 @@ Returns extreme
Returns extreme Returns extreme
=item $extreme->os_ver()
Parses device operating system version from description()
=item $extreme->serial() =item $extreme->serial()
Returns serial number Returns serial number
@@ -581,6 +586,12 @@ Returns status of power supply 1
(C<extremePowerSupplyStatus.1>) (C<extremePowerSupplyStatus.1>)
=item $extreme->ps2_status()
Returns status of power supply 2
(C<extremePowerSupplyStatus.2>)
=item $extreme->fan() =item $extreme->fan()
Returns fan status Returns fan status
@@ -618,6 +629,29 @@ to a hash.
=over =over
=item $extreme->interfaces()
Returns a mapping between the Interface Table Index (iid) and the physical
port name.
=item $extreme->i_duplex()
Parses mau_index and mau_link to return the duplex information for
interfaces.
=item $extreme->i_duplex_admin()
Parses C<mac_index>,C<mau_autostat>,C<mau_type_admin> in
order to find the admin duplex setting for all the interfaces.
Returns either (auto,full,half).
=item $extreme->i_ignore()
Returns reference to hash. Increments value of IID if port is to be ignored.
Ignores VLAN meta interfaces and loopback
=item $extreme->fw_mac() =item $extreme->fw_mac()
(C<extremeFdbMacFdbMacAddress>) (C<extremeFdbMacFdbMacAddress>)
@@ -634,7 +668,32 @@ to a hash.
Returns a mapping between C<ifIndex> and the VLAN. Returns a mapping between C<ifIndex> and the VLAN.
=item $stack->bp_index() =item $extreme->i_vlan_membership()
Returns reference to hash of arrays: key = C<ifIndex>, value = array of VLAN
IDs. These are the VLANs which are members of the egress list for the port.
Example:
my $interfaces = $extreme->interfaces();
my $vlans = $extreme->i_vlan_membership();
foreach my $iid (sort keys %$interfaces) {
my $port = $interfaces->{$iid};
my $vlan = join(',', sort(@{$vlans->{$iid}}));
print "Port: $port VLAN: $vlan\n";
}
=item $extreme->v_index()
Returns VLAN IDs
=item $extreme->v_name()
Returns VLAN names
(C<extremeVlanIfDescr>)
=item $extreme->bp_index()
Returns reference to hash of bridge port table entries map back to interface Returns reference to hash of bridge port table entries map back to interface
identifier (iid) identifier (iid)
@@ -652,6 +711,13 @@ See documentation in L<SNMP::Info::Layer3/"TABLE METHODS"> for details.
See documentation in L<SNMP::Info::MAU/"TABLE METHODS"> for details. See documentation in L<SNMP::Info::MAU/"TABLE METHODS"> for details.
=head1 SET METHODS
These are methods that provide SNMP set functionality for overridden methods
or provide a simpler interface to complex set operations. See
L<SNMP::Info/"SETTING DATA VIA SNMP"> for general information on set
operations.
=over =over
=item $extreme->set_i_vlan ( vlan, ifIndex ) =item $extreme->set_i_vlan ( vlan, ifIndex )
@@ -697,4 +763,18 @@ with the numeric VLAN ID and port C<ifIndex>.
=back =back
=head1 Data Munging Callback Subroutines
=over
=item $extreme->munge_power_stat()
Removes 'present' and changes 'not' to 'Not' in the front of a string.
=item $extreme->munge_true_ok()
Replaces 'true' with "OK" and 'false' with "Not OK".
=back
=cut =cut

View File

@@ -561,6 +561,15 @@ Returns reference to hash of interface link duplex status.
Crosses $foundry->sw_duplex() with $foundry->sw_index() Crosses $foundry->sw_duplex() with $foundry->sw_index()
=item $foundry->stp_p_state()
"The port's current state as defined by application of the Spanning Tree
Protocol.
Skipped if device is an EdgeIron 24G due to reports of hangs.
(C<dot1dStpPortState>)
=back =back
=head2 Foundry Switch Port Information Table (C<snSwPortIfTable>) =head2 Foundry Switch Port Information Table (C<snSwPortIfTable>)

View File

@@ -176,20 +176,26 @@ These are methods that return scalar value from SNMP
=item $juniper->vendor() =item $juniper->vendor()
Returns 'juniper' Returns C<'juniper'>
=item $juniper->os() =item $juniper->os()
Returns 'junos' Returns C<'junos'>
=item $juniper->os_ver() =item $juniper->os_ver()
Returns the software version extracted from sysDescr. Returns the software version extracted from C<sysDescr>.
=item $juniper->model() =item $juniper->model()
Returns the model from sysObjectID, with jnxProductName Returns the model from C<sysObjectID>, with C<jnxProductNameremoved> from the
removed from the beginning. beginning.
=item $juniper->serial()
Returns serial number
(C<jnxBoxSerialNo.0>)
=back =back

View File

@@ -149,23 +149,29 @@ See L<SNMP::Info::Layer3/"Required MIBs"> for its own MIB requirements.
These are methods that return scalar value from SNMP These are methods that return scalar value from SNMP
=head2 Overrides
=over =over
=item $router->vendor() =item $router->vendor()
Returns 'microsoft' Returns C<'microsoft'>
=item $router->os() =item $router->os()
Returns 'windows' Returns C<'windows'>
=item $router->os_ver() =item $router->os_ver()
Returns nothing. Returns ''
=item $router->model() =item $router->model()
Returns 'Windows Router' Returns C<'Windows Router'>
=item $router->serial()
Returns ''
=back =back
@@ -178,6 +184,17 @@ See documentation in L<SNMP::Info::Layer3/"GLOBALS"> for details.
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
to a hash. to a hash.
=head2 Overrides
=over
=item $router->interfaces()
Map the Interfaces to their physical names. Adds interface number to
interface name because identical interface cards return identical C<ifDescr>.
=back
=head2 Table Methods imported from SNMP::Info::Layer3 =head2 Table Methods imported from SNMP::Info::Layer3
See documentation in L<SNMP::Info::Layer3/"TABLE METHODS"> for details. See documentation in L<SNMP::Info::Layer3/"TABLE METHODS"> for details.

View File

@@ -249,6 +249,10 @@ Returns 'nortel'
Returns 'passport' Returns 'passport'
=item $n1600->os_ver()
Returns os version extracted from C<sysDescr>.
=back =back
=head2 Overrides =head2 Overrides

View File

@@ -203,6 +203,10 @@ Returns the system uptime instead of the agent uptime.
NOTE: discontinuity timers and other Time Stamp based objects NOTE: discontinuity timers and other Time Stamp based objects
are based on agent uptime, so use orig_uptime(). are based on agent uptime, so use orig_uptime().
=item $netsnmp->serial()
Returns ''.
=back =back
=head2 Globals imported from SNMP::Info::Layer3 =head2 Globals imported from SNMP::Info::Layer3
@@ -214,6 +218,18 @@ See documentation in L<SNMP::Info::Layer3> for details.
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
to a hash. to a hash.
=head2 Overrides
=over
=item $netsnmp->i_ignore()
Returns reference to hash. Increments value of IID if port is to be ignored.
Ignores loopback
=back
=head2 Table Methods imported from SNMP::Info::Layer3 =head2 Table Methods imported from SNMP::Info::Layer3
See documentation in L<SNMP::Info::Layer3> for details. See documentation in L<SNMP::Info::Layer3> for details.

View File

@@ -104,6 +104,7 @@ sub i_ignore {
} }
1; 1;
__END__ __END__
=head1 NAME =head1 NAME
@@ -159,19 +160,23 @@ These are methods that return scalar value from SNMP
=item $sun->vendor() =item $sun->vendor()
Returns 'sun' Returns 'sun'
=item $sun->os() =item $sun->os()
Returns 'sun' Returns 'sun'
=item $sun->os_ver() =item $sun->os_ver()
Returns the software version extracted from motd. Returns the software version extracted from message of the day.
=item $sun->model() =item $sun->model()
Returns 'Solaris Router' Returns 'Solaris Router'
=item $sun->serial()
Returns serial number
=back =back
@@ -184,6 +189,18 @@ See documentation in L<SNMP::Info::Layer3/"GLOBALS"> for details.
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
to a hash. to a hash.
=head2 Overrides
=over
=item $sun->i_ignore()
Returns reference to hash. Increments value of IID if port is to be ignored.
Ignores loopback
=back
=head2 Table Methods imported from SNMP::Info::Layer3 =head2 Table Methods imported from SNMP::Info::Layer3
See documentation in L<SNMP::Info::Layer3/"TABLE METHODS"> for details. See documentation in L<SNMP::Info::Layer3/"TABLE METHODS"> for details.

View File

@@ -346,6 +346,10 @@ order to find the admin duplex setting for all the interfaces.
Returns either (auto,none,full,half). Returns either (auto,none,full,half).
=item $mau->mau_i_speed_admin()
Returns admin speed setting for all the interfaces.
=back =back
=head2 MAU INTERFACE TABLE METHODS =head2 MAU INTERFACE TABLE METHODS
@@ -429,7 +433,6 @@ capabilities we are broadcasting on that port
(C<ifMauAutoNegCapAdvertised>) (C<ifMauAutoNegCapAdvertised>)
=item $mau->mau_autorec() - Returns a 32 bit bit-string representing the =item $mau->mau_autorec() - Returns a 32 bit bit-string representing the
capabilities of the device on the other end. capabilities of the device on the other end.

View File

@@ -893,7 +893,7 @@ is not contained in any other entity.
=over =over
=item munge_ns_grp_type() =item $stack->munge_ns_grp_type()
Munges C<s5ChasGrpType> into an C<ENTITY-MIB PhysicalClass> equivalent. Munges C<s5ChasGrpType> into an C<ENTITY-MIB PhysicalClass> equivalent.