Release and license information: adding or updating
License by standard users
The
Perforce
versioning service is licensed according to how many standard users it
supports. There are three types of
Perforce
users: standard
users, operator
users, and
service
users.
-
A
standard
user is a traditional user of Perforce.Standard users are the default, and each standard user consumes one Perforce license.
-
An
operator
user is intended for human or automated system administrators.An
operator
user does not require a Perforce license. -
A
service
user is used for server-to-server authentication, whether in the context of remote depots (see Remote depots and distributed development) or in distributed environments.Service users do not require licenses, but are restricted to automated inter-server communication processes in replicated and multi-server environments.
Limits for unlicensed use depend on the release
2016.1 and later | prior to 2016.1 |
|
|
License information
You can update an existing license file without stopping
Perforce
by using the p4 license
command. See
Adding or updating the license file.
- If the service is running, any user can use
p4 info
to view basic licensing information.
We recommend that you hide sensitive information from unauthorized users of p4 info
by setting the dm.info.hide configurable.
- Administrators
can use
p4 license -u
to obtain more detailed information about how many users and files are in use. - If the service is down, you can also obtain licensing information by
running
p4d -V
from the server root directory where thelicense
file resides, or by specifying the server root directory either on the command line (p4d -V -r
) or in theserver_root
P4ROOT
environment variable.
The server version is also displayed when you invoke p4d
-V
or p4 -V
.
Adding or updating the license file
When you receive your license file, its name might include the license host, an IP address, or other identifying information.
Rename the new license file to license.txt
.
If you have purchased Helix4Git in addition to Helix Core, you will receive:
- The email for Helix4Git, which contains the license file that enables both Helix Core and Helix4Git. You will install this license file.
- The email for Helix Core, contains a license file that does NOT enable Helix4Git. Do NOT install this license file, but do keep it for your records.
If your P4ROOT
directory has a file named license
, remove it.
To add or update the license file, use one of the following: | Valid for ... |
---|---|
Copy the license file to the P4ROOT directory. |
|
Issue the p4 license command. |
Server |
Use P4Admin. |
Server |
License file in the P4ROOT directory
- Copy the new license file over the existing license in the
P4ROOT
directory. - Determine whether you need to restart the server or not.
Stop and restart the server if ... | No server restart required if ... |
---|---|
Any of the following are true:
Additional information is available in the Knowledge Base article P4D: Installing A New License File. |
All of the following are true:
|
If you need to stop and restart the server ...
Windows |
Linux/UNIX/Mac |
|
---|---|---|
To stop the server |
p4 -u User -p Server:Port admin stop |
|
To restart the server |
Open an administrator command prompt and enter |
Run the Perforce Server startup script you usually use. |
p4 license command
If a valid license file is already in the server root directory, as a super
user, you can update it.
-
Display your current license with
p4 license -o
. -
Install your new license with
cat license.txt | p4 license -i
orp4 license -i < license.txt
.TipIf the server IP address or port number has changed in the license file, the p4 license command will not work. For example, if the IP address changed in the new license file, you will receive the following message: "
Server license IPaddress changed, cannot proceed.
" In this case, stop and restart the server as detailed above.If p4 info does not indicate a license file update, stop and restart the server instance, then check the log file.
TipWe recommend that you hide sensitive information from unauthorized users of
p4 info
by setting the dm.info.hide configurable.
Helix Visual Client (P4V) Administration tool
If the IP address or port number has not changed,
-
Launch P4V as a Helix server superuser.
-
Choose Tools > Administration.
-
On the Administration Home page, click Load new license file and browse to the license file on your local disk.
-
After successful installation, verify that the Administration tool Home page is updated with the new license information.
For more information, see the Support Knowledgebase article, "Moving the Perforce Server".
Your search for returned result(s).