Helix Core Server Administrator Guide: Fundamentals (2018.2)

Adding or updating the license file

Note

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.

Important

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.

see License file in the P4ROOT directory

  • Server
  • Any replica that you want to enable to become a master through failover

Issue the p4 license command.

see p4 license command

Server

Use P4Admin.

see Helix Visual Client (P4V) Administration tool

Server

License file in the P4ROOT directory

  1. Copy the new license file over the existing license in the P4ROOT directory.
  2. 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:

  • Server's IP address changes
  • Port number in the license file changes
  • You are adding a server license to a previously unlicensed replica to prepare for a possible failover

Additional information is available in the Knowledge Base article P4D: Installing A New License File.

All of the following are true:

  • Server's IP address remains as-is
  • Port number in the license file remains as-is
  • Any unlicensed replica remains unlicensed, and thus is not prepared to become the new master in case of a failover

    Note

    An edge server is a filtered replica and therefore not eligible to be a standby server.

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
net start perforce
or enter services.msc, go to the Services Management Console,
find Perforce, and select Start.

Run the Perforce Server startup script you usually use.
If you do not have a Perforce startup script, the command to start the Perforce Server
in Daemon Mode in the specified P4ROOT location might resemble the following:
p4d -r /specify/path/to/P4ROOT -d

p4 license command

If a valid license file is already in the server root directory, as a super user, you can update it.

  1. Display your current license with p4 license -o.

  2. Install your new license with cat license.txt | p4 license -i or p4 license -i < license.txt.

    Tip

    If 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.

    Tip

    We 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,

  1. Launch P4V as a Helix Server superuser.

  2. Choose Tools > Administration.

  3. On the Administration Home page, click Load new license file and browse to the license file on your local disk.

  4. After successful installation, verify that the Administration tool Home page is updated with the new license information.

Tip

For more information, see the Support Knowledgebase article, "Moving the Perforce Server".