Name

Synopsis

Description

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.

Options

The following options are supported:

-a

Display all contracts regardless of state. By default, only those contracts which are in the owned, inherited, or orphan states are displayed.

-icontractid...

Request status on the specified contracts, identified by their numeric contract identifier (contract_id).

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.

-ttype...

Request status on contracts of the specified type (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

Process contracts

-v

Verbose output.

Operands

The following operands are supported:

interval

Report once each interval seconds.

count

Print only count reports.

OUTPUT

The following list defines the column headings and the meanings of a ctstat report:

CTID

The contract ID of the contract.

ZONEID

The zone ID of the contract's creator.

TYPE

The contract type.

STATE

The state of the contract:

owned

Contract is owned by a process.

inherited

The contract owner has exited abnormally and the contract has been inherited by the owner's process contract.

orphan

The contract owner has abandoned the contract, the contract owner exited abnormally and the contract was not inherited by the owner's process contract, or the process contract which had inherited the contract was abandoned by its owner.

dead

The contract is no longer active. It is removed from the system automatically when all references to it (open file descriptors, contract templates, and events) have been released.

HOLDER

If the contract is in the owned state, the pid of the process that owns the contract. If the contract is in the inherited state, the id of the regent process contract.

EVENTS

The number of unacknowledged critical events pending.

QTIME

The time until quantum ends, or - if no negotiation is in progress.

NTIME

The time until negotiation ends, or - if no negotiation is in progress.