Actual OID for Fortinet APs

snmp
discovery
Tags: #<Tag:0x00007f932ead6290> #<Tag:0x00007f932ead5f98>

#1

Hey,

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
    )

1.3.6.1.4.1.12356.101.14.4.5.1.1.1.12.70.87.70.54.48.68.45.87.73.70.73.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.

Thanks.


#2

It looks like the “b” option needed to be added to the output options.

Thanks.