mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
newdevice: Updated JunOS os polling to detect version correctly (#6904)
This commit is contained in:
committed by
Tony Murray
parent
9a2b2ad07d
commit
72da2c7b39
@ -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 = '';
|
||||
|
Reference in New Issue
Block a user