Issues (2963)

includes/polling/os/junose.inc.php (2 issues)

1
<?php
2
3
if (strpos($device['sysDescr'], 'olive')) {
4
    $hardware = 'Olive';
5
    $serial = '';
6
} else {
7
    $junose_hardware = snmp_get($device, 'sysObjectID.0', '-Ovqs', '+Juniper-Products-MIB', 'junose');
8
    $junose_version = snmp_get($device, 'juniSystemSwVersion.0', '-Ovqs', '+Juniper-System-MIB', 'junose');
9
    $junose_serial = '';
10
11
    $hardware = 'Juniper ' . rewrite_junose_hardware($junose_hardware);
12
}
13
14
[$version] = explode(' ', $junose_version);
15
[,$version] = explode('(', $version);
0 ignored issues
show
Comprehensibility Best Practice introduced by
This list assign is not used and could be removed.
Loading history...
16
[$features] = explode(']', $junose_version);
17
[,$features] = explode('[', $features);
0 ignored issues
show
Comprehensibility Best Practice introduced by
This list assign is not used and could be removed.
Loading history...
18