Previous Topic

Next Topic

iimonitor Command—Administer DBMS, Recovery, and GCF Servers

Permission required: Privileged user (server control privilege).

The iimonitor utility allows a system administrator or other privileged user to perform session and server connection functions for DBMS, recovery, and GCF servers, including:

If you are using iimonitor to terminate a session that has an active transaction, the server first rolls back the transaction. The session is not completely removed until the rollback is complete.

The iimonitor command has the following format:

iimonitor server_id

To obtain the GCF address of a server, use the iinamu utility or the csreport utility (on UNIX). The csreport utility shows DBMS and recovery servers only.

This server ID can also be found in the installation log file (errlog.log).

Previous Topic

Next Topic

iimonitor Utility Commands

At the IIMONITOR > prompt, several commands are available.

Previous Topic

Next Topic

Help Command

The iimonitor help command lists the available commands in the iimonitor utility for the given server.

The help command has the following format:

help

Previous Topic

Next Topic

Show Server Command

The iimonitor show server command displays information about the given server, including the number of sessions currently active or connected to it, the state of the server, and the CPU usage in terms of quanta used.

The show server command has the following format:

show server [listen|shutdown]

Previous Topic

Next Topic

Show Sessions Command

The iimonitor show sessions command displays a list of active sessions and their current states.

The show sessions command has the following format:

show [user]|system|all|admin sessions[formatted|stats]

Previous Topic

Next Topic

Session ID Format in Command Output

The output of the show sessions command displays the session ID in the following format:

ssssssss:tt

In the example 8125620:2, the notation :2 is the GCA association ID specific to the given server, when available. This ID may also be shown in error logs and trace output.

Note: The association ID in one server (for example, Name Server) does not necessarily match the association ID in another server (for example, Communications Server).

Previous Topic

Next Topic

Output of Show All Sessions Command

This command shows a list of all active sessions, their threads, and current states:

show all sessions

Possible session states displayed in the output are as follows:

The system sessions include server threads. Server threads are as follows:

The iimonitor utility can also be used to connect to the recovery process (DMFRCP). Formatting the recovery thread in the recovery process displays the current state of online recovery operations, if any are taking place. The recovery process is multi-threaded, and has the following threads that can be viewed with iimonitor:

Previous Topic

Next Topic

Format Sessions Command

The iimonitor format sessions command displays information about the session. Its output is similar to the output of the show sessions formatted command.

The format sessions command has the following format.

format [user]|admin|system|all [sessions]

Previous Topic

Next Topic

Set Server Command

The iimonitor set server command controls the state of the given server. This command can be run by a privileged user only.

The set server command has the following format:

set server shut|closed|open

Previous Topic

Next Topic

Stop Server Command

The iimonitor stop server command stops the given server immediately. Client sessions are dropped. This command can be run by a privileged user only. Use this command only if absolutely necessary, for example, if an Ingres tool program is hanging.

The stop server command has the following format:

stop server [force]

Previous Topic

Next Topic

iimonitor Commands That Perform Actions on Sessions

The following iimonitor commands perform actions on all server sessions or a specific server session.

The iimonitor commands that perform actions on sessions have the following format:

remove|suspend|resume|kill session_id

Previous Topic

Next Topic

Quit Command

The iimonitor quit command terminates the iimonitor session.

The quit command has the following format:

quit

Previous Topic

Next Topic

iimonitor Commands Specific to GCF Servers

The iimonitor commands that are specific to GCF servers include the following:

Previous Topic

Next Topic

Set Trace Command

The iimonitor set trace command enables or disables dynamic tracing on a GCF server.

Note: This command overrides trace settings in config.dat and environment variables.

The set trace command has the following format:

set trace attribute value

Examples: Set Trace Command

The following iimonitor command opens the trace file specified by value:

set trace log value

The following iimonitor command closes the log file:

set trace log NONE

Previous Topic

Next Topic

Register Server Command

The iimonitor register server command allows a GCF server to dynamically register its listen address with the Name Server.

Note: Using this command is the preferred method for restoring server registrations that have been lost or manually removed.

The register server command has the following format:

register server

Previous Topic

Next Topic

Remove Tickets Command

The iimonitor remove tickets command removes installation password tickets stored by the Name Server.

Note: This command is valid for the Name Server only.

The remove tickets command has the following format:

remove [all]|local|remote tickets

Previous Topic

Next Topic

Remove Pooled Sessions Command

The iimonitor remove pooled sessions command terminates all DBMS sessions in the connection pool.

Note: This command is valid for the Data Access Server (GCD process) only.

This command has the following format:

remove pooled sessions


© 2007 Ingres Corporation. All rights reserved.