CTSTAT(1) | User Commands | CTSTAT(1) |
ctstat - display active system contracts
/usr/bin/ctstat [-a] [-i contractid...] [-t type...] [-v]
[-T u | d ] [interval [count]]
The ctstat utility allows a user to observe the contracts active on a system.
Unless you specify the -i or -t option, ctstat displays statistics on all contracts in the system.
The following options are supported:
-a
-i contractid...
This option accepts lists as arguments . Items in the list can be separated by commas, or enclosed in quotes and separated by commas or spaces.
-T u | d
Specify u for a printed representation of the internal representation of time. See time(2). Specify d for standard date format. See date(1).
-t type...
This option accepts lists as arguments. Items in the list can be separated by commas, or enclosed in quotes and separated by commas or spaces.
The following types are supported:
process
-v
The following operands are supported:
interval
count
The following list defines the column headings and the meanings of a ctstat report:
CTID
ZONEID
TYPE
STATE
owned
inherited
orphan
dead
HOLDER
EVENTS
QTIME
NTIME
Example 1 Reporting on all Contracts in the System
The following example reports on all contracts in the system:
example% ctstat -a CTID TYPE STATE HOLDER EVENTS QTIME NTIME 1 process owned 100579 0 - - 2 process dead - 1 - - 3 process inherit 1 3 - - 4 process orphan - 0 - -
Example 2 Obtaining a Verbose Report of All Contracts in the System
The following example obtains a verbose report of all contracts in the system:
example% ctstat -av CTID TYPE STATE HOLDER EVENTS QTIME NTIME 1 process owned 100579 0 - -
informative event set: none
critical event set: hwerr core
fatal event set: hwerr
parameter set: none
member processes: 100600 100601
inherited ctids: none
service fmri: svc:/system/init:default
svc_fmri ctid: 1
creator: sched
aux: 2 process dead - 1 - -
informative event set: none
critical event set: none
fatal event set: hwerr core
parameter set: pgrponly
member processes: none
inherited ctids: none
service fmri: svc:/system/power:default
svc_fmri ctid: 19
creator: svc.startd
aux: start
The following exit values are returned:
0
1
2
/system/contract/*
See attributes(7) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Interface Stability | See below. |
The human readable output is Uncommitted. The invocation is Committed.
ctrun(1), ctwatch(1), contract(5), process(5), attributes(7)
June 16, 2009 | OmniOS |