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
Bug
introduced
by
Loading history...
|
|||
14 |