mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* devices: Improved Legacy Allied Telesis hardware support #8071 This patch covers: Improved SNMPrec test coverage for Allied telesis devices allied.yaml - Increased device exception OID list. - This list of devices are running RADLAN OS, and should not be triggered by allied.yaml - Minor bug fixes allied.inc.php - Added updated support for Alliedware devices - Version - Features - Hardware - Serial - Added support for Allied Telesis Websmart switches - Version - Hardware - Added support for Alliedware Plus version 2 OS devices - Hardware - Version - Serial - Simplified polling to use snmp_get_multi_oid - Minor bug fixes radlan.yaml - Updated device support for 8000S and 8000GS. - Specified device object IDs - Added an exclusion also for OIDs in allied.yaml - Changed icon and group to alliedtelesis radlan.inc.php - Updated support for devices identifying as radlan OS. awplus.yaml - Added comment to remove the sysObjectID_except list. - Minor bug fixes * added json test data to be used for unit test * re-saved allied websmart test data
14 lines
553 B
PHP
14 lines
553 B
PHP
<?php
|
|
|
|
// sysDescr.0 = STRING: "ATI AT-8000S"
|
|
// sysDescr.0 = STRING: 48-port 10/100/1000 Ethernet Switch
|
|
// sysDescr.0 = STRING: 24-port 10/100/1000 Ethernet Switch with PoE
|
|
|
|
$hardware = snmp_getnext($device, 'entPhysicalDescr.64', '-OsvQU', 'ENTITY-MIB');
|
|
$version = snmp_get($device, 'rndBrgVersion.0', '-OsvQU', 'RADLAN-MIB');
|
|
$serial = snmp_getnext($device, 'entPhysicalSerialNum.64', '-OsvQU', 'ENTITY-MIB');
|
|
|
|
$version = str_replace('"', '', $version);
|
|
$features = str_replace('"', '', $features);
|
|
$hardware = str_replace('"', '', $hardware);
|