mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
newdevice: Add serial, model and version support for HPE MSL (#5667)
This commit is contained in:
@@ -23,4 +23,8 @@
|
||||
* @author Neil Lathwood <neil@lathwood.co.uk>
|
||||
*/
|
||||
|
||||
$hardware = snmp_get($device, 'hpHttpMgDeviceProductCaption.0', '-OQUs');
|
||||
$hardware_array = snmp_get_multi($device, 'hpHttpMgDeviceProductName.1 hpHttpMgDeviceSerialNumber.1 hpHttpMgDeviceVersion.1', '-OQUs', 'SEMI-MIB');
|
||||
d_echo($hardware_array);
|
||||
$hardware = trim($hardware_array[0]['hpHttpMgDeviceProductName'], '"');
|
||||
$serial = trim($hardware_array[0]['hpHttpMgDeviceSerialNumber'], '"');
|
||||
$version = trim($hardware_array[0]['hpHttpMgDeviceVersion'], '"');
|
||||
|
Reference in New Issue
Block a user