p4 counters

Synopsis

Display list of long-term variables used by Perforce and associated scripts.

Syntax

p4 [g-opts] counters [-e nameFilter] [-m max]

Description

Perforce uses counters as variables to store the number of the last submitted changelist and the number of the next job. p4 counters provides the current list of counters, along with their values. These counters are currently used:

change

Current change number.

job

Current job number.

journal

Current journal number

lastCheckpointAction

Data about the last complete checkpoint

logger

Event log index used by p4 logger.

maxCommitChange

The last changelist number successfully submitted to the Perforce server.

traits

Internal trait lot number used by p4 attribute.

upgrade

Server database upgrade level.

Options

-e nameFilter

List counters with a name that matches the nameFilter pattern, for example: p4 counters -e 'mycounter-*'

-m max

List only the first max counters.

g-opts

See “Global Options”.

Usage Notes

Can File Arguments Use Revision Specifier? Can File Arguments Use Revision Range? Minimal Access Level Required

N/A

N/A

list

Related Commands

To view or change the value of a counter

p4 counter