mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 10:28:13 +00:00
Get and display the image patch version on Huawei VRP devices (#10099)
* Try to find the patch applied to this device * tests all
This commit is contained in:
parent
a3263b802b
commit
bfa7537d83
@ -11,6 +11,11 @@ if (!empty($matches[2])) {
|
||||
$version .= " (" . trim($matches[2]) . ")";
|
||||
}
|
||||
|
||||
$patch = snmp_getnext($device, 'HUAWEI-SYS-MAN-MIB::hwPatchVersion', '-OQv');
|
||||
if ($patch) {
|
||||
$version .= " [$patch]";
|
||||
}
|
||||
|
||||
$oidList = [
|
||||
'HUAWEI-ENTITY-EXTENT-MIB::hwEntityExtentMIB.6.5.0',
|
||||
'HUAWEI-DEVICE-EXT-MIB::hwProductName.0',
|
||||
|
@ -25,7 +25,7 @@
|
||||
"sysObjectID": ".1.3.6.1.4.1.2011.2.23.294",
|
||||
"sysDescr": "S5720-32X-EI-24S-AC\nHuawei Versatile Routing Platform Software \r\n VRP (R) software,Version 5.170 (S5720 V200R010C00SPC600) \r\n Copyright (C) 2007 Huawei Technologies Co., Ltd.",
|
||||
"sysContact": "<private>",
|
||||
"version": "5.170 (V200R010C00SPC600)",
|
||||
"version": "5.170 (V200R010C00SPC600) [4]",
|
||||
"hardware": "Huawei S5720-32X-EI-24S-AC",
|
||||
"features": null,
|
||||
"os": "vrp",
|
||||
|
@ -25,7 +25,7 @@
|
||||
"sysObjectID": ".1.3.6.1.4.1.2011.2.23.291",
|
||||
"sysDescr": "S5720-56C-PWR-EI-AC\nHuawei Versatile Routing Platform Software \r\n VRP (R) software,Version 5.170 (S5720 V200R010C00SPC600) \r\n Copyright (C) 2007 Huawei Technologies Co., Ltd.",
|
||||
"sysContact": "<private>",
|
||||
"version": "5.170 (V200R010C00SPC600)",
|
||||
"version": "5.170 (V200R010C00SPC600) [4]",
|
||||
"hardware": "Huawei S5720",
|
||||
"features": null,
|
||||
"os": "vrp",
|
||||
|
@ -25,7 +25,7 @@
|
||||
"sysObjectID": ".1.3.6.1.4.1.2011.2.23.291",
|
||||
"sysDescr": "S5720-56C-PWR-EI-AC\nHuawei Versatile Routing Platform Software \r\n VRP (R) software,Version 5.170 (S5720 V200R010C00SPC600) \r\n Copyright (C) 2007 Huawei Technologies Co., Ltd.",
|
||||
"sysContact": "<private>",
|
||||
"version": "5.170 (V200R010C00SPC600)",
|
||||
"version": "5.170 (V200R010C00SPC600) [4]",
|
||||
"hardware": "Huawei S5720-56C-PWR-EI-AC",
|
||||
"features": null,
|
||||
"os": "vrp",
|
||||
|
@ -25,7 +25,7 @@
|
||||
"sysObjectID": ".1.3.6.1.4.1.2011.2.239.1",
|
||||
"sysDescr": "Huawei Versatile Routing Platform Software\nVRP (R) software, Version 8.150 (CE12800 V200R002C50SPC800) \r\nCopyright (C) 2012-2017 Huawei Technologies Co., Ltd. \r\nHUAWEICE12804",
|
||||
"sysContact": "<private>",
|
||||
"version": "8.150 (V200R002C50SPC800)",
|
||||
"version": "8.150 (V200R002C50SPC800) [CE12804,CE12804-AC,CE12804 AC Assembly Chassis(with CMUs and Fans)]",
|
||||
"hardware": "Huawei CE12800",
|
||||
"features": null,
|
||||
"os": "vrp",
|
||||
|
@ -25,7 +25,7 @@
|
||||
"sysObjectID": ".1.3.6.1.4.1.2011.2.239.1",
|
||||
"sysDescr": "Huawei Versatile Routing Platform Software\nVRP (R) software, Version 8.150 (CE12800 V200R002C50SPC800) \r\nCopyright (C) 2012-2017 Huawei Technologies Co., Ltd. \r\nHUAWEICE12804",
|
||||
"sysContact": "<private>",
|
||||
"version": "8.150 (V200R002C50SPC800)",
|
||||
"version": "8.150 (V200R002C50SPC800) [601981 seconds]",
|
||||
"hardware": "Huawei CE12800",
|
||||
"features": null,
|
||||
"os": "vrp",
|
||||
|
@ -56679,5 +56679,43 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"os": {
|
||||
"discovery": {
|
||||
"devices": [
|
||||
{
|
||||
"sysName": "<private>",
|
||||
"sysObjectID": ".1.3.6.1.4.1.2011.2.23.291",
|
||||
"sysDescr": "S5720-56C-PWR-EI-AC\nHuawei Versatile Routing Platform Software \r\n VRP (R) software,Version 5.170 (S5720 V200R010C00SPC600) \r\n Copyright (C) 2007 Huawei Technologies Co., Ltd.",
|
||||
"sysContact": null,
|
||||
"version": null,
|
||||
"hardware": null,
|
||||
"features": null,
|
||||
"os": "vrp",
|
||||
"type": "network",
|
||||
"serial": null,
|
||||
"icon": "huawei.svg",
|
||||
"location": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": {
|
||||
"devices": [
|
||||
{
|
||||
"sysName": "<private>",
|
||||
"sysObjectID": ".1.3.6.1.4.1.2011.2.23.291",
|
||||
"sysDescr": "S5720-56C-PWR-EI-AC\nHuawei Versatile Routing Platform Software \r\n VRP (R) software,Version 5.170 (S5720 V200R010C00SPC600) \r\n Copyright (C) 2007 Huawei Technologies Co., Ltd.",
|
||||
"sysContact": "<private>",
|
||||
"version": "5.170 (V200R010C00SPC600) [1]",
|
||||
"hardware": "Huawei S5720",
|
||||
"features": null,
|
||||
"os": "vrp",
|
||||
"type": "network",
|
||||
"serial": null,
|
||||
"icon": "huawei.svg",
|
||||
"location": "<private>"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user