Skip to content

Commit

Permalink
Add a couple comments in snmp helper.
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-unwin committed Nov 11, 2024
1 parent 9480e86 commit 8bb5d0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Helpers/snmp_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -1066,6 +1066,7 @@ function snmp_audit(string $ip = '', object $credentials = null, int $discovery_
// https://mibs.observium.org/mib/AIRESPACE-WIRELESS-MIB/
$item_start = microtime(true);
snmp_set_valueretrieval(SNMP_VALUE_LIBRARY);
// bsnAPDot3MacAddress "The MAC address of an AP."
$apMac = my_snmp_real_walk($ip, $credentials, '1.3.6.1.4.1.14179.2.2.1.1.1');
snmp_set_valueretrieval(SNMP_VALUE_PLAIN);
$log->command_time_to_execute = (microtime(true) - $item_start);
Expand All @@ -1085,6 +1086,7 @@ function snmp_audit(string $ip = '', object $credentials = null, int $discovery_

$item_start = microtime(true);
snmp_set_valueretrieval(SNMP_VALUE_LIBRARY);
// bsnAPEthernetMacAddress "The Ethernet MAC address of the AP."
$apEmac = my_snmp_real_walk($ip, $credentials, '1.3.6.1.4.1.14179.2.2.1.1.33');
snmp_set_valueretrieval(SNMP_VALUE_PLAIN);
$log->command_time_to_execute = (microtime(true) - $item_start);
Expand Down

0 comments on commit 8bb5d0e

Please sign in to comment.