p4 serverid
Synopsis
Get or set the unique ID associated with a Perforce server.
A serverid is also assigned to each member of a cluster when you add that member to the cluster using the p4mgr add command. In a cluster, a server id is assigned not only to servers, but also to Zookeeper services and workspace routers. You may not use the p4 serverid command either to assign a serverid to a cluster member or to change the serverid of a cluster member.
Syntax
p4 [g-opts
] serverid
[serverID
]
Description
p4 serverid retrieves or sets the unique ID of a
Perforce server by reading or writing the server.id
file in the server's root directory.
Unless a P4NAME
value has
been specified for the server, the server uses the serverid to determine
the appropriate configuration settings. See
p4 configure.
The recommended technique for configuring servers in a multi-server
installation is to give each server its own serverid, and specify the
server configuration for that serverid; specifying a separates
P4NAME
for the server is
generally not necessary,
Use this command to create or update the server.id
file after first generating a unique ID for the server with the
p4 server command.
The server.id
file exists in the server's root directory, and 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, the restored server will require that this file be present (or be
re-created) in order to correctly configure itself upon restart.
Options
|
If supplied, update |
|
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 |
|