I’m working on a wifi discovery component for Fortinet devices. When I try to get the list of access points with the following code, I get the serial number as part of the array index instead of the oid.
$wtp_id = snmpwalk_cache_oid($device, 'fgWcWtpSessionWtpId', array(), 'FORTINET-FORTIGATE-MIB'); [1.FWF60D-WIFI0] => Array ( [fgWcWtpSessionWtpId] => FWF60D-WIFI0 ) 220.127.116.11.4.1.12318.104.22.168.22.214.171.124.126.96.36.199.188.8.131.52.184.108.40.206.48.1
A simple walk using an outside program returns what I would expect. Is there a way to change how the array gets indexed?
I should note this function appears to work fine when getting the list of clients connected and their statistics.