HW platform discovery problems - Cisco 4900M/4948

LibreNMS seems to have problems properly identifying the hardware platform for Cisco 4900M and 4948 switches. It discovers them as “MIDPLANE” (for 4900M) and “Switch System” for 4948.
Observium seems to have solved this problem with a more complex cisco.ini.php file in /includes/polling/os/cisco.inc.php.
Any chance to have a fix for LibreNMS as well?

thanks

I’m having the same issue. “Switch System” for 4948. Is there a fix for this.

Thank you.
-bash-4.2$ ./validate.php

Component Version
LibreNMS 1.69-29-gf4ea49e
DB Schema 2020_11_02_164331_add_powerstate_enum_to_vminfo (190)
PHP 7.3.23
Python 3.6.8
MySQL 5.5.68-MariaDB
RRDTool 1.7.2
SNMP NET-SNMP 5.7.2
OpenSSL

====================================

[OK] Composer Version: 2.0.7
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
-bash-4.2$

Hello @shbakalli and @T_warn,
I made PR#12685 to fix 4948,
feel free to test via:

./scripts/github-apply 12685