new device: Added detection for new dasan device, and fixed the poll for serial n… (#5713)

* Added detection for new dasan device, and fixed the poll for serial number

* Actually add new files to commit...
This commit is contained in:
David Bell
2017-02-01 20:07:03 +00:00
committed by Neil Lathwood
parent b5a8cb0f5b
commit f76fc5a897
4 changed files with 6 additions and 2 deletions

View File

@@ -10,4 +10,5 @@ over:
- { graph: device_mempool, text: 'Memory Usage' }
discovery:
- sysObjectId:
- .1.3.6.1.4.1.6296.1.2.
- .1.3.6.1.4.1.6296.1.2
- .1.3.6.1.4.1.6296.1.21

View File

@@ -25,7 +25,7 @@
list($hardware, $version) = explode(' ', $poll_device['sysDescr'], 2);
$tmp = snmp_get_multi_oid($device, 'dsSerialNumber.0 dsFirmwareVersion', '-OQUs', 'DASAN-SWITCH-MIB:DASAN-PRODUCTS-MIB');
$tmp = snmp_get_multi_oid($device, 'dsSerialNumber.0 dsFirmwareVersion.0', '-OQUs', 'DASAN-SWITCH-MIB:DASAN-PRODUCTS-MIB');
$serial = $tmp['dsSerialNumber.0'];
$version = $tmp['dsFirmwareVersion.0'];

View File

@@ -410,6 +410,7 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase
{
$this->checkOS('dasan-nos');
$this->checkOS('dasan-nos', 'dasan-nos1');
$this->checkOS('dasan-nos', 'dasan-nos2');
}
public function testDatacom()

View File

@@ -0,0 +1,2 @@
1.3.6.1.2.1.1.1.0|4|SURPASS hiD6615 S325 NOS 6.02/00:d0:cb:83:ae:69
1.3.6.1.2.1.1.2.0|6|.1.3.6.1.4.1.6296.1.21.1.34