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.
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:
Clear existing statistics, enter:
admin statistics, reset
Turn on sampling:
configure replication server set stats sampling to "on"
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"
Dump statistics to the screen:
admin statistics, "all"
Clear all statistics:
admin statistics, reset
Turn on sampling:
configure replication server set stats_sampling to "on"
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"
Dump statistics to the screen:
admin statistics, "all"
Clear all statistics:
admin statistics, reset