2010-02-13 21:45:39 +00:00
|
|
|
<?php
|
|
|
|
|
2018-01-07 05:00:47 +00:00
|
|
|
if (strpos($device['sysDescr'], 'olive')) {
|
2015-07-10 13:36:21 +02:00
|
|
|
$hardware = 'Olive';
|
|
|
|
$serial = '';
|
2016-08-28 12:32:58 -05:00
|
|
|
} else {
|
2016-09-28 08:19:28 -05:00
|
|
|
$junose_hardware = snmp_get($device, 'sysObjectID.0', '-Ovqs', '+Juniper-Products-MIB', 'junose');
|
|
|
|
$junose_version = snmp_get($device, 'juniSystemSwVersion.0', '-Ovqs', '+Juniper-System-MIB', 'junose');
|
2015-07-10 13:36:21 +02:00
|
|
|
$junose_serial = '';
|
2010-02-13 21:45:39 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
$hardware = 'Juniper '.rewrite_junose_hardware($junose_hardware);
|
2010-02-13 21:45:39 +00:00
|
|
|
}
|
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
list($version) = explode(' ', $junose_version);
|
|
|
|
list(,$version) = explode('(', $version);
|
|
|
|
list($features) = explode(']', $junose_version);
|
|
|
|
list(,$features) = explode('[', $features);
|