This is a set of useful scripts for running locally to work out what users are up to and diagnosing problems.
They are not remotely "Production Ready" but it's better to have them in github than not.
Largely based on work from Lee and Graham
- You'll need to be logged into CloudFoundry
- You'll need global-auditor role
Will ask for a start and end time, then list all crashed events between the two times. Useful for getting an overview if there's a peak in app crashes on the metrics dashboard.
Much more detailed report into other things that were happening around the time of each crash. Hard to understand if you don't know what you're looking for from the report above.
Gets the details of an Org when provided with a GUID extracted from crashed_list above.
Go on, guess.
A report that will pull out all organisations that aren't in "trial" mode.
Orgs over three months old that are still on the trial plan
Report that works through every org and space, getting the apps and services for each.
Output will contain org admin names for every service on PaaS, so be Very careful with data at rest, and don't accidentally commit this report back to GitHub!!!!
An early version of servicelist.sh. Just lists out the people to contact, not any of the apps. Again, be careful with data at rest!
GOV.UK PaaS also has a few handy plugins installed
From https://github.com/krujos/usagereport-plugin
Lists out what % of memory quota each space is using, in org order.
cf usage-report
Note - this currently crashes because some of our users don't have a username set.
From https://github.com/cdelashmutt-pivotal/service-use
Report of all current service instances, with org and space, grouped by plan within service.
cf service-use