Skip to content

Commit

Permalink
Zyxel serials and correct model, not type, populated.
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-unwin committed Aug 7, 2024
1 parent 042fef2 commit 545c56d
Showing 1 changed file with 63 additions and 1 deletion.
64 changes: 63 additions & 1 deletion app/Helpers/snmp_890_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,68 @@
$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Zyxel Communications Corp.';
$details->type = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.890.1.2.11.1.1.1.0");
$details->model = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.890.1.2.11.1.1.1.0");

if (empty($details->serial)) {
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.890.1.15.3.82.2.10.0");
}
if (empty($details->serial)) {
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.890.1.5.8.55.1.10.0");
}
if (empty($details->serial)) {
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.890.1.5.8.18.1.10.0");
}
if (empty($details->serial)) {
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.890.1.5.8.19.1.10.0");
}
if (empty($details->serial)) {
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.890.1.5.8.16.1.10.0");
}
if (empty($details->serial)) {
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.890.1.15.3.1.12.0");
}
if (empty($details->serial)) {
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.890.1.5.8.59.1.10.0");
}
if (empty($details->serial)) {
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.890.1.5.8.60.1.10.0");
}
if (empty($details->serial)) {
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.890.1.5.8.56.1.10.0");
}
if (empty($details->serial)) {
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.890.1.5.8.21.1.10.0");
}
if (empty($details->serial)) {
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.890.1.5.8.27.1.10.0");
}
if (empty($details->serial)) {
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.890.1.5.8.73.1.10.0");
}
if (empty($details->serial)) {
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.890.1.5.8.53.1.10.0");
}
if (empty($details->serial)) {
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.890.1.5.8.23.1.10.0");
}
if (empty($details->serial)) {
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.890.1.5.8.72.1.10.0");
}
if (empty($details->serial)) {
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.890.1.5.8.12.1.10.0");
}
if (empty($details->serial)) {
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.890.1.5.8.20.1.10.0");
}
if (empty($details->serial)) {
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.890.1.5.8.68.1.10.0");
}
if (empty($details->serial)) {
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.890.1.5.12.47.1.10.0");
}
if (empty($details->serial)) {
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.890.1.5.8.46.1.10.0");
}

return($details);
};

0 comments on commit 545c56d

Please sign in to comment.