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 #1

Updated by Electric Monk over 6 years ago

  • Status changed from New to Closed

git commit a48d81205a4295fd3f979e8ab98212a784b8f9e9

commit  a48d81205a4295fd3f979e8ab98212a784b8f9e9
Author: Jerry Jelinek <jerry.jelinek@joyent.com>
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 <tsoome@me.com>
    Reviewed by: Adam Števko <adam.stevko@gmail.com>
    Reviewed by: Richard Elling <Richard.Elling@RichardElling.com>
    Approved by: Dan McDonald <danmcd@omniti.com>

Actions

Also available in: Atom PDF