Various scripts I share on my blog posts https://www.ifconfig.it
Read this blog post for details https://www.ifconfig.it/hugo/post/unpatchable
TL:DR;
This script reads via SNMP how many days passed since last status change to identify candidate ports for disconnection/unpatching.
Read this blog post for details https://www.ifconfig.it/hugo/post/2016-06-11-asaoffice365/
Why? Permit Office 365 public url/addresses on Cisco ASA firewall.
How? Download XML file from Microsoft and use it as source to create objects on ASA CLI.
Usage: download xml file from Microsoft webiste
wget https://support.content.office.net/en-us/static/O365IPAddresses.xml
and run the script:
python o2652asa.py
Copy&paste the output on ASA CLI, create an object group, allow http and https from inside network to internet. Office 365 should work.
Remember to check if the XML from Microsoft is updated from time to time (or even better, automate it).
UPDATE Check this for the same feature for AWS servers: https://github.com/andr01dt/aws2asa
Read this blog post for details https://www.ifconfig.it/hugo/post/2017-08-07-python-hp-to-cisco-switchport-migration/
I take no responsibility for any damage you may do running the scripts I provide here. Use it at your own risk, alway test before running in production.