mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* New Device Support for ICT DC Distribution Panels * Fixed indexes, removed tests * Supply name instead of oid to snmp_get call * Fixed index conflict for current sensors
8 lines
344 B
PHP
8 lines
344 B
PHP
<?php
|
|
|
|
//SNMPv2-SMI::enterprises.39145.10.1.0 = STRING: "ICT180S-12BRCP" -- deviceModel
|
|
//SNMPv2-SMI::enterprises.39145.10.4.0 = STRING: "2.08" -- software version
|
|
|
|
$hardware = trim(snmp_get($device, '1.3.6.1.4.1.39145.10.1.0', '-OQv', '', ''), '" ');
|
|
$version = 'v' . trim(snmp_get($device, '1.3.6.1.4.1.39145.10.4.0', '-OQv', '', ''), '" ');
|