I've been in the progress of exporting service data to CSV files to keep records of how our services are currently configured in the event of something super-disastrous. One item that I cannot seem to find (and have had ESRI support assist with) is a place to go to export the current token status of services through the REST API. Beyond that, it would be wonderful to have a place to view any tokens already applied to a service, view their expiration date as well as add/view/delete tokens no longer needed. The script I'm using in order to export this data came initially from this page: https://enterprise.arcgis.com/en/server/10.4/administer/linux/example-write-properties-of-all-servic....
However, my new script is extensively customized to get even more information about our services.