During troubleshooting of issues on the Tanzu platform, VMs may be recreated. It may be helpful to quickly list which VMs were recreated.
Tanzu platform
Ubuntu Linux VMs
The following command line utilities are needed:
bosh
jq
sort (should be included in any Linux distribution)
bosh vms --vitals --json | jq '.Tables[].Rows[] | "\(.vm_created_at)',' \(.instance)"' --raw-output | sort -k6n -k2M -k3n -k4n
This lists the VMs under bosh control, in JSON format. The output is parsed using jq and selects just the values for VM creation time and instance name, then sorts numerically on the fields of the creation time (first year, then month, then day, then time).
If desired, you can also use the -d option to restrict the output to a single deployment, such as TAS.