08-23-2013 02:10 AM - edited 03-10-2019 08:48 PM
Hi all,
does somebody have an idea how to remove stale all sessions from ISE (all nodes)?
I have tried to follow the document , but when logging to primary admin node (HA setup,its has all 3 functions: ADM (pri), MNT (pri), PSN) commends recommended do not work:
curl -X DELETE https://<mntnode>/ise/mnt/Session/Delete/MACAddress/<macaddress>
curl -X DELETE https://<mntnode>/ise/mnt/Session/Delete/SessionID/<sid#>
curl -X DELETE https://<mntnode>/ise/mnt/Session/Delete/All
isetest/admin# curl -X DELETE https://<IP>/ise/mnt/Session/Delete/All
^
% invalid command detected at '^' marker.
isetest/admin# curl ?
% invalid command
isetest/admin# curl
^
% invalid command detected at '^' marker.
isetest/admin#
Thanks for advise.
08-25-2013 12:08 AM
Hi,
The curl commands is to be used from a different server and not run locally.
Thanks,
Tarik Admani
*Please rate helpful posts*
09-12-2013 04:13 AM
The document states that you should "Log in to the target Monitoring node from the command line" but doesn't explain how I do that.
Can someone explain that to me?
08-26-2013 09:07 PM
Curl commands always works form a different server. Try the same with different server.
10-06-2014 06:20 AM
I also have this problem now, when you guys say a different server, do you mean a linux box that has the curl command? Because running this from another ISE server does not work at all.
10-06-2014 06:49 AM
Yes, set up a linux-server or something equal with curl installed, then you can use the curl commands. Also, you can type in the url in a web browser (eg. https://yourmntnode/ise/mnt/Session/Delete/MACAddress/<macaddress>) and issue the commands that way without the need of an extra server.
09-14-2015 04:52 AM
hi Jimmy,
as you mentioned i tried in Web Browser, ActiveList and ActiveCount working fine but when i try to Delete session or all sessions its not working. its giving me error "HTTP Status 404 - Resource not found"
Note: ISE version 1.4
could you please help me.
10-13-2015 08:29 AM
I've also tried to run the command in a web browser and get the following error:
10-13-2015 09:47 AM
Hello,
It seems like the account you used while making the API-call is lacking the correct priviliges. Please check the account's priviliges and make sure you are using an account that is allowed to make API-calls.
10-13-2015 09:48 AM
Hi Shaik,
Have your problem been solved? It seems like the correct URI for making the Delete-call in version 1.4 is:
https://<mntnode>/admin/API/mnt/Session/Delete/MACAddress/<madaddress>
It has changed a bit from version 1.2 and hopefully that's your problem because it seems like you're making a call for a function that doesn't exist.
10-13-2015 11:03 AM
Thank you for replying. I've gotten further but now get this message using the above link:
XML Parsing Error: no element found
Location: https://<mntIPAddress>/admin/API/mnt/Session/Delete/MACAddress/00:60:B3:FB:8C:5D
Line Number 1, Column 1:
Thoughts?
10-13-2015 02:06 PM
I finally got this working if anyone is interested. From my MacBook terminal I ran the following command:
curl -u admin1 -k -X DELETE https://<mntnode>/admin/API/mnt/Session/Delete/MACAddress/<macaddress>
It prompted me for the password of the user "admin1" and deleted the MAC. You can also clear a specific session or delete all MAC addresses.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide