mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 00:24:21 +02:00
fix serial parsing for some areca controller firmwares
git-svn-id: http://www.observium.org/svn/observer/trunk@1209 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -8,5 +8,11 @@ if (!$version) { $version = trim(snmp_get($device, "1.3.6.1.4.1.18928.1.2.1.4.0"
|
||||
|
||||
$serial = trim(snmp_get($device, "1.3.6.1.4.1.18928.1.1.1.3.0", "-OQv", "", ""),'"');
|
||||
if (!$serial) { $serial = trim(snmp_get($device, "1.3.6.1.4.1.18928.1.2.1.3.0", "-OQv", "", ""),'"'); }
|
||||
|
||||
if (strstr($serial,' '))
|
||||
{
|
||||
# Sometimes firmware outputs serial as hex-string
|
||||
$serial = hex2str(str_replace(' ','',str_replace(' 00','',$serial)));
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user