Lorenzo Zafra 457f2e9744 newdevice: Support - ICT DC Distribution Panel (#6379)
* 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
2017-04-12 14:37:22 -05:00

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', '', ''), '" ');