cancel Option

The new command syntax also supports the cancel option, which stops the currently running command.

admin { stats | statistics } , cancel
Note: For multiple observation intervals (obs_interval), the data that is saved at the time of cancellation is not deleted.
Replication Server checks the unfinished command to avoid corrupted sampling. If there is any command in progress, running either in the background or in other user sessions, the following commands cannot be executed:

When a command is denied, the following error message is returned, and admin stats with the cancel option is required to stop the unfinished command before executing another command.

Admin command failed. Existing command is currently in
progress

Commands that display current statistics of your session are allowed to be executed even if there is another command in progress. For example:

admin stats, sqm, inbound, display