Would like boot_time and init_pid for zones exposed to GZ kstats
In a zone you can run:
/usr/bin/kstat -p -m unix -n system_misc -s boot_time
and get the time the zone booted. You can also (thanks rm!) get this from mdb:
mdb -k -e '::walk zone | ::printf "%s: %Y\n" zone_t zone_name zone_boot_time'
However you cannot get this in kstats from the GZ for a zone.
It seems like it would be nice if the kstats such as:
kstat -n $(echo <uuid> | cut -c1-30)
would include boot_time.
Updated by Electric Monk over 6 years ago
- Status changed from New to Closed
commit a48d81205a4295fd3f979e8ab98212a784b8f9e9 Author: Jerry Jelinek <firstname.lastname@example.org> Date: 2016-04-04T22:03:07.000Z 6829 Would like boot_time and init_pid for zones exposed to GZ kstats Reviewed by: Toomas Soome <email@example.com> Reviewed by: Adam Števko <firstname.lastname@example.org> Reviewed by: Richard Elling <Richard.Elling@RichardElling.com> Approved by: Dan McDonald <email@example.com>