From 1570ea95c05509114bda8afecff28e7eedaeea60 Mon Sep 17 00:00:00 2001 From: ospfbgp Date: Tue, 23 May 2017 02:40:17 -0500 Subject: [PATCH] append Avaya VSP HW revision to serial number (#6694) * append Avaya VSP HW revision to serial number The old way added the HW revision to the sysDescr. When managing a bunch of switches with different versions this made it look like you had a lot of different kinds of switches. These are all the switches. Just add it to the serial number so you can have the hw version for reference if needed. Just makes more sense not to appended to sysDescr. * Update avaya-vsp.inc.php * Update avaya-vsp.inc.php forgot to add the $hardware variable so Platform would populate * Update avaya-vsp.inc.php --- includes/polling/os/avaya-vsp.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/polling/os/avaya-vsp.inc.php b/includes/polling/os/avaya-vsp.inc.php index b53226c880..b6911c59ef 100644 --- a/includes/polling/os/avaya-vsp.inc.php +++ b/includes/polling/os/avaya-vsp.inc.php @@ -25,6 +25,5 @@ $serial = str_replace('"', '', $serial); $sysDescr = $poll_device['sysDescr']; $sysDescr = explode(' ', $sysDescr); $sysDescr = $sysDescr[0]; -$hwrevision = snmp_get($device, 'rcChasHardwareRevision.0', '-Osqv', 'RAPID-CITY'); -$hardware = $sysDescr . " HW: $hwrevision"; +$hardware = $sysDescr; $hardware = str_replace('"', '', $hardware);