04-22-2018 07:34 PM
Hi, currently I configure the purge policy to execute everyday at 0300. I would like to know how to configure the " condition" in order to meet the requirement to purge everyday.
My intention is to let the self register Guest and sponsored guest everyday morning login to captive portal and register the endpoint under "Guest_Endpoint" group. After the first time login, the user no longer required to login again for the whole day until the endpoint is purged. Regardless when the endpoint is registered.
example A : Guest A login the captive portal and registered the Endpoint at morning 0800. So during the day, he no longer required to login. His endpoint will be purged at second day 0300 hour. When he come back second day, he need to login again.
Example B. Guest B login the captive portal and registered endpoint at night 2300. So his endpoint will be purged at second day 0300 hour. When he back second day, he need to login again.
I have tried the following "Condition"
1. "Guest_Endpoint" AND "ENDPOINTPURGE ElapsedDays LESSTHAN 2"
2. "Guest_Endpoint" AND "ENDPOINTPURGE ElapsedDays GREATERTHAN 0"
With either one, I noticed that the endpoint will be purged every 2 days. Is there any better condition I can use?
Solved! Go to Solution.
04-23-2018 01:44 PM
You conditions are wrong. The most reliable condition is "Elapsed Days less than 9999". That guarantees any MAC address in the endpoint identity group on the purge rule gets dumped at 3:00. I use that on all my installs to guarantee purging.
04-22-2018 09:13 PM
What version&patch of ISE? There were issues in some versions.
I have not seen any issues with ISE 2.3 (any patch)
In your case, what status was the Guest account in? (created == never logged in, and active == guest has logged in) - I might be wrong, but I thought the elapsed days applies to the number of days from which the account became 'active'
How do you define account lifetime? From time of creation, or from time of first login?
04-22-2018 11:02 PM
The ISE is ver 2.1 patch 3.
I have 2 policies for guest.
1. use guest flow after login.
2. if Guest Endpoint Group, then permit access.
After the first time login, thus item 1, endpoint will be registered. When second attempt of connection, item 2 will take over. So, what I want is, at 0300, all endpoint in Guest Endpoints Group will be purged, regardless when the guest login or created.
04-23-2018 01:44 PM
You conditions are wrong. The most reliable condition is "Elapsed Days less than 9999". That guarantees any MAC address in the endpoint identity group on the purge rule gets dumped at 3:00. I use that on all my installs to guarantee purging.
04-23-2018 01:56 PM
thanks and if this doesn't work, likely a bug and would try a later patch. your release is old and there are many patches after that.
Patch 6 and you're on patch 3
For example patch 4 looks like this might be the same -
After upgrading from ISE 1.3 patch 7 to ISE 2.0.1, purge rules are not working as expected. |
Release Notes for Cisco Identity Services Engine, Release 2.1 - Cisco
04-23-2018 04:26 PM
My first trial is less than 2. Before I try this condition, I already make sure the endpoint MAC address been cleared from the endpoint group. But during the week, I notice that the endpoint required login every 2 days. Thus I move to greater than 0. and it gave the same results. I guess i am hitting the bugs.
04-23-2018 04:30 PM
Yes you’re running several patches back
Sent from my iPhone
04-25-2018 04:37 PM
You can also try setting purge on ID group with PurgeDate set < some date in future if end goal is to simply delete any members in GuestEndpoints, for example. And yes, Paul did provide a good explanation of the nuances of purge logic.
04-23-2018 02:05 PM
Let me explain the 9999 logic in case others read this. There are several way to try and tackle purging:
04-23-2018 03:41 PM
Thanks Paul. You should write that up as a best practice.
07-31-2024 11:02 AM
What are your thoughts if I want to Purge on hours and not days
07-31-2024 01:29 PM
Not possible. The Endpoint Purge schedule runs at a specific time, and there is only one time entry allowed.
Either put in a feature request via the "Make a Wish" option in the ISE GUI, or write your own code that uses the REST API to purge endpoints. Perhaps the API call will let you put some filters in place to give you the granularity you need. If not, then it would be a pain to first fetch all the endpoint data into your script, and sift out the ones you want to delete ... every hour or so, ouch! I think the endpoint purge feature in ISE could use a few more tweaks.
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