mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Added model, processor, fan and power supply for Alcatel Omnistack Switches * Removed Index from description of Fan and power supply * Merged PR #10655 * Added Temperature Sensor for AOS7+ Alcatel Enterprise Switches * Added AOS7 mempools * Added Tests * Update aos.yaml * Update alerts levels in state sensors * Add test data
13 lines
971 B
PHP
13 lines
971 B
PHP
<?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.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
|
|
} 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']);
|
|
}
|