A quick script to check active subscriptions on AAP 2.4 or 2.5+
UNSUPPORTED script by Thomas Cameron (thomas@redhat.com). No guarantees! This is an off-the-cuff script meant to run once to gather inventory data. If it breaks, you get to keep all the pieces.
Instructions: Run a basic Ansible ping job against ALL of your
managed nodes. Edit this code, changing AAP_URL, job ID for the
ping, login, password, and AAP_VERSION. Then run this python3
code and open ping_report.csv with your favorite spreadsheet.