Knowledge base

reset counters

Reset the counters
Start counting again

Resets the statistics counters from the show status output — traffic totals and peaks.

A way to get a clean measurement window: after the reset, totals are counted from zero. According to the manual, a service restart does not reset these counters.

The main trap is resetting counters someone is watching. After the reset, peaks and totals start over for everyone: comparing “before” and “after” is possible only if “before” was recorded in advance.
What the Hub does. It does not call it.
Recommended values

When to use it:

Question This command or not
start measuring traffic from zero yes
reset accounting or queues no — the command does not touch them
The action and the fact that a restart does not reset the counters come from the manual (§ 6.3.6, § 6.3.17). The trap analysis is ours.
Example configuration
# record the totals and start measuring again
pmta show status
pmta reset counters
The manual also writes it abbreviated — pmta reset count; the alias is reset status.
yellow — — directive names, blue — blocks. They are highlighted the same way in the text of the card.
Compatibility
PowerMTA 6.0
described in the manual of this version · platform: any
The vendor does not state the first version for every directive — there is no note here. The name also appears in the 5.0 edition of the manual.
How to check on the node
Make sure the totals started from zero:
pmta show status
The “Total” and “Top” lines should show values accumulated after the reset.
In the Hub
Cost of a mistake
disruptive: applying it interrupts the node
Scenarios
Collect telemetry