p4 info

Display information about the current P4 Server application and the shared versioning service.

Syntax

p4 [g-opts] info [-s]

Syntax and naming conventions

Description

The p4 info command displays information about the P4 Server application and the shared versioning service.

Here’s an example of the output from p4 info. If the server were a replica of another server, that information would be supplied.

Copy
Client name: myserver-24-n102
Client host: myserver-24-n102.dhcp.perforce.com
Client unknown.
Current directory: /Users/kharris
Peer address: 10.0.102.24:52492
Client address: 10.0.102.24
Server address: someaddress.perforce.com:1999
Server root: /depots/p4-1999
Server date: 2025/07/13 14:52:59 -0700 PDT
Server uptime: 147:34:34
Server version: P4D/LINUX26X86_64/2025.2.MAIN-TEST_ONLY/1199094 (2025/07/07)
ServerID: london1999
Server services: standard
Server license: 500 users (expires 2027/01/31)
Server license-ip: qaplay.perforce.com
Case Handling: sensitive

To obtain the version of the P4 Server application (p4), use p4 -V.

The output of p4 -ztag info includes unloadSupport enabled if the administrator has created a depot of type unload. If not, the output includes unloadSupport disabled.

The output of p4 info also includes high-level statistics about the server:

  • A count of files and revisions with the sum of their sizes.

  • A count of changes together with the time at which the first and last changes were created.

The server recalculates these statistics in the background every day, and reports them in cleartext as well as in an encrypted form so the values cannot be tampered with. For example:

Copy
Server Statistics: revs(250412R/94875F/48213562880B/11204D/7960C/512U); changes(15234T/15234C/15234:1735689600L/15234:1735689600LC/1:1609459200F/0:0FC); users(42); lastCalculated(1735689600); encrypted(jhy41170h2Yo5BJ40RNssESAr/DAfHPiceUykUBG5msaZlbEEj+t0lSkzXhwaEUgvy8kNL...)

The Server Statistics line reports the following:

Field Description

revs()

Revision counts and total size:

  • R is the number of revisions.

  • F is the number of files.

  • B is the sum of their sizes in bytes.

The remaining counts (D, C, U, and any others present) break the revision count down further by internal storage type.

changes()

T is the total number of changes and C is the number of committed changes.
L and LC give the changelist number and time stamp of the latest change and the latest committed change.
F and FC give the changelist number and time stamp of the first change and the first committed change.
A value of 0:0 means no such change exists, for example, on a server with no commit server configured.

users()

The number of users known to the server.

lastCalculated()

The UNIX time at which the server last recalculated these statistics.

encrypted()

The same statistics, encrypted so the values cannot be tampered with.

To hide sensitive output from unauthenticated users, use the dm.info.hide configurable.

Options

Option Description

-s

Shortened output: exclude information (for example, the workspace root) that requires a database lookup.

g-opts

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

None. Every user can run p4 info, whether a standard user, operator user, or a service user

Related commands

To read P4 Server’s help files

p4 help

To display P4 Proxy connection information

p4 proxy

To view version information for your P4 Server application

p4 -V