poe power usage & mac address for ciscosb (#357)

This commit is contained in:
nick n
2019-08-31 10:52:16 +02:00
committed by GitHub
parent 36029e38a7
commit 1840089789
2 changed files with 18 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ Version 3.69 (2019-xx-xx)
* #352 duplex support for ciscosb
* #353 report all vendor names in lowercase
* #353 sprinkle "use warnings" and "use strict" around
* poe power usage & mac address for ciscosb
[BUG FIXES]

View File

@@ -58,6 +58,7 @@ $VERSION = '3.68';
%SNMP::Info::CiscoConfig::GLOBALS,
%SNMP::Info::CDP::GLOBALS,
'descr' => 'sysDescr',
'mac' => 'rndBasePhysicalAddress',
);
%FUNCS = (
@@ -66,6 +67,7 @@ $VERSION = '3.68';
%SNMP::Info::CiscoStats::FUNCS,
%SNMP::Info::CiscoConfig::FUNCS,
%SNMP::Info::CDP::FUNCS,
'peth_port_power' => 'rlPethPsePortOutputPower',
);
%MIBS = (
@@ -74,6 +76,8 @@ $VERSION = '3.68';
%SNMP::Info::CiscoStats::MIBS,
%SNMP::Info::CiscoConfig::MIBS,
%SNMP::Info::CDP::MIBS,
'CISCOSB-POE-MIB' => 'rlPethPsePortOutputPower',
'CISCOSB-DEVICEPARAMS-MIB' => 'rndBasePhysicalAddress',
);
%MUNGE = (
@@ -214,6 +218,10 @@ managed switches. [i.e. those matching enterprises(1).cisco(9).otherEnterprises(
=over
=item F<CISCOSB-DEVICEPARAMS-MIB>
=item F<CISCOSB-POE-MIB>
=item Inherited Classes
MIBs required by the inherited classes listed above.
@@ -226,6 +234,10 @@ These are methods that return scalar value from SNMP.
=over
=item $ciscosb->mac()
Returns mac from (C<rndBasePhysicalAddress>)
=item $ciscosb->os_ver()
Returns software version (C<entPhysicalSoftwareRev>)
@@ -267,6 +279,11 @@ See documentation in L<SNMP::Info::EtherLike/"GLOBALS"> for details.
=over
=item $ciscosb->peth_port_power()
Power supplied by PoE ports, in milliwatts.
(C<rlPethPsePortOutputPower>)
=item $ciscosb->i_duplex()
Return duplex based upon the result of EtherLike->el_duplex().