Issues (2963)

includes/polling/os/jwos.inc.php (1 issue)

1
<?php
2
3
// JUNIPER-WX-COMMON-MIB::jnxWxSysSwVersion.0 = STRING: 5.6.2.0
4
// JUNIPER-WX-COMMON-MIB::jnxWxSysHwVersion.0 = STRING: 1.0
5
// JUNIPER-WX-COMMON-MIB::jnxWxSysSerialNumber.0 = STRING: 0060000604
6
// JUNIPER-WX-COMMON-MIB::jnxWxChassisType.0 = INTEGER: jnxWx60(10)
7
$version = snmp_get($device, 'jnxWxSysSwVersion.0', '-Ovq', 'JUNIPER-WX-GLOBAL-REG');
8
9
$serial = snmp_get($device, 'jnxWxSysSerialNumber.0', '-Ovq', 'JUNIPER-WX-GLOBAL-REG');
10
11
$hardware = snmp_get($device, 'jnxWxChassisType.0', '-Ovq', 'JUNIPER-WX-GLOBAL-REG');
12
$hardware = strtoupper(str_replace('jnx', '', $hardware));
13
$hardware .= ' ' . snmp_get($device, 'jnxWxSysHwVersion.0', '-Ovq', 'JUNIPER-WX-GLOBAL-REG');
0 ignored issues
show
Are you sure snmp_get($device, 'jnxWx...JUNIPER-WX-GLOBAL-REG') of type false|string can be used in concatenation? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

13
$hardware .= ' ' . /** @scrutinizer ignore-type */ snmp_get($device, 'jnxWxSysHwVersion.0', '-Ovq', 'JUNIPER-WX-GLOBAL-REG');
Loading history...
14