mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
19 lines
921 B
PHP
19 lines
921 B
PHP
![]() |
<?php
|
||
|
|
||
|
echo("Doing Juniper JWOS ");
|
||
|
|
||
|
#JUNIPER-WX-COMMON-MIB::jnxWxSysSwVersion.0 = STRING: 5.6.2.0
|
||
|
#JUNIPER-WX-COMMON-MIB::jnxWxSysHwVersion.0 = STRING: 1.0
|
||
|
#JUNIPER-WX-COMMON-MIB::jnxWxSysSerialNumber.0 = STRING: 0060000604
|
||
|
#JUNIPER-WX-COMMON-MIB::jnxWxChassisType.0 = INTEGER: jnxWx60(10)
|
||
|
|
||
|
$version = snmp_get($device, "jnxWxSysSwVersion.0", "-Ovq", "JUNIPER-WX-GLOBAL-REG", $config['mib_dir'].":".$config['mib_dir'] . "jwos/");
|
||
|
|
||
|
$serial = snmp_get($device, "jnxWxSysSerialNumber.0", "-Ovq", "JUNIPER-WX-GLOBAL-REG", $config['mib_dir'].":".$config['mib_dir'] . "jwos/");
|
||
|
|
||
|
$hardware = snmp_get($device, "jnxWxChassisType.0", "-Ovq", "JUNIPER-WX-GLOBAL-REG", $config['mib_dir'].":".$config['mib_dir'] . "jwos/");
|
||
|
$hardware = strtoupper(str_replace('jnx','',$hardware));
|
||
|
$hardware .= ' ' . snmp_get($device, "jnxWxSysHwVersion.0", "-Ovq", "JUNIPER-WX-GLOBAL-REG", $config['mib_dir'].":".$config['mib_dir'] . "jwos/");
|
||
|
|
||
|
?>
|