mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Add support Ray3 * Create ray3.json * Fixed copyrights, comments and move MIB file. Co-authored-by: Tony Murray <murraytony@gmail.com>
8 lines
302 B
PHP
8 lines
302 B
PHP
<?php
|
|
$ray_tmp = snmp_get_multi_oid($device, 'productName.0 swVer.0 serialNumber.0 unitType.0', '-OQs', 'RAY3-MIB');
|
|
$hardware = $ray_tmp['productName.0'];
|
|
$version = $ray_tmp['swVer.0'];
|
|
$serial = $ray_tmp['serialNumber.0'];
|
|
$features = $ray_tmp['unitType.0'];
|
|
unset($ray_tmp);
|