Using the TppConfiguration command line tool
Palo Alto Networks Trust Protection Foundation includes a command-line utility that allows system admins to perform installation and configuration actions through the command line or through script files. It provides administrators with greater flexibility and automation capabilities when managing the platform, especially when dealing with multiple environments or large-scale deployments.
The utility is called TppConfiguration.exe and exists in the installation directory, in the following location (assuming you used the default installation directory):
C:\Program Files\Venafi\Platform\TppConfiguration.exe
This utility requires you to use an elevated command prompt. For information on customizing the colors of the tool, see Customize console colors for command-line tools.
- From the Start menu, search for
CMD. - In the search results, right-click on Command Prompt, and choose Run as administrator.
Using the TppConfiguration command, administrators can:
-
Script the installation or upgrade of Palo Alto Networks Trust Protection Foundation on servers.
-
Update the database connection information for a Palo Alto Networks Trust Protection Foundation server.
-
Enable access to the MMC snapins for the current Windows user.
-
Update the company name or installation type of a server.
-
Uninstall Palo Alto Networks Trust Protection Foundation.
-
Update the HSM PIN, both on the server and on the HSM connectors that use it.
When using the command line utility to install, configure, upgrade, or uninstall Trust Protection Foundation, there are a number of allowed switches. This utility requires you to use an elevated command prompt.
The command line argument is:
TppConfiguration.exe -<switch>=<value> -<switch2>=<value>
Some switches require master admin authentication. They are noted in the table below. When you use a switch that requires master admin authentication, you can either:
- Provide the
-usernameand-passwordinline in the command. (Required if you are scripting the command.) - Wait until prompted by the application to enter the master admin credentials.
TPPConfiguration syntax
-
The command line tool uses a flexible syntax. Simply run the
TppConfigurationprogram with parameters to perform specific tasks.For example,
TppConfiguration -errorcodeswill output a list of return codes and a description of the error. Neither commands or parameters are case sensitive, meaningtppconfiguration -errorcodesandTppConfiguration -errorcodesandTPPCONFIGURATION -ERRORCODESare all interpreted the same. -
To perform specific tasks, type a parameter directly after typing the
TppConfigurationcommand. For instance,Tpponfiguration -enablemmc. -
When running the program with no parameters, you will see the inline help. There, you will see that some characters in parameter names are bolded and some are not. The bolded characters are a short-cut syntax that makes it quicker and easier to type commands. For example, the
addparameter is displayed in the inline help as-add. The bolded part, in this case-a, is the short cut.This short-cut syntax can make it quicker and easier to type commands; however, to ensure compatibility with future versions of TPPConfiguration, you should use full parameter names when scripting.
TIP The hyphen (
-) is technically optional, but is recommended for forwards compatibility. -
Command options are additional modifiers that provide further instructions or information to the TPPConfiguration command being executed. For example,
-username=<master-admin-user>is used to indicate the username of the master administrator account needed to perform the action. The tool accepts the following operators:=,:, and(space). Thus the following examples are all treated the same:-username=venafi,-username:venafi, and-username venafiNOTE With a space,
-hsmpintakes the next argument as the PIN unless that argument is one of the options that go with it:-username,-password,-logor-help. So-hsmpin -username:venafileaves the PIN unset and prompts for it, rather than trying-username:venafiagainst the HSM.
Combining these principles, the following commands are all interpreted the same:
TppConfiguration -enablemmc -username=george.washington -password=xxxxxx
tppconfiguration enablemmc username george.washington -password xxxxxx
TppConfiguration.exe -ENABLEMMC -username=george.washington password=xxxxxx
Configuration switches for TppConfiguration.exe command line tool
Click a column header to sort by that column.
|
Parameter |
Type |
Auth1 |
Description |
|---|---|---|---|
|
|
Common Options | No | Show all error codes that may be returned. |
|
|
Common Options |
Yes |
Password to decrypt the answer file. |
|
|
Common Options | No | User name of local Palo Alto Networks Trust Protection Foundation admin account. |
|
|
Configuraiton |
Yes |
Exports the default software key. (Requires |
|
|
Configuration |
No |
Allows changing the SQL database owner account connection information from the command line. You can use this, for example, for automated updating of the SQL database owner account password. For details on the connection string and its proper syntax, see Obtaining the SQL database connection string. |
|
|
Configuration |
Yes |
Imports the default software key. (Requires |
|
|
Configuration |
No |
Allows changing the SQL operational account connection information from the command line. You can use this, for example, for automated updating of the SQL operational account password. For details on the connection string and its proper syntax, see Obtaining the SQL database connection string. |
|
|
Installation |
No |
Runs the installer in the mode that adds this Venafi server to an existing Trust Protection Foundation server cluster (servers that share a single database). |
|
|
Installation |
No |
Runs the installer (fresh install if DB is empty; upgrade if DB is not empty) with the configuration options specified in the answer file, and supplies the password to decrypt the answer file. For example, if the answer file is located at
NOTE The quotation mark |
|
|
Installation |
No |
Allows you to override the default location of the log file where the results of the configuration process are stored. If you want to save the log file at
|
|
|
Installation |
No |
Uninstalls Trust Protection Foundation from the Trust Protection Foundation server by doing the following:
This switch is used by Windows when you use Program Features to uninstall Trust Protection Foundation. NOTE This does not remove the files or Windows Services installed by the .msi. It only removes the websites and registry entries. |
|
|
Miscellaneous |
Yes |
Sets the company name for the system. |
|
|
Miscellaneous |
Yes |
Decrypts the specified XML file. (Requires |
|
|
Miscellaneous |
Yes |
Sets the deployment type for the system. Allowed values for
|
|
|
Miscellaneous |
Yes |
Encrypts the specified XML file. (Requires |
|
|
Miscellaneous |
No |
Shows a help file in the command line window, describing these features and settings. |
|
|
Recovery |
Yes |
Provides the necessary grants to the Palo Alto Networks database for the specified user to be an operational database service accounts. This is helpful when using Windows Authentication and users need to launch WebAdmin or Palo Alto Networks Support Tool. |
|
|
Recovery |
Yes |
Requests to change the service account password of an identity connector. |
|
|
Recovery |
Yes |
Adds or replaces MMC access grant for the current user. Use |
|
|
Recovery |
Yes |
Updates the HSM PIN (the partition credential) on this server and on every HSM connector that logs in to this server's HSM token through the same PKCS#11 library. Use this switch after you change the PIN on the HSM partition. Omit the PIN, as Trust Protection Foundation tests the new PIN against the HSM before it stores anything. If the HSM refuses the PIN, nothing changes and the command returns response code 403. Every refused attempt counts toward the HSM's login lockout, so confirm the PIN before you run the command again. Restart the Trust Protection Foundation services on the server afterward. In a cluster, run the command on every server. NOTE Starting in 26.2, this switch requires the user name and password of a local master administrator. Provide them with |
|
|
Recovery |
Yes |
The common name of an identity connector object. |
|
|
Trust |
No |
Allows you to remove a DLL from being a trusted resource. |
|
|
Trust |
No |
The path to a custom DLL, allowing it to be added as a trusted resource. For custom development modules, this feature adds the signature of the custom module as trusted resource so the custom features can be added to Trust Protection Foundation. |
You can combine the switches as needed. For example, here is a command line argument that installs the software on this Palo Alto Networks Trust Protection Foundation server, while connecting to an existing database using a configuration file, and overwriting the default log file location:
TppConfiguration.exe -install=C:\answerfile.xml -add -password=Washington -log=C:\Temp\VenafiLog.txt