Helix Core Server Administrator Guide: Fundamentals (2019.1)

p4dctl commands

p4dctl commands can be divided into three categories: commands that stop and start services, commands that checkpoint services, and commands that return information about services.

The p4dctl checkpoint command is similar to the p4d -jc command.

The following table presents a summary of command syntax for each category. The parameter -a specifies all servers.

Category Syntax

Control services

p4dctl [ options ] start [ -t type ] -a
p4dctl [ options ] start [ -t type ] name
p4dctl [ options ] stop [ -t type ] -a
p4dctl [ options ] stop [ -t type ] name
p4dctl [ options ] restart [ -t type ] -a
p4dctl [ options ] restart [ -t type ] name

Checkpoints and journals

p4dctl [ options ] checkpoint -a
p4dctl [ options ] checkpoint name

Query services

p4dctl [ options ] status [ -t type ] -a
p4dctl [ options ] status [ -t type ] name
p4dctl [ options ] list [ -t type ]
p4dctl [ options ] list [ -t type ] name
p4dctl [ options ] env [ -t type ] -a var [var…​]
p4dctl [ options ] status [ -t type ] name var [var…​]

Options to p4dctl commands are described in the following table. The meaning of variable names other than option names is explained in Configuration file format.

Options Meaning

-c configFile

Path to the configuration file

Default: /etc/perforce/p4dctl.conf

-p pidDir

Path to the pid file directory.

Default: /var/run

-q

Send output to syslog instead of STDOUT or STDERR

-v level

Set debug level (0-9)

For more information, see the description of the P4DEBUG environment variable in P4 Command Reference.

-V

Display version and exit.