Add OS Discovery and Poller

This commit is contained in:
Alan Gregory
2015-05-16 05:06:51 -03:00
parent 10b99700ab
commit faecea61e2
2 changed files with 18 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
<?php
if (!$os){
/**
* Supported Devides List
* OLT AN5516-06
* OLT AN5516-01
*/
if (preg_match('/^AN5516-0[16]$/',$sysDescr)) {
echo "Fiberhome $sysDescr\n";
$os = "fiberhome";
}
}
?>
+5
View File
@@ -0,0 +1,5 @@
<?php
$hardware = "Fiberhome ".snmp_get($device, "sysDescr.0", "-Oqv", "GEPON-OLT-COMMON-MIB");
$version = str_replace('"','',snmp_get($device, "sysHardVersion.0", "-Ovq", "GEPON-OLT-COMMON-MIB"))." - ".str_replace('"','',snmp_get($device, "sysSoftVersion.0", "-Ovq", "GEPON-OLT-COMMON-MIB"));
$features = "Olt ".snmp_get($device, "sysDescr.0", "-Oqv", "GEPON-OLT-COMMON-MIB");
?>