mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
9ac05f48b8
* Comes from PR11322. * Code changes to solve github-apply warnings. Removed aos tests. * Added new aos tests.
8 lines
493 B
PHP
8 lines
493 B
PHP
<?php
|
|
if (strpos($device['sysObjectID'], '1.3.6.1.4.1.6486.800.1.1.2.2.4')) {
|
|
$hardware = snmp_get($device, '.1.3.6.1.4.1.89.53.4.1.6.1', '-Osqv', 'RADLAN-Physicaldescription-MIB'); //RADLAN-Physicaldescription-MIB::rlPhdStackProductID
|
|
$version = snmp_get($device, '.1.3.6.1.4.1.89.53.14.1.2.1', '-Osqv', 'RADLAN-Physicaldescription-MIB'); //RADLAN-Physicaldescription-MIB::rlPhdUnitGenParamSoftwareVersion
|
|
} else {
|
|
list(,$hardware,$version) = explode(' ', $device['sysDescr']);
|
|
}
|