better versions for APC AOS

git-svn-id: http://www.observium.org/svn/observer/trunk@1514 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-07-29 13:30:59 +00:00
parent cd6bac59d4
commit 7de52b2f91
+10
View File
@@ -50,6 +50,11 @@ if ($hardware == " ")
######################
$AOSrev = trim(snmp_get($device, "1.3.6.1.4.1.318.1.4.2.4.1.4.1", "-OQv", "", ""),'"');
$APPrev = trim(snmp_get($device, "1.3.6.1.4.1.318.1.4.2.4.1.4.2", "-OQv", "", ""),'"');
if ($AOSrev == '')
{
# PDU
$version = trim(snmp_get($device, "1.3.6.1.4.1.318.1.1.12.1.3.0", "-OQv", "", ""),'"');
@@ -64,5 +69,10 @@ if ($version == "")
# Masterswitch/AP9606
$version = trim(snmp_get($device, "1.3.6.1.4.1.318.1.1.4.1.2.0", "-OQv", "", ""),'"');
}
}
else
{
$version = "AOS $AOSrev / App $APPrev";
}
?>