admin stats

Description

Displays information and statistics about Replication Server operation.

Syntax

admin { stats | statistics } [, sysmon | "all" 
	| module_name [, inbound | outbound ] [, display_name ] ]
	[, server[, database ] 	| instance_id  ] 
	[, display |, save[, num_obs ] ] 
	[, sample_period ]

Parameters

sysmon

Displays statistics only for those counters identified as particularly important for performance and tuning purposes. Counters are selected from nearly all modules. This is the default.

"all"

Displays statistics from all counters.

module_name

Displays statistics from the named module’s counters, where module_name is cm, dsi, dist, dsiexec, repagent, rsi, rsiuser, serv, sqm, sqt, sts, sync, and others. Use rs_helpcounter to obtain valid module names.

inbound | outbound

inbound and outbound are types of sqt or sqm. If neither inbound nor outbound is supplied for the sqt or sqm module, Replication Server reports statistics for both types of queues.

display_name

Is the name of a counter. Use rs_helpcounter to obtain valid display names. display_name is only used in conjunction with module_name.

server[, database ]

If the statistics to be collected are related to a connection, server must be a dataserver and database must be supplied. If the statistics to be collected are related to a route, server must be a Replication Server and you are not allowed to supply database.

instance_id

Identifies a particular instance of a module, such as SQT or SQM, that has multiple instances. To view instance IDs, execute admin who and view the Info column.

The instance ID 0 indicates Replication Server-wide statistics. It is the instance ID of the Replication Server.

display

Displays statistics on the computer screen. This is the default.

save

Saves statistics in the RSSD.

num_obs

Specifies the number of observation intervals during the sample period. The default and minimum value is one. Each observation interval must be at least 15 seconds.

sample_period

The number of seconds for the sample run. The default value is zero second. A zero value reports the current counter values. With a non-zero value, the current counter values are reset and then collected for the specified sample period.

Examples

Example 1

Collects outbound SQT statistics for connection 108 for two minutes and sends the data to the RSSD.

admin stats, sqt, outbound, 108, save, 120

Example 2

Collects outbound SQT statistics for connection 108 for two minutes and sends data to the RSSD. In addition, the sample period is divided into four observation intervals of 30 seconds each.

admin stats, sqt, outbound, 108, save, 4, 120

Example 3

Displays statistics for the SQM and SQMR modules for the inbound queue for connection 102.

admin stats, sqm, inbound, 102
Report Time:            10/31/05 02:14:17 PM
Instance                        Instance ID  ModType/InstVal
--------------------------      -----------  ----------------
SQM, 102:1 pds01.tpcc                   102                 1

Monitor                Obs     Last    Max     Avg ttl/obs
---------------------  ------  ------  ------  ------------
#*SegsActive                1       1       1             1

==========================================================================
Instance                        Instance ID  ModType/InstVal
------------------------------  -----------  ----------------
SQMR, 102:1 pds01.tpcc, 0 SQT           102                11

Observer                                  Obs    Rate x/sec
----------------------                    ------  ----------
SleepsWriteQ                                   4           0

NoteIn output, prefixes that precede counter names provide information about the counter. For example, a preceding # indicates a counter that is not reset, even if admin stats, reset is executed, and a preceding * indicates a counter that must be sampled, irrespective of the setting of stats_sampling. In this example, the SegsActive counter is always sampled and never reset.

Example 4

Collects statistics for the SleepsWriteQ counter in the SQM module.

admin stats, sqm, SleepsWriteQ
Report Time              10/31/05 02:17:03 PM

Instance                                Observer       Obs    Rate x/sec
-------------------------------------   -------------  ----   ----------
SQMR, 101:0 edsprs01.edbprs01, 0, DSI   SleepsWriteQ      0            0
SQMR, 102:0 pds01.tpcc, 0, DSI          SleepsWriteQ      0            0
SQMR, 102:1 pds01.tpcc, 0, DSI          SleepsWriteQ     20            0
SQMR, 103:0 rds01.tpcc, 0, DSI          SleepsWriteQ      0            0

Usage

Permissions

Any user may execute this command.