Get or set the unique ID associated with a Helix server.
p4 [g-opts] serverid [serverID]
We recommend that you use p4 serverid instead of
To avoid configuration problems, the value of
serverID should always match the value of P4NAME if both are set. We
serverID, but support
for backward compatibility.
p4 serverid retrieves or sets the unique ID of a
Helix server by reading or writing the
server.id file in the
server’s root directory.
When you configure servers in a multi-server installation, assign to each server its own serverid and specify the server configuration for that serverid.
Use this command to create or update the
after first generating a unique ID for the server with the
p4 server command.
server.id file is in the server’s root directory,
and this file must be backed up. If you are using the
p4 server command to
configure your servers, and one of your servers suffers a catastrophic
data loss, any attempt to restart the restored server requires that the
server.id file be present (or
- Stop the server.
p4 admin stop
Remove the existing
- Start the server.
- Run the p4 serverid command to assign an ID to your server.
p4 serverid yourNewNameForTheServer
- Adjust any configurables associated with the serverid.
p4 configure show allservers
p4 configure set servername#monitor=2
- Adjust the fields of the server specification that depend on the serverid value, such as ReplicatingFrom:
If supplied, update
See Global options.
|Can File Arguments Use Revision Specifier?||Can File Arguments Use Revision Range?||Minimal Access Level Required|
To edit or view a server specification
To list all known servers