p4 topology

Reports the Helix Core servers that are connected directly and indirectly to the innermost server, including an indicator of the server this command is running on.

Important

p4 topology is a Technology Preview feature.

Features offered in Technology Preview mode are unsupported and may not be functionally complete. If you use any features in Technology Preview mode, Perforce would appreciate your feedback and any functionality suggestions before the feature becomes supported. Please email us at [email protected].

Syntax

p4 [g-opts] topology [ -a ]

Description

This command:

  • reports the Helix Core servers that are connected directly and indirectly to the innermost server

  • includes an indicator of the server this command is running on

These servers can be connected directly or indirectly. The types of servers listed are: master, commit, edge (including edge-to-edge chaining), read-only replica, forwarding replica, standby, build, proxy, and broker.

By default, the command reports only the latest configurations based on the Server address, Target server address, and serverID for each service. To see all the configurations of the services that are captured in the db.topology table, use the -a option.

Output format

Command

Format of the output

p4 topology untagged, used by the Perforce admin for a quick validation
p4 -ztag topology tagged (see -z tag under Global options)
p4 -ztag -Mj topology JSON (see -Mj tag under Global options)

Options

-a

Display all the configurations of the services that are captured in the db.topology table. See Helix Server Schema Documentation.

g-opts

See Global options, especially -ztag and -ztag -Mj.

Usage Notes

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

N/A

N/A

Examples

Scenario with four points in time

Output might be similar to

The first time we run p4 topology we only see the following:

Topology command was run on server - 127.0.0.1:19816
127.0.0.1:19816  2021/09/09 09:09:09 oldmaster standard

Later, p4 topology shows an update to the serverid

Topology command was run on server - 127.0.0.1:19816
127.0.0.1:19816  2021/10/10 10:10:10 newmaster standard
127.0.0.1:19816  2021/09/09 09:09:09 oldmaster standard

Still later, p4 topology, also shows the addition of a service user named svcUser1

Topology command was run on server - 127.0.0.1:19816
127.0.0.1:19816  2021/11/11 11:11:11 newmaster standard svcUser1
127.0.0.1:19816  2021/09/09 09:09:09 oldmaster standard

To get information about all the updates to the configuration, include the -a option: p4 topology -a

Topology command was run on server - 127.0.0.1:19816
127.0.0.1:19816  2021/11/11 11:11:11 newmaster standard svcUser1
127.0.0.1:19816  2021/10/10 10:10:10 newmaster standard
127.0.0.1:19816  2021/09/09 09:09:09 oldmaster standard