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>
   1 PTREE(1)                         User Commands                        PTREE(1)
   2 
   3 
   4 
   5 NAME
   6        ptree - print process trees
   7 
   8 SYNOPSIS
   9        /usr/bin/ptree [-a] [-c] [-z zone] [pid | user]...
  10 
  11 
  12 DESCRIPTION
  13        The ptree utility prints the process trees containing the specified
  14        pids or users, with child processes indented from their respective
  15        parent processes. An argument of all digits is taken to be a process-
  16        ID, otherwise it is assumed to be a user login name. The default is all
  17        processes.
  18 
  19 OPTIONS
  20        The following options are supported:
  21 
  22        -a
  23                   All. Print all processes, including children of process 0.
  24 
  25 
  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.

  30 
  31 







  32        -z zone
  33                   Zones. Print only processes in the specified zone. Each zone
  34                   ID can be specified as either a zone name or a numerical
  35                   zone ID.
  36 
  37                   This option is only useful when executed in the global zone.
  38 
  39 
  40 OPERANDS
  41        The following operands are supported:
  42 
  43        pid
  44                Process-id or a list of process-ids. ptree also accepts
  45                /proc/nnn as a process-id, so the shell expansion /proc/* can
  46                be used to specify all processes in the system.
  47 
  48 
  49        user
  50                Username or list of usernames. Processes whose effective user
  51                IDs match those given are displayed.


  93 
  94 
  95 
  96        +--------------------+-----------------+
  97        |  ATTRIBUTE TYPE    | ATTRIBUTE VALUE |
  98        +--------------------+-----------------+
  99        |Interface Stability | See below.      |
 100        +--------------------+-----------------+
 101 
 102 
 103        The human readable output is Unstable. The options are Evolving.
 104 
 105 SEE ALSO
 106        gcore(1), ldd(1), pargs(1), pgrep(1), pkill(1), plimit(1), pmap(1),
 107        preap(1), proc(1), ps(1), ppgsz(1), pwd(1), rlogin(1), time(1),
 108        truss(1), wait(1), fcntl(2), fstat(2), setuid(2), dlopen(3C),
 109        signal.h(3HEAD), core(4), proc(4), process(4), attributes(5), zones(5)
 110 
 111 
 112 
 113                                October 11, 2005                       PTREE(1)
   1 PTREE(1)                         User Commands                        PTREE(1)
   2 
   3 
   4 
   5 NAME
   6        ptree - print process trees
   7 
   8 SYNOPSIS
   9        /usr/bin/ptree [-a] [-c] [-s svc] [-z zone] [pid | user]...
  10 
  11 
  12 DESCRIPTION
  13        The ptree utility prints the process trees containing the specified
  14        pids or users, with child processes indented from their respective
  15        parent processes. An argument of all digits is taken to be a process-
  16        ID, otherwise it is assumed to be a user login name. The default is all
  17        processes.
  18 
  19 OPTIONS
  20        The following options are supported:
  21 
  22        -a
  23                   All. Print all processes, including children of process 0.
  24 
  25 
  26        -c
  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.
  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 
  40        -z zone
  41                   Zones. Print only processes in the specified zone. Each zone
  42                   ID can be specified as either a zone name or a numerical
  43                   zone ID.
  44 
  45                   This option is only useful when executed in the global zone.
  46 
  47 
  48 OPERANDS
  49        The following operands are supported:
  50 
  51        pid
  52                Process-id or a list of process-ids. ptree also accepts
  53                /proc/nnn as a process-id, so the shell expansion /proc/* can
  54                be used to specify all processes in the system.
  55 
  56 
  57        user
  58                Username or list of usernames. Processes whose effective user
  59                IDs match those given are displayed.


 101 
 102 
 103 
 104        +--------------------+-----------------+
 105        |  ATTRIBUTE TYPE    | ATTRIBUTE VALUE |
 106        +--------------------+-----------------+
 107        |Interface Stability | See below.      |
 108        +--------------------+-----------------+
 109 
 110 
 111        The human readable output is Unstable. The options are Evolving.
 112 
 113 SEE ALSO
 114        gcore(1), ldd(1), pargs(1), pgrep(1), pkill(1), plimit(1), pmap(1),
 115        preap(1), proc(1), ps(1), ppgsz(1), pwd(1), rlogin(1), time(1),
 116        truss(1), wait(1), fcntl(2), fstat(2), setuid(2), dlopen(3C),
 117        signal.h(3HEAD), core(4), proc(4), process(4), attributes(5), zones(5)
 118 
 119 
 120 
 121                                September 3, 2019                      PTREE(1)