Attached is the perl script I wrote to fetch the XML data from an ISE and save it in a directory for the virtual ISE available at
external ip addresses 18.104.22.168 / 222
internal ip addresses 172.21.187.71 / 72
It fetches the data saving it in the specified directory, sets up a .htaccess file to rewrite the directory names -> file.xml. Another .htaccess file is created to setup basic athentication and prompt for the default userid/passwd challenge like an ISE (administrator/administrator).
P.S. Sorry for the .txt file, the forum would not let me upload it with a .pl extension