- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Find MAC address
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2020 05:05 AM
We use DHCP filters for defining MAC address pools. However, when I do a global search for a given MAC in the UI or via the API, I cannot find a HW address in a given DHCP filter. I can search for a given DHCP filter and enumerate all of the MAC addresses in it, but that is not what I need.
How can I find a specific MAC address in a DHCP filter via the API? TIA for any suggestions.
Re: Find MAC address
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2020 07:39 PM
Take a look at "macfilteraddress". The MAC addresses within a filter are stored in a the macfilteraddress object.
For example:
GET 'https://192.168.1.2/wapi/v2.10/macfilteraddress?mac=00:01:5a:73:74:75&_return_fields%2b=filter'
returns
[ { "_ref": "macfilteraddress/ZG5zLmNsdXN0ZXJfbWFjX2ZpbHRlcnNldF9pdGVtJFdpRmktRmlsdGVyQDAwOjAxOjVhOjczOjc0Ojc1:00%3A01%3A5a%3A73%3A74%3A75/WiFi-Filter", "expiration_time": 1590546592, "filter": "WiFi-Filter", "is_registered_user": false, "mac": "00:01:5a:73:74:75", "never_expires": true } ]
Re: Find MAC address
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2020 10:29 AM
How can I find all MAC addresses via macaddressfilter search? Can find them all for a given pool with:
macfilteraddress?filter='Generic MAC address pool'
Do I have to iterate through all of the DHCP filters or is there a way to query all MAC addrs associated w/filters?
TIA for your assistance.
Re: Find MAC address
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2020 01:50 PM
You can search without a filter to return all MAC Addresses used in MAC Addres Filters:
GET 'https://192.168.1.2/wapi/v2.10/macfilteraddress'