mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
committed by
Neil Lathwood
parent
b5a8cb0f5b
commit
f76fc5a897
@@ -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
|
||||
|
@@ -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'];
|
||||
|
@@ -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()
|
||||
|
2
tests/snmpsim/dasan-nos2.snmprec
Normal file
2
tests/snmpsim/dasan-nos2.snmprec
Normal 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
|
Reference in New Issue
Block a user