Displays information and statistics about Replication Server operations.
admin {stats | statistics} [, sysmon | "all" | module_name [, inbound | outbound] [, display_name ]] [, server[, database]] | [instance_id] [, {display |, save} [, obs_interval] [, sample_period]]
The instance ID 0 indicates Replication Server-wide statistics.
admin stats, sqt, outbound, 108, save, 120
admin stats, sqt, outbound, 108, save, 30, "02:00:00"
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
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
admin stats, "all", save, 20, "01:30:00"
Observer – counts the number of times an event occurs. For example, Replication Server uses an observer to count the number of times a command from the RepAgent is observed.
Monitor – periodically samples a value. For example, Replication Server uses a monitor to sample the sizes of sent commands.
Counter – collects statistics not observed by monitors and observers. Counters usually accumulate a running total of a particular value, including the total number of milliseconds required to complete a particular task. For example, Replication Server uses a counter to accumulate the elapsed time between receiving two commands from the RepAgent.
Observer, monitor, and counter watch four types of statistics: number of observations, total observed values, last observed values, and maximum observed values.
Instance – a specific occurrence of a module.
Instance ID – the numeric identifier for a given module instance. For example, two different SQM instances may have instance IDs 102 and 103.
ModType/InstVal – in some cases, an instance may have multiple versions or module types. For example, a given SQM instance may have an inbound type and an outbound type. For SQM instances, inbound versions have a module type of 1 and outbound versions have a module type of 0.
Monitor, Observer, or Counter – displays the name of the statistics collector being observed. For example, SleepsWriteQ.
Obs – the number of observations of a statistics collector during an observation period.
Last – the last value observed during an observation period.
Max – the maximum value observed during an observation period.
Total – the sum of observed values during an observation period.
Avg ttl/obs – the average value observed in an observation period. This is calculated as Total/Obs.
Rate x/sec – the change, in a period of 1 second, observed during the given observation period. Observers calculate this as Obs/seconds in an observation period. Monitors and counters calculate this as Total/second in an observation period.
By default, admin stats reports values for the sysmon counters.
By default, admin stats does not report counters that show 0 (zero) observation. To change this behavior, set the stats_show_zero_counters configuration parameter on.
If statistics are displayed on the computer screen, they are not stored in the RSSD. Similarly, if statistics are stored in the RSSD, they are not displayed on screen.
If you use admin stats...display_name to display statistics for a particular counter, Replication Server always displays statistics for that counter, even if stats_sampling is off and the number of observations is zero.
Use admin stats with the independent module name to collect statistics for dependent modules. You cannot collect statistics using the dependent module name in the admin stats command.
Independent Module |
Dependent Module |
---|---|
Data Server Interface (DSI) |
DSI Executor (DSIEXEC) |
Data Server Interface (DSI) |
Active Object Statistics (AOBJ) |
Stable Queue Manager (SQM) |
SQM Reader (SQMR) |
Thread Synchronization (SYNC) |
SYNC Element (SYNCELE) |
For more information about Replication Server modules, see the Replication Server Administration Guide Volume 2.