mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added HPE iLO Version Polling (#9146)
* Add HPE iLO Version Polling * Added json test data * Fix style
This commit is contained in:
committed by
Neil Lathwood
parent
6ac9980c20
commit
b9898273c7
@@ -1,8 +1,7 @@
|
||||
<?php
|
||||
|
||||
$oids = 'cpqSiProductName.0 cpqSiSysSerialNum.0';
|
||||
|
||||
$data = snmp_get_multi($device, $oids, '-OQUs', 'CPQSINFO-MIB');
|
||||
|
||||
$data = snmp_get_multi($device, 'cpqSiProductName.0 cpqSiSysSerialNum.0 cpqHoFwVerVersion.0', '-OQUs', 'CPQSINFO-MIB:CPQHOST-MIB');
|
||||
$hardware = trim($data[0]['cpqSiProductName'], '"');
|
||||
$serial = trim($data[0]['cpqSiSysSerialNum'], '"');
|
||||
$version = stristr($data[0]['cpqHoFwVerVersion'], ' ', true);
|
||||
unset($data);
|
||||
|
Reference in New Issue
Block a user