poe power usage & mac address for ciscosb (#357)
This commit is contained in:
1
Changes
1
Changes
@@ -6,6 +6,7 @@ Version 3.69 (2019-xx-xx)
|
|||||||
* #352 duplex support for ciscosb
|
* #352 duplex support for ciscosb
|
||||||
* #353 report all vendor names in lowercase
|
* #353 report all vendor names in lowercase
|
||||||
* #353 sprinkle "use warnings" and "use strict" around
|
* #353 sprinkle "use warnings" and "use strict" around
|
||||||
|
* poe power usage & mac address for ciscosb
|
||||||
|
|
||||||
[BUG FIXES]
|
[BUG FIXES]
|
||||||
|
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ $VERSION = '3.68';
|
|||||||
%SNMP::Info::CiscoConfig::GLOBALS,
|
%SNMP::Info::CiscoConfig::GLOBALS,
|
||||||
%SNMP::Info::CDP::GLOBALS,
|
%SNMP::Info::CDP::GLOBALS,
|
||||||
'descr' => 'sysDescr',
|
'descr' => 'sysDescr',
|
||||||
|
'mac' => 'rndBasePhysicalAddress',
|
||||||
);
|
);
|
||||||
|
|
||||||
%FUNCS = (
|
%FUNCS = (
|
||||||
@@ -66,6 +67,7 @@ $VERSION = '3.68';
|
|||||||
%SNMP::Info::CiscoStats::FUNCS,
|
%SNMP::Info::CiscoStats::FUNCS,
|
||||||
%SNMP::Info::CiscoConfig::FUNCS,
|
%SNMP::Info::CiscoConfig::FUNCS,
|
||||||
%SNMP::Info::CDP::FUNCS,
|
%SNMP::Info::CDP::FUNCS,
|
||||||
|
'peth_port_power' => 'rlPethPsePortOutputPower',
|
||||||
);
|
);
|
||||||
|
|
||||||
%MIBS = (
|
%MIBS = (
|
||||||
@@ -74,6 +76,8 @@ $VERSION = '3.68';
|
|||||||
%SNMP::Info::CiscoStats::MIBS,
|
%SNMP::Info::CiscoStats::MIBS,
|
||||||
%SNMP::Info::CiscoConfig::MIBS,
|
%SNMP::Info::CiscoConfig::MIBS,
|
||||||
%SNMP::Info::CDP::MIBS,
|
%SNMP::Info::CDP::MIBS,
|
||||||
|
'CISCOSB-POE-MIB' => 'rlPethPsePortOutputPower',
|
||||||
|
'CISCOSB-DEVICEPARAMS-MIB' => 'rndBasePhysicalAddress',
|
||||||
);
|
);
|
||||||
|
|
||||||
%MUNGE = (
|
%MUNGE = (
|
||||||
@@ -214,6 +218,10 @@ managed switches. [i.e. those matching enterprises(1).cisco(9).otherEnterprises(
|
|||||||
|
|
||||||
=over
|
=over
|
||||||
|
|
||||||
|
=item F<CISCOSB-DEVICEPARAMS-MIB>
|
||||||
|
|
||||||
|
=item F<CISCOSB-POE-MIB>
|
||||||
|
|
||||||
=item Inherited Classes
|
=item Inherited Classes
|
||||||
|
|
||||||
MIBs required by the inherited classes listed above.
|
MIBs required by the inherited classes listed above.
|
||||||
@@ -226,6 +234,10 @@ These are methods that return scalar value from SNMP.
|
|||||||
|
|
||||||
=over
|
=over
|
||||||
|
|
||||||
|
=item $ciscosb->mac()
|
||||||
|
|
||||||
|
Returns mac from (C<rndBasePhysicalAddress>)
|
||||||
|
|
||||||
=item $ciscosb->os_ver()
|
=item $ciscosb->os_ver()
|
||||||
|
|
||||||
Returns software version (C<entPhysicalSoftwareRev>)
|
Returns software version (C<entPhysicalSoftwareRev>)
|
||||||
@@ -267,6 +279,11 @@ See documentation in L<SNMP::Info::EtherLike/"GLOBALS"> for details.
|
|||||||
|
|
||||||
=over
|
=over
|
||||||
|
|
||||||
|
=item $ciscosb->peth_port_power()
|
||||||
|
|
||||||
|
Power supplied by PoE ports, in milliwatts.
|
||||||
|
(C<rlPethPsePortOutputPower>)
|
||||||
|
|
||||||
=item $ciscosb->i_duplex()
|
=item $ciscosb->i_duplex()
|
||||||
|
|
||||||
Return duplex based upon the result of EtherLike->el_duplex().
|
Return duplex based upon the result of EtherLike->el_duplex().
|
||||||
|
|||||||
Reference in New Issue
Block a user