2 .\" Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH CTWATCH 1 "Jul 14, 2004"
8 ctwatch \- watch events in a contract or group of contracts
12 \fB/usr/bin/ctwatch\fR [\fB-f\fR] [\fB-r\fR] [\fB-v\fR] \fIcontract-type\fR... | \fIcontract-id\fR...
18 The \fBctwatch\fR utility allows a user to observe the events occurring within
19 a set of contracts or contract types. By default, \fBctwatch\fR watches all
24 The following options are supported:
31 Report events starting at the front of the event queue. Normally, \fBctwatch\fR
32 reports only events which occur after it has been invoked. With the \fB-f\fR
33 option, any events that still exist in the contracts' event queues when
34 \fBctwatch\fR is invoked (for example, unacknowledged critical events) are also
44 Reliably watches all messages. Normally, the system may drop informative events
45 and acknowledged critical events at any time, so \fBctwatch\fR isn't guaranteed
46 to see them all. This option may only be used if the \fBctwatch\fR is invoked
47 with the \fB{PRIV_CONTRACT_EVENT}\fR privilege asserted in its effective set.
56 Request verbose event descriptions.
62 The following operands are supported:
66 \fB\fIcontract-type\fR\fR
69 Valid contract types are:
84 \fB\fIcontract-id\fR\fR
93 The following list defines the column headings and the meanings of a
101 The contract \fBID\fR generating the event.
119 Whether the event is informative, critical, or initiates an exit negotiation.
120 Values are \fBinfo\fR, \fBcrit\fR, or \fBneg\fR, respectively.
129 The event has been acknowledged. Values are \fByes\fR or "\fBno\fR".
147 A type-specific summary of the event.
152 \fBExample 1 \fRWatching a process contract
156 example% \fBctwatch -r 1\fR
158 CTID EVID CRIT ACK CTTYPE SUMMARY
159 1 2 crit no process pid 100569 was created
160 1 3 info no process pid 100569 encountered hardware error
161 1 4 info no process pid 100568 exited
162 1 5 info no process pid 100569 exited
163 1 6 crit no process contract empty
171 The following exit values are returned:
178 Successful completion.
202 \fB/system/contract/*\fR
206 See \fBattributes\fR(5) for descriptions of the following attributes:
214 ATTRIBUTE TYPE ATTRIBUTE VALUE
216 Interface Stability See below.
221 Human Readable Output is Unstable. Invocation is Evolving.
225 \fBctrun\fR(1), \fBctstat\fR(1), \fBcontract\fR(4), \fBprocess\fR(4),
226 \fBattributes\fR(5), \fBprivileges\fR(5)
230 Ordering of events is only guaranteed within a single contract, or within a
231 single type when a type is specified.
234 \fBctwatch\fR can only observe those events which are generated by contracts
235 owned or authored by processes with the same effective user ID as
236 \fBctwatch\fR, unless the \fB{PRIV_CONTRACT_OBSERVER}\fR privilege is asserted
237 in its effective set.