Print this page
11691 ptree could show service FMRIs
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Jason King <jason.king@joyent.com>
Reviewed by: Andy Fiddaman <andy@omniosce.org>

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man1/ptree.1.man.txt
          +++ new/usr/src/man/man1/ptree.1.man.txt
   1    1  PTREE(1)                         User Commands                        PTREE(1)
   2    2  
   3    3  
   4    4  
   5    5  NAME
   6    6         ptree - print process trees
   7    7  
   8    8  SYNOPSIS
   9      -       /usr/bin/ptree [-a] [-c] [-z zone] [pid | user]...
        9 +       /usr/bin/ptree [-a] [-c] [-s svc] [-z zone] [pid | user]...
  10   10  
  11   11  
  12   12  DESCRIPTION
  13   13         The ptree utility prints the process trees containing the specified
  14   14         pids or users, with child processes indented from their respective
  15   15         parent processes. An argument of all digits is taken to be a process-
  16   16         ID, otherwise it is assumed to be a user login name. The default is all
  17   17         processes.
  18   18  
  19   19  OPTIONS
  20   20         The following options are supported:
  21   21  
  22   22         -a
  23   23                    All. Print all processes, including children of process 0.
  24   24  
  25   25  
  26   26         -c
  27      -                  Contracts. Print process contract memberships in addition to
  28      -                  parent-child relationships. See process(4). This option
  29      -                  implies the -a option.
       27 +                  Contracts. Print process contract memberships and their
       28 +                  associated SMF FMRIs, in addition to parent-child
       29 +                  relationships. See process(4).  This option implies the -a
       30 +                  option.
  30   31  
  31   32  
       33 +       -s svc
       34 +                  Print only processes with an SMF service FMRI matching the
       35 +                  argument. The FMRI may be in truncated form (such as
       36 +                  'console-login'). This includes child processes even if they
       37 +                  are not members of the service contract.  See process(4).
       38 +
       39 +
  32   40         -z zone
  33   41                    Zones. Print only processes in the specified zone. Each zone
  34   42                    ID can be specified as either a zone name or a numerical
  35   43                    zone ID.
  36   44  
  37   45                    This option is only useful when executed in the global zone.
  38   46  
  39   47  
  40   48  OPERANDS
  41   49         The following operands are supported:
↓ open down ↓ 61 lines elided ↑ open up ↑
 103  111         The human readable output is Unstable. The options are Evolving.
 104  112  
 105  113  SEE ALSO
 106  114         gcore(1), ldd(1), pargs(1), pgrep(1), pkill(1), plimit(1), pmap(1),
 107  115         preap(1), proc(1), ps(1), ppgsz(1), pwd(1), rlogin(1), time(1),
 108  116         truss(1), wait(1), fcntl(2), fstat(2), setuid(2), dlopen(3C),
 109  117         signal.h(3HEAD), core(4), proc(4), process(4), attributes(5), zones(5)
 110  118  
 111  119  
 112  120  
 113      -                               October 11, 2005                       PTREE(1)
      121 +                               September 3, 2019                      PTREE(1)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX