mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Add Silver Peak VXOA Device Rename MIB Files Update to use snmp_get_multi * Add test data for Silverpeak
11 lines
313 B
PHP
11 lines
313 B
PHP
<?php
|
|
|
|
use LibreNMS\RRD\RrdDefinition;
|
|
|
|
$oids = array('spsProductModel.0', 'spsSystemSerial.0', 'spsSystemVersion.0');
|
|
$vxoa = snmp_get_multi($device, $oids, '-OQUs', 'SILVERPEAK-MGMT-MIB');
|
|
|
|
$hardware = $vxoa[0]['spsProductModel'];
|
|
$serial = $vxoa[0]['spsSystemSerial'];
|
|
$version = $vxoa[0]['spsSystemVersion'];
|