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
![]() |
|||
16 | [$features] = explode(']', $junose_version); |
||
17 | [,$features] = explode('[', $features); |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
|
|||
18 |