Files
librenms-librenms/includes/polling/os/aos6.inc.php
joseUPV 9ac05f48b8 AOS Advanced Support. (#11500)
* Comes from PR11322.

* Code changes to solve github-apply warnings. Removed aos tests.

* Added new aos tests.
2020-05-18 07:50:13 -05:00

10 lines
556 B
PHP
Executable File

<?php
if (strpos($device['sysDescr'], 'Enterprise')) {
list(,,$hardware,$version) = explode(' ', $device['sysDescr']);
} elseif (strpos($device['sysObjectID'], ".1.3.6.1.4.1.6486.800.1.1.2.1.10") !== false) {
preg_match('/deviceOmniSwitch(....)(.+)/', snmp_get($device, 'sysObjectID.0', '-Osqv', 'ALCATEL-IND1-DEVICES:SNMPv2-MIB'), $model); // deviceOmniSwitch6400P24
list($hardware,$version,) = explode(' ', 'OS'.$model[1].'-'.$model[2].' ' . $device['sysDescr']);
} else {
list(,$hardware,$version) = explode(' ', $device['sysDescr']);
}