Collecting statistics for an indefinite time period

To turn on sampling for an indefinite period, configure Replication Server using the stats_sampling parameter. Enter:

configure replication server 
  set stats_sampling to "on"

Replication Server continues to collect data until you reconfigure Replication Server to turn sampling off.

configure replication server 
   set stats_sampling to "off"

Then, when you want to view data on the computer screen or send the collected data to the RSSD, use admin stats.

Note Use admin stats with care when stats_sampling is on. If you execute admin stats and specify a nonzero time period, Replication Server clears the counters, executes the command, and turns stats_sampling off.

For example, to collect statistics for two consecutive 24-hour periods, reporting results to the computer screen, you might follow this sequence:

Day 1, 8am

  1. Clear existing statistics, enter:

    admin statistics, reset
    
  2. Turn on sampling:

    configure replication server 
    set stats sampling to "on"
    

Day 2, 8am

  1. Turn off sampling to ensure Replication Server does not collect statistics as statistics are dumped to the screen.

    configure replication server
    set stats sampling to "off"
    
  2. Dump statistics to the screen:

    admin statistics, "all"
    
  3. Clear all statistics:

    admin statistics, reset
    
  4. Turn on sampling:

    configure replication server 
    set stats_sampling to "on"
    

Day 3, 8am

  1. Turn off sampling to ensure Replication Server does not collect statistics as statistics are dumped to the screen.

    configure replication server
    set stats sampling to "off"
    
  2. Dump statistics to the screen:

    admin statistics, "all"
    
  3. Clear all statistics:

    admin statistics, reset