Skip to content

Commit

Permalink
Move SNMP Manufacturers into the individual OID files.
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-unwin committed Apr 16, 2024
1 parent b7b75fd commit b603056
Show file tree
Hide file tree
Showing 54 changed files with 80 additions and 13 deletions.
1 change: 1 addition & 0 deletions app/Helpers/snmp_10002_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Ubiquiti Networks Inc.';
$details->manufacturer = my_snmp_get($ip, $credentials, "1.2.840.10036.3.1.2.1.2.5");
$details->os_name = my_snmp_get($ip, $credentials, "1.2.840.10036.3.1.2.1.4.5");
$details->serial = my_snmp_get($ip, $credentials, "1.2.840.10036.1.1.1.1.5");
Expand Down
1 change: 1 addition & 0 deletions app/Helpers/snmp_10529_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Gemtek Systems Holding Bv';
$details->type = 'unknown';
$details->model = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.10529.300.1.3.1.0");
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.10529.300.1.3.5.0");
Expand Down
1 change: 1 addition & 0 deletions app/Helpers/snmp_10892_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Doctors.net.uk';
$details->type = 'unknown';
$details->model = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.10529.300.1.3.1.0");
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.10529.300.1.3.5.0");
Expand Down
1 change: 1 addition & 0 deletions app/Helpers/snmp_114_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Synernetics, Inc.';
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.43.47.1.1.3.1.10.1");
if ($details->serial == '') {
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.43.10.27.1.1.1.13.1");
Expand Down
1 change: 1 addition & 0 deletions app/Helpers/snmp_116_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Hitachi, Ltd.';
if (strpos($oid, '1.3.6.1.4.1.116.3.11') == 0) {
$details->model = 'Hitachi San'; $details->type = 'san'; }
$details->model = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.116.5.11.1.2.1.1.0");
Expand Down
18 changes: 13 additions & 5 deletions app/Helpers/snmp_11863_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,20 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'TP-Link';
// generic types here
if (strpos($oid, '1.3.6.1.4.1.11863.1') !== false) { $details->type = 'switch'; }
if (strpos($oid, '1.3.6.1.4.1.11863.2') !== false) { $details->type = 'router'; }
if (strpos($oid, '1.3.6.1.4.1.11863.3') !== false) { $details->type = 'wap'; }
if (strpos($oid, '1.3.6.1.4.1.11863.4') !== false) { $details->type = 'adsl modem'; }

if (strpos($oid, '1.3.6.1.4.1.11863.1') !== false) {
$details->type = 'switch';
}
if (strpos($oid, '1.3.6.1.4.1.11863.2') !== false) {
$details->type = 'router';
}
if (strpos($oid, '1.3.6.1.4.1.11863.3') !== false) {
$details->type = 'wap';
}
if (strpos($oid, '1.3.6.1.4.1.11863.4') !== false) {
$details->type = 'adsl modem';
}
if (empty($details->model)) {
$details->model = my_snmp_get($ip, $credentials, "1.3.6.1.2.1.16.19.3.0");
}
Expand Down
1 change: 1 addition & 0 deletions app/Helpers/snmp_11_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Hewlett Packard';
$details->serial = my_snmp_get($ip, $credentials, ".1.3.6.1.4.1.11.2.36.1.1.2.9.0");
if (!empty($credentials->credentials->version) and $credentials->credentials->version == '1') {
# model is a hex encoded string in HP Laserjets using snmp v1
Expand Down
5 changes: 4 additions & 1 deletion app/Helpers/snmp_12124_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
if ($oid == '1.3.6.1.4.1.12124.1') { $details->type = 'storage misc'; }
$details->manufacturer = 'Isilon Ststems';
if ($oid == '1.3.6.1.4.1.12124.1') {
$details->type = 'storage misc';
}
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.12124.2.51.1.3.1");
$details->model = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.12124.2.51.1.4.1");
return($details);
Expand Down
1 change: 1 addition & 0 deletions app/Helpers/snmp_12356_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Fortinet, Inc.';
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.12356.1.2.0");
if ($details->serial == '') {
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.12356.100.1.1.1.0");
Expand Down
1 change: 1 addition & 0 deletions app/Helpers/snmp_13742_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Raritan Computer, Inc.';
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.13742.4.1.1.2.0");
if ($details->model == '') {
$details->model = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.13742.4.1.1.12.0");
Expand Down
10 changes: 9 additions & 1 deletion app/Helpers/snmp_14179_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
$test = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.9.9.23.1.2.1.1.5.29.2");
if ($test != '') {
if (stripos($test, 'Cisco IOS Software') !== false) {
$details->manufacturer = 'Cisco Systems';
$temp2 = explode(',', $test);
foreach ($temp2 as $test2) {
if (strpos($test2, 'Version') !== false) {
Expand All @@ -27,13 +28,20 @@
}
unset($test);
# Cisco specific model OID
if ($details->model == '') { $details->model = my_snmp_get($ip, $credentials, "1.3.6.1.2.1.47.1.1.1.1.13.1");
if (empty($details->model)) {
$details->model = my_snmp_get($ip, $credentials, "1.3.6.1.2.1.47.1.1.1.1.13.1");
}
if (!empty($details->model)) {
$details->manufacturer = 'Cisco Systems';
}
# Generic Cisco serial
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.2.1.47.1.1.1.1.11.1");
# Second Generic Cisco serial
if (empty($details->serial)) {
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.2.1.47.1.1.1.1.11.1.0");
}
if (!empty($details->serial)) {
$details->manufacturer = 'Cisco Systems';
}
return($details);
};
1 change: 1 addition & 0 deletions app/Helpers/snmp_1429_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Scientific-atlanta, Inc.';
if ($oid == '1.3.6.1.4.1.1429.2.2.6.2') {
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.1429.2.2.4.1.7.0");
}
Expand Down
1 change: 1 addition & 0 deletions app/Helpers/snmp_14988_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Mikrotik';
$details->type = 'router';
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.14988.1.1.7.3.0");
$temp = my_snmp_get($ip, $credentials, "1.3.6.1.2.1.1.1.0");
Expand Down
1 change: 1 addition & 0 deletions app/Helpers/snmp_17163_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Riverbed Technology, Inc.';
$details->type = 'wan accelerator';
$details->model = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.17163.1.1.1.1.0");
if (empty($details->model)) {
Expand Down
1 change: 1 addition & 0 deletions app/Helpers/snmp_1991_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Brocade Communication Systems';
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.1991.1.1.1.1.2.0");
return($details);
};
1 change: 1 addition & 0 deletions app/Helpers/snmp_2011_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Huawei Technologies';
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.2.1.47.1.1.1.1.11.1");
return($details);
};
1 change: 1 addition & 0 deletions app/Helpers/snmp_207_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Allied Telesis, Inc.';
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.207.8.4.4.5.2.1.5");
return($details);
};
1 change: 1 addition & 0 deletions app/Helpers/snmp_2275_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Vxtreme Inc.';
$details->model = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.3375.2.1.3.5.2.0");
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.3375.2.1.3.3.3.0");
$details->os_version = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.3375.2.1.4.2.0");
Expand Down
1 change: 1 addition & 0 deletions app/Helpers/snmp_2281_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Cambium';
$details->model = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.2281.10.1.2.10.1.1.2.127");
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.2281.10.1.2.10.1.1.6.127");
$details->os_version = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.2281.10.4.1.13.1.1.4.1");
Expand Down
1 change: 1 addition & 0 deletions app/Helpers/snmp_24681_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Qnap Systems, Inc';
$details->type = 'nas';
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.2.1.47.1.1.1.1.11.1");
$details->model = my_snmp_get($ip, $credentials, "1.3.6.1.2.1.47.1.1.1.1.7.1");
Expand Down
1 change: 1 addition & 0 deletions app/Helpers/snmp_25053_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Ruckus Wireless, Inc.';
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.25053.1.1.2.1.1.1.2.0");
if (empty($details->model)) {
$details->model = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.25053.1.1.2.1.1.1.1.0");
Expand Down
1 change: 1 addition & 0 deletions app/Helpers/snmp_25461_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Palo Alto Networks';
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.25461.2.1.2.1.3.0");
$details->os_group = 'Pan-OS';
$details->os_version = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.25461.2.1.2.1.1.0");
Expand Down
1 change: 1 addition & 0 deletions app/Helpers/snmp_25506_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'H3c';
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.2.1.47.1.1.1.1.11.1");
return($details);
};
1 change: 1 addition & 0 deletions app/Helpers/snmp_2620_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Check Point Software Technologies Ltd';
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.2620.1.6.16.3.0");
$details->memory_count = intval(my_snmp_get($ip, $credentials, "1.3.6.1.4.1.2620.1.6.7.4.3.0") / 1024);
$details->storage_count = intval(my_snmp_get($ip, $credentials, "1.3.6.1.4.1.2620.1.6.7.3.6.0"));
Expand Down
1 change: 1 addition & 0 deletions app/Helpers/snmp_2636_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Juniper Networks, Inc.';
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.2636.3.1.3.0");
return($details);
};
1 change: 1 addition & 0 deletions app/Helpers/snmp_2684_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Viavideo Communications, Inc.';
if ($oid == '1.3.6.1.4.1.2684.1.1') {
$details->type = 'ip phone';
$details->model = str_replace("STRING: ", "", my_snmp_get($ip, $credentials, "1.3.6.1.2.1.1.1.0"));
Expand Down
1 change: 1 addition & 0 deletions app/Helpers/snmp_26866_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Gigamon Systems Llc';
$details->model = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.26866.2.2.0");
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.26866.2.8.0");
$details->memory_count = intval(str_ireplace('mb', '', my_snmp_get($ip, $credentials, "1.3.6.1.4.1.26866.2.8.0")));
Expand Down
1 change: 1 addition & 0 deletions app/Helpers/snmp_2_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'IBM';
$details->model = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.2.3.51.2.2.21.1.1.2.0");
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.2.3.51.2.2.21.1.1.3.0");
$details->os_version = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.2.3.51.2.2.21.3.1.1.3.1");
Expand Down
2 changes: 1 addition & 1 deletion app/Helpers/snmp_30803_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->type = 'router';
$details->manufacturer = 'Vyatta';
$details->type = 'router';
$details->model = 'Vyatta Router';
$details->os_group = 'Vyatta';
$details->os_family = 'Vyatta VyOS';
Expand Down
1 change: 1 addition & 0 deletions app/Helpers/snmp_311_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Microsoft';
$details->type = 'computer';
$details->model = '';
$details->os_group = 'Windows';
Expand Down
1 change: 1 addition & 0 deletions app/Helpers/snmp_318_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'American Power Conversion Corp.';
$details->model = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.318.1.1.1.1.1.1.0");
if (empty($details->model)) {
$details->model = my_snmp_get($ip, $credentials, "1.3.6.1.2.1.33.1.1.2.0");
Expand Down
1 change: 1 addition & 0 deletions app/Helpers/snmp_3224_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Netscreen Technologies, Inc.';
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.3224.7.1.5.0");
return($details);
};
1 change: 1 addition & 0 deletions app/Helpers/snmp_332_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Digi International';
$details->model = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.332.11.6.1.1.0");
return($details);
};
1 change: 1 addition & 0 deletions app/Helpers/snmp_367_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Ricoh Co. Ltd.';
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.367.3.2.1.2.1.4.0");
$details->hostname = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.367.3.2.1.6.1.1.7.1");
return($details);
Expand Down
1 change: 1 addition & 0 deletions app/Helpers/snmp_41112_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Ubiquiti Networks Inc.';
$temp = my_snmp_walk($ip, $credentials, "1.3.6.1.2.1.25.4.2.1.5");
if (!empty($temp) and count($temp) > 0) {
foreach ($temp as $line) {
Expand Down
1 change: 1 addition & 0 deletions app/Helpers/snmp_43296_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Exablaze';
$details->model = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.43296.3.1.3");
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.43296.3.1.1");
return($details);
Expand Down
1 change: 1 addition & 0 deletions app/Helpers/snmp_43356_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Mimosa Networks, Inc';
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.43356.2.1.2.1.2.0");
$details->location_longitude = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.43356.2.1.2.2.1.0");
$details->location_latitude = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.43356.2.1.2.2.2.0");
Expand Down
1 change: 1 addition & 0 deletions app/Helpers/snmp_43_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = '3Com Ltd';
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.43.47.1.1.3.1.10.1");
if (empty($details->serial)) {
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.43.10.27.1.1.1.13.1");
Expand Down
1 change: 1 addition & 0 deletions app/Helpers/snmp_4458_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Radwin Ltd.';
$details->type = 'wap';
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.4458.1000.1.3.2.1.5.0");
if (empty($details->serial)) {
Expand Down
1 change: 1 addition & 0 deletions app/Helpers/snmp_4491_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Cable Television Laboratories, Inc.';
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.4491.2.4.1.1.1.3.0");
return($details);
};
1 change: 1 addition & 0 deletions app/Helpers/snmp_4526_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Netgear';
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.4526.10.1.1.1.4.0");
if (empty($details->serial)) {
# special case for Netgear cable modems
Expand Down
1 change: 1 addition & 0 deletions app/Helpers/snmp_45_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Synoptics';
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.45.1.6.3.1.6.0");
if (empty($details->model)) {
$details->model = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.45.1.6.3.1.2.0");
Expand Down
1 change: 1 addition & 0 deletions app/Helpers/snmp_4874_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();
$details->manufacturer = 'Juniper Networks';
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.4874.2.2.2.1.3.4.1.9.0");
return($details);
};
2 changes: 1 addition & 1 deletion app/Helpers/snmp_53313_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

$get_oid_details = function ($ip, $credentials, $oid) {
$details = new \StdClass();

$details->manufacturer = 'Cyberx-labs Inc.';
$details->serial = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.53313.1");
$details->model = 'ot sensor';
$details->os_version = my_snmp_get($ip, $credentials, "1.3.6.1.4.1.53313.2");
Expand Down
Loading

0 comments on commit b603056

Please sign in to comment.