newdevice: Improve Aerohive Support (#6721)

fix #6670
This commit is contained in:
Søren Rosiak
2017-05-24 22:49:40 +01:00
committed by Neil Lathwood
parent 1fdb049a76
commit 3b45ea1b37
3 changed files with 6 additions and 0 deletions
+1
View File
@@ -7,3 +7,4 @@ over:
discovery:
- sysDescr:
- HiveOS
- Aerohive
+3
View File
@@ -12,3 +12,6 @@
if (preg_match('/^(.+?),/', $poll_device['sysDescr'], $hardware)) {
$hardware = $store[1];
}
$hardware = trim(snmp_get($device, '.1.3.6.1.4.1.4413.1.1.1.1.1.3.0', '-Ovq'), '"');
$version = trim(snmp_get($device, '.1.3.6.1.4.1.4413.1.1.1.1.1.13.0', '-Ovq'), '"');
$serial = trim(snmp_get($device, '.1.3.6.1.4.1.4413.1.1.1.1.1.4.0', '-Ovq'), '"');
+2
View File
@@ -0,0 +1,2 @@
1.3.6.1.2.1.1.1.0|4|Aerohive SR2348P: 48 GE POE+ ports, 4 XE SFP+ ports, Stackable, 1.0.1.22, Linux 3.6.5
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.4413