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:
@@ -7,3 +7,5 @@ over:
|
|||||||
discovery:
|
discovery:
|
||||||
- sysObjectId:
|
- sysObjectId:
|
||||||
- .1.3.6.1.4.1.11.10.2.1.3.25
|
- .1.3.6.1.4.1.11.10.2.1.3.25
|
||||||
|
mib_dir:
|
||||||
|
- hp
|
||||||
|
@@ -23,4 +23,8 @@
|
|||||||
* @author Neil Lathwood <neil@lathwood.co.uk>
|
* @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