Project

General

Profile

Actions

Feature #6829

closed

Would like boot_time and init_pid for zones exposed to GZ kstats

Added by Robert Mustacchi over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
zones
Start date:
2016-03-27
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

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.

Actions

Also available in: Atom PDF