OnServer
Let me introduce you to OnServer (https://github.com/CityOfNewOrleans/OnServer), a Python script with accompanying tools developed by J.B. Raasch at the City of New Orleans, Louisiana. OnServer's tagline is Track down the data sources and map documents that feed ArcGIS Server Map Services. OnServer is designed for three primary use cases--information, automation, and restoration. Let's examine how to use OnServer for some administrative tasks.
First, you'll need to download OnServer from the GitHub repository at https://github.com/CityOfNewOrleans/OnServer. Look for the Clone or Download button to get the latest version. While you are there, look at the readme for full usage instructions. OnServer requires no third-party Python libraries ...