Developer

last person joined: 5 days ago 

Expand all | Collapse all

Manage AP whitelist and AP database using API

This thread has been viewed 41 times
  • 1.  Manage AP whitelist and AP database using API

    Posted May 16, 2021 02:28 PM
    Hello,

    Is it possible to manage the AP whitelist and AP database using the API (ie delete APs from them)?

    Thank you,

    Guy

    ------------------------------
    Guy Goodrick
    ------------------------------


  • 2.  RE: Manage AP whitelist and AP database using API

    Posted May 17, 2021 01:51 AM
    Guy,
    Yes, there are a few there.  Look in the 'AP Provisioning' container for the APIs. A few I can see

    /object/wdb_cpsec_del_mac
    /object/wdb_cpsec_add_mac
    /object/wdb_cpsec_modify_mac


    ------------------------------
    Michael Clarke (Aruba)
    ------------------------------



  • 3.  RE: Manage AP whitelist and AP database using API

    Posted May 17, 2021 05:50 AM
    Hi Michael,

    Thanks - that's useful. But I can't see similar commands to remove APs from the whitelist, or am I missing something?

    Guy

    ------------------------------
    Guy Goodrick
    ------------------------------



  • 4.  RE: Manage AP whitelist and AP database using API

    Posted May 18, 2021 03:35 AM
    There is an API to remove from whitelist.

    /object/wdb_cpsec_del_mac



    ------------------------------
    Michael Clarke (Aruba)
    ------------------------------



  • 5.  RE: Manage AP whitelist and AP database using API

    Posted May 18, 2021 04:31 AM
    Ah ok, thank you - in that case what I'm looking for is the equivalent of:

    clear gap-db wired-mac ...

    There is:

    /object/clr_gapdb_ap_lms

    I'm just not sure if that does the same thing, the reference to lms sounds like it might be something different?

    ------------------------------
    Guy Goodrick
    ------------------------------



  • 6.  RE: Manage AP whitelist and AP database using API

    Posted May 25, 2021 09:32 AM
    Hello Michael,

    I'm still struggling to see how I can do this using the API, I looked at:

    /object/clr_gapdb_ap_lms

    But that runs

    clear gap-db stale-ap ap-name <ap name> lms lms-ip <lms ip>

    which seems to be to do with removing old entries from an md where the databases have become out of sync.

    I just want to run "clear gap-db wired-mac <ap-mac>" via the API, is that possible?

    Thanks,

    Guy

    ------------------------------
    Guy Goodrick
    ------------------------------



  • 7.  RE: Manage AP whitelist and AP database using API

    Posted May 17, 2021 05:42 PM
    Use the AP whitelists to grant valid APs secure access to the network or to revoke ... (host) [mynode] (config) #whitelist-db cpsec add mac-address <address>.
    Nom Nom Dog Food Delivery
    ------------------------------
    Patricia Jeter
    ------------------------------