mirror of
https://github.com/librenms/librenms.git
synced 2024-09-30 14:56:40 +00:00
Merge pull request #765 from SaaldjorMike/ciscosb-6
Changed polling of OS to more appropriate MIB usage for Cisco SB devices
This commit is contained in:
commit
00cb26fd26
@ -9,8 +9,8 @@
|
|||||||
* option) any later version. Please see LICENSE.txt at the top level of
|
* option) any later version. Please see LICENSE.txt at the top level of
|
||||||
* the source code distribution for details.
|
* the source code distribution for details.
|
||||||
*/
|
*/
|
||||||
$version = trim(snmp_get($device, "SNMPv2-SMI::enterprises.9.6.1.101.2.4.0", "-Ovq") , '" ');
|
$version = snmp_get($device, "CISCOSB-Physicaldescription-MIB::rlPhdUnitGenParamSoftwareVersion.1", "-Ovq");
|
||||||
$hardware = trim(snmp_get($device, "SNMPv2-SMI::enterprises.9.6.1.101.53.14.1.11.1", "-Ovq") , '" ');
|
$hardware = str_replace(' ', '', snmp_get($device, "CISCOSB-Physicaldescription-MIB::rlPhdUnitGenParamModelName.1", "-Ovq"));
|
||||||
$serial = trim(snmp_get($device, "SNMPv2-SMI::enterprises.9.6.1.101.53.14.1.5.1", "-Ovq") , '" ');
|
$serial = snmp_get($device, "CISCOSB-Physicaldescription-MIB::rlPhdUnitGenParamSerialNum.1", "-Ovq");
|
||||||
$features = trim(snmp_get($device, "SNMPv2-SMI::enterprises.9.6.1.101.53.14.1.7.1", "-Ovq") , '" ');
|
$features = snmp_get($device, "CISCOSB-Physicaldescription-MIB::rlPhdUnitGenParamServiceTag.1", "-Ovq");
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user