p4 server
Create, modify, or delete a Helix Core Server specification.
Syntax
p4 [g-opts] server serverID
p4 [g-opts] server -g
p4 [g-opts] server -d serverID
p4 [g-opts] server -o [-l] serverID
p4 [g-opts] server -i [-c edge-server|commit-server]
p4 [g-opts] server -c edge-server|commit-server serverID
Description
A server specification describes the high-level configuration and intended usage of a Helix Core Server. For installations with only one Helix Core Server, the server specification is optional.
The p4 server
command puts the server spec into a
temporary file and invokes the editor configured by the P4EDITOR
variable. Saving the
file creates or saves changes to the server specification.
An operator type user cannot execute this command. (The three user types are explained in the description of p4 user.)
Filtering
The ClientDataFilter
, RevisionDataFilter
,
and ArchiveDataFilter
fields are for replicated environments where you filter out unnecessary metadata.
For instance, a build server does not need to replicate the have list An internal list indicates which files and revisions the client workspace has sync'd from the depot. See 'p4 have' in Helix Core Command-Line (P4) Reference. for every open client workspace on the
master server. See "Filtering metadata during replication or edge-to-edge chaining" in the Helix Core Server Administrator Guide.
You must reseed the server if you change the RevisionDataFilter
filter.
(2019.1 and later) For a convenient way to adjust the configuration, see the DistributedConfig: field.
Form Fields
Field Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Read-only |
A unique identifier for this server. This must match the
contents of the server’s |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Writable |
Server executable type. One of the following:
Each type can offer one or more services. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Writable |
Services provided by a specific server type. To learn more, see Deployment architecture in the Helix Core Server Administrator Guide. To assign a service to a server, the administrator uses the Servicesfield that appears with the p4 server command:
Tip
For additional details, see:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Options: | Writable |
This field is relevant to standby and forwarding-standby servers and is ignored by other types of servers. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ReplicatingFrom: | Writable |
Server ID of the server from which this server is replicating or journalcopy'ing. This field is required when the server is a standby or forwarding-standby server and the mandatory option is set for either. If you want a forwarding replica to offload read-only commands from an edge server, set this field in the forwarding replica's server spec to the server ID of the edge server. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Writable |
Leave this blank or set it to the same value as
the |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Writable |
The Commit and edge servers require this field if you want to use p4 reload in this way:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Writable |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Writable |
Beginning in 2019.2, this optional field can contain a list of repos to be updated, with each repo name on a separate line. See the Upgrading Git Connector and Configuring Git Connector to Poll Repos topics in Work with Git in Helix Core Server Administrator Guide. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Writable |
An optional description for this server. For example, Description: Created by maria |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Writable |
The service user name used by the server. For additional information about the use of this field, see the section on "Service users" in the Helix Core Server Administrator Guide. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Writable | A list of addresses that are valid this server. At security level 6, this field is used to associate intermediary servers with specified service users. Connections through intermediary servers without matching server specs will be blocked. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Writable |
For a replica server, this optional field can contain one or more patterns describing how active client workspace metadata is to be filtered. Active client workspace metadata includes have lists, working records, and pending resolves. To include active client metadata, use the syntax:
To exclude active client metadata, use the syntax:
All patterns are specified in client syntax. Important
Changes to filters only come into effect after the replica or edge server has been restarted. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Writable |
For a replica server, this optional field can contain one or more patterns describing how submitted revision metadata is to be filtered. Submitted revision metadata includes revision records, integration records, label contents, and the files listed in submitted changelists. To include submitted revision depot metadata, use the syntax:
To exclude submitted revision depot metadata, use the syntax:
All patterns are specified in depot syntax. Warning
You must reseed the server if you change the Important
Changes to filters only come into effect after the replica or edge server has been restarted. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Writable |
For a replica server, this optional field can contain one or more patterns describing the policy for automatically scheduling the replication of file content. If this field is present, only those files described by the pattern are automatically transferred to the replica. Other files are not transferred until they are referenced by a replica command that needs the file content. Files specified in the To automatically transfer files on submit, use the syntax:
To exclude files from automatic transfer, use the syntax:
All patterns are specified in depot syntax. If you want to include most depot paths, use this pattern: //... -//depot/projA/... -//depot/projB/... which begins by including all paths. If you want to include only a few specific depot paths, use this pattern: //depot/projA/... //depot/projB/... which implicitly excludes all paths that are not explicitly included. Important
Changes to filters only come into effect after the replica or edge server has been restarted. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Writable |
For all server types, this field shows a line for each configurable that is set to a non-default value. In this field, the admin can edit certain values, add a new line to set certain configurables to a non-default value, or delete a line to reset certain configurables to their default value. For example, DistributedConfig: P4TARGET=host7:1234 track=1 Note that:
When creating a new Edge or Commit server, this optional field is displayed only when you use the -c option. This option causes the configuration values to be populated with currently configured values, recommended default values (if unset), or unset for unset values with no default. If the You can include other configurables that affect the behavior of the server. To learn more, see Configurables. |
Options
|
Allow the user to set, change or display configuration values used to set up the multi-server environment on an edge or commit server by using the DistributedConfig: field. Configuration fields are initially populated with:
After exiting from the form, any configuration commands in the DistributedConfig: field will be run on the current server for the scope of the serverID. The commands only apply to the serverID server, and so the server# prefix is not allowed in these commands. The only supported services are |
|
Delete the named server specification. |
|
Generate a new serverID as part of the form. |
|
Read a server specification from standard input. You can combine this option with the |
|
Deprecated because of the functionality of the DistributedConfig: field. |
|
Write the named server specification to standard output. |
|
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 |
|
Related commands
Get or set the unique ID associated with a Helix Core Server. |
|
To list all known servers |