newdevice: Updated OS Polling for Opengear ACM7008 (#6349)

* Add OS Polling for Opengear ACM7008

* Fixed OSDiscoveryTest.php whitespaces

* Removed 'v' from OS version polling
This commit is contained in:
Lorenzo Zafra
2017-04-05 15:48:05 -06:00
committed by Neil Lathwood
parent c51fd769c3
commit 699e99e795
3 changed files with 13 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
<?php
// SNMPv2-SMI::enterprises.25049.17.1.1 = STRING: "3.16.6 058e5600 ()" - ogFirmwareVersion
// SNMPv2-SMI::enterprises.25049.17.1.2 = STRING: "7006851296650" - ogSerialNumber
$ogFirmwareVersion = snmp_get($device, '1.3.6.1.4.1.25049.17.1.1', '-OQv');
$ogFirmwareVersion = explode(' ', $ogFirmwareVersion);
$version = trim($ogFirmwareVersion[0], '" ');
$serial = trim(snmp_get($device, '1.3.6.1.4.1.25049.17.1.2', '-OQv'), '" ');

View File

@@ -1274,6 +1274,7 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase
public function testOpengear()
{
$this->checkOS('opengear');
$this->checkOS('opengear', 'opengear1');
}
public function testOpenindiana()

View File

@@ -0,0 +1,2 @@
1.3.6.1.2.1.1.1.0|4|Linux test01-acm7008-2-lmct 3.10.0-uc0 #1 SMP Tue Oct 4 14:21:12 EST 2016 armv7l
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.25049.1.90