newdevice: Updated JunOS os polling to detect version correctly (#6904)

This commit is contained in:
Neil Lathwood
2017-06-30 03:56:27 +01:00
committed by Tony Murray
parent 9a2b2ad07d
commit 72da2c7b39

View File

@ -1,6 +1,6 @@
<?php
$jun_ver = snmp_get($device, '.1.3.6.1.2.1.25.6.3.1.2.2', '-Oqv', 'HOST-RESOURCES-MIB');
$version = snmp_get($device, 'jnxVirtualChassisMemberSWVersion.0', '-Oqv', 'JUNIPER-VIRTUALCHASSIS-MIB');
if (strpos($poll_device['sysDescr'], 'olive')) {
$hardware = 'Olive';
@ -11,6 +11,4 @@ if (strpos($poll_device['sysDescr'], 'olive')) {
$serial = snmp_get($device, '.1.3.6.1.4.1.2636.3.1.3.0', '-OQv', '+JUNIPER-MIB', 'junos');
}
list($version) = explode(']', $jun_ver);
list(,$version) = explode('[', $version);
$features = '';