Merge pull request #3998 from Rosiak/issue-3995

Fix Dell PowerConnect Discovery
This commit is contained in:
Tony Murray
2016-08-08 15:02:48 -05:00
committed by GitHub
2 changed files with 3 additions and 15 deletions

View File

@ -1,10 +1,6 @@
<?php
if (!$os) {
if (strstr($sysDescr, 'Neyland 24T')) {
$os = 'radlan';
} //end if
if (strstr($sysDescr, 'AT-8000')) {
$os = 'radlan';
} //end if

View File

@ -1,16 +1,8 @@
<?php
if ($poll_device['sysDescr'] == 'Neyland 24T') {
// $hardware = snmp_get($device, "productIdentificationVendor.0", "-Ovq", "Dell-Vendor-MIB");
$hardware = 'Dell '.snmp_get($device, 'productIdentificationDisplayName.0', '-Ovq', 'Dell-Vendor-MIB');
$version = snmp_get($device, 'productIdentificationVersion.0', '-Ovq', 'Dell-Vendor-MIB');
$icon = 'dell';
}
else {
$version = snmp_get($device, 'rndBrgVersion.0', '-Ovq', 'RADLAN-MIB');
$hardware = str_replace('ATI', 'Allied Telesis', $poll_device['sysDescr']);
$icon = 'allied';
}
$version = snmp_get($device, 'rndBrgVersion.0', '-Ovq', 'RADLAN-MIB');
$hardware = str_replace('ATI', 'Allied Telesis', $poll_device['sysDescr']);
$icon = 'allied';
$features = snmp_get($device, 'rndBaseBootVersion.00', '-Ovq', 'RADLAN-MIB');