Files
librenms-librenms/includes/polling/os/arista_eos.inc.php
TheGreatDoc 946e90b68d Added Arista SN (#11737)
* Added Arista SN

* test data

* Fixed json

* You accidentally removed the serial

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-06-08 08:26:22 -05:00

6 lines
261 B
PHP

<?php
$version = preg_replace('/.+ version (.+) running on .+ (\S+)$/', '\\1||\\2', $device['sysDescr']);
list($version,$hardware) = explode('||', $version);
$serial = snmp_get($device, ".1.3.6.1.2.1.47.1.1.1.1.11.1", "-OQv");