mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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
This commit is contained in:
committed by
Neil Lathwood
co-authored by
Neil Lathwood
parent
395f6133c2
commit
1570ea95c0
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user