I have ISE distributed PANd and PSNs to two data centers. There is a problem when I try to open the Authorization Profiles. Misconfiguration causes more than 600 Authorization profiles to exist in PAN. This misconfiguration caused a heavy load on PAN and the authorization profiles section took more than an hour to open and sometimes caused active PAN rebooting itself.
My approach to solving the problem is :
1- download all the authorization profiles
2- find the useless policies based on the heat-headcount
3- Delete the useless authorization policies
4- Merge policies if possible.
To do so, I activate the External RESTful Services (ERS) APIs and create an account to access them. I used the attached Python codes, but I still failed to get the policies. Running the Get_all code, I got the "the connection is closed!!!" and after 2-3 times, the PAN restarted.
Would you please help me to solve the issues with your useful comments?