As far as I know, there is no (official) API that allows setting profiler data. The
XML API Guide even spells out that it is not supported.
I found
this post where someone claims that it works nevertheless; syntax looks pretty much the same as what you have, and behavior 200 OK but no change also is reflected in that post.
You could try to open a TAC case, but it may be that they tell you that setting profiling data through API is unsupported.
------------------------------
Herman Robers
------------------------
If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support. Check
https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.
In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
------------------------------
Original Message:
Sent: Nov 29, 2021 04:08 PM
From: Tobias Heaton
Subject: Clearpass API Modify Device Categorization
Follow-up: testing with a simple cURL command also returns a 200 (ok) but no update to the endpoint - classification remains static.
# curl --user user:pass -X POST https://<CPPM-FQDN>/async_netd/deviceprofiler/endpoints -H "Content-Type: application/json" \ -d '{"mac": "001122334455", "device": {"category": "SmartDevice", "family": "Android", "name": "Google"}}' <html> <head> <title>200 OK</title> </head> <body> <h1>200 OK</h1> <br /><br /> </body>
Original Message:
Sent: Nov 29, 2021 03:32 PM
From: Tobias Heaton
Subject: Clearpass API Modify Device Categorization
We leverage the Clearpass API to modify device categorization and recently is seems to have stopped working. We post JSON to https://<CPPM-FQDN>/async_netd/deviceprofiler/endpoints and the JSON content is as follows:
{"mac": "001122334455", "device": {"category": "SmartDevice", "family": "Android", "name": "Android"}}
Printing debug output of the UA POST returns a 200, so I don't get any errors on the client side but the endpoint categorization does not change. We're running Clearpass 6.10.2 - has anyone else seen this or can replicate the problem?