CTWATCH(1) | User Commands | CTWATCH(1) |
ctwatch - watch events in a contract or group of contracts
/usr/bin/ctwatch [-f] [-r] [-v] contract-type... | contract-id...
The ctwatch utility allows a user to observe the events occurring within a set of contracts or contract types. By default, ctwatch watches all contracts.
The following options are supported:
-f
-r
-v
The following operands are supported:
contract-type
process
contract-id
The following list defines the column headings and the meanings of a ctwatch report:
CTID
EVID
CRIT
ACK
CTTYPE
SUMMARY
Example 1 Watching a process contract
example% ctwatch -r 1 CTID EVID CRIT ACK CTTYPE SUMMARY 1 2 crit no process pid 100569 was created 1 3 info no process pid 100569 encountered hardware error 1 4 info no process pid 100568 exited 1 5 info no process pid 100569 exited 1 6 crit no process contract empty
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. |
Human Readable Output is Unstable. Invocation is Evolving.
ctrun(1), ctstat(1), contract(5), process(5), attributes(7), privileges(7)
Ordering of events is only guaranteed within a single contract, or within a single type when a type is specified.
ctwatch can only observe those events which are generated by contracts owned or authored by processes with the same effective user ID as ctwatch, unless the {PRIV_CONTRACT_OBSERVER} privilege is asserted in its effective set.
July 14, 2004 | OmniOS |