From bf7619bfee56e782466bdf592f49251e66ab5f7b Mon Sep 17 00:00:00 2001 From: ospfbgp Date: Sun, 22 Apr 2018 09:03:53 -0500 Subject: [PATCH] Update boss.inc.php (#8594) Boss hardware is a very long string by default for sysDescr. I want to convert these long strings to "ERS-" and "VSP-". root@cox-home-dashboard:~# snmpwalk -v2c -c public 192.168.1.6 .1.3.6.1.2.1.1.1 iso.3.6.1.2.1.1.1.0 = STRING: "Ethernet Routing Switch 4850GTS-PWR+ HW:14 FW:5.8.0.3 SW:v5.11.1.013 BN:13 (c) Avaya Networks" root@cox-home-dashboard:~# snmpwalk -v2c -c public 192.168.1.9 .1.3.6.1.2.1.1.1 iso.3.6.1.2.1.1.1.0 = STRING: "Ethernet Routing Switch 3510GT-PWR+ HW:17 FW:5.3.0.8 SW:v5.3.6.015 BN:15 (c) Extreme Networks" --- includes/polling/os/boss.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/polling/os/boss.inc.php b/includes/polling/os/boss.inc.php index 61760123e0..9c9fb20b77 100644 --- a/includes/polling/os/boss.inc.php +++ b/includes/polling/os/boss.inc.php @@ -21,6 +21,10 @@ $details = explode(' ', $sysDescr); $details = str_replace('ERS-', 'Ethernet Routing Switch ', $details); $hardware = explode(' (', $details[0]); + +// Make boss devices hardware string compact +$hardware[0] = str_replace('Ethernet Routing Switch ', 'ERS-', $hardware[0]); +$hardware[0] = str_replace('Virtual Services Platform ', 'VSP-', $hardware[0]); $hardware = $hardware[0]; // Is this a 5500 series or 5600 series stack?