Using TppTool from the command line and script files
TppTool is a command-line utility that lets system administrators (and in some cases schema administrators) perform Venafi Platform actions through the command line or 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.
Using the TppTool command, administrators can:
-
Export and import various components of the Venafi Platform configuration, such as objects, attributes, policies, and permissions. This makes it easier to copy settings between environments, back up and restore specific configurations, and generate reports on the current system setup. Please note that TppTool is available in addition to Schematool.exe, which is still available for backward compatibility.
-
Manage the recycle bin, including restoring accidentally deleted objects, permanently deleting all objects or specific items from the recycle bin, and scheduling automatic purge and deletion tasks. Please note that these tasks can also be performed by using Venafi Configuration Console. See Venafi Recycle Bin. TppTool replaces the TPPRecycleBin.exe command.
-
Interact with and manage the Daily Tasks engine, which controls settings across the platform and determines when they will run. TppTool replaces the TPPDailyTasks.exe command.
-
Users with the Schema Administrator role can export and import Venafi Platform objects using TppTool, as long as they have permissions to the objects.
TppTool syntax
-
The TppTool program is located at:
[InstallDir]\Platform\TppTool.exe
. -
To perform specific tasks, type a parameter directly after typing the
TppTool
command. For instance,TppTool -version
. Please note that commands and parameters are not case-sensitive, meaningTppTool -version
andTPPTOOL -VERSION
are interpreted the same. -
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
version
parameter is displayed in the inline help as-version
. The bolded part, in this case-v
, 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 TppTool, 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 TppTool command being executed. For example,
-cryptpw=<password>
is used to provide the password for encrypting and decrypting XML files, and-username=<name>
is used to provide a valid username that is allowed to complete the operation. The tool accepts the following operators:=
,:
, and-u=venafi
,-u:venafi
, and-u venafi
Combining these principles, the following commands are all interpreted the same:
TppTool -startrotation -platform=Venafi1 -connector=hsm1
TPPTOOL.exe startrotation platform Venafi1 connector hsm1
tpptool startrotation -platform:Venafi1 -conn=hsm1
TppTool parameters and options
Click a header to sort by that column.
Parameter | Type | Description |
---|---|---|
|
Common options |
Provide a password (prompted if omitted). NOTE The quotation mark |
|
Common options | Provide a username. |
|
Daily tasks | Trigger Daily Tasks action. |
|
Daily tasks | If specified, any applicable notifications will be resent when triggering Daily Tasks action. |
|
Import & export options | Provide the password for encrypting and decrypting XML files. Export will be in cleartext if not provided. |
|
Key Rotation | If specified, the connector the new key should be stored on. If omitted, the connector of the existing system protection key will be used. |
-disablesw
|
Key Rotation | When rotating from software to hardware, disable the software key after rotation is complete. |
|
Key Rotation | The name of the new key. The key must not exist. It will be created on the specified connector during rotation. |
|
Key Rotation | The name of the Venafi Platform server that should perform the key rotation. If omitted, the first available server is used. |
|
Key Rotation | Create a request to rotate the system protection key. Requires -keyname . You can optionally specify the -connector and -platform . |
|
Key Rotation | Abort any outstanding key rotation requests. |
-column
|
Recycle Bin options | For -show : Display contents in columns. |
-guid=<bin-guid>
|
Recycle Bin options | For -purge /-restore : The GUID of the item to purge or restore. |
|
Recycle Bin tasks | Perform the recycle bin action. |
-contents
|
Recycle Bin tasks | Display the contents of the recycle bin. |
-empty
|
Recycle Bin tasks | Empty the recycle bin. |
|
Recycle Bin tasks | Purge a deleted item from the recycle bin. |
|
Recycle Bin tasks | Restore a deleted item from the recycle bin. |
|
Recycle Bin tasks | Display information about pending or running recycle bin tasks and actions. |
|
Recycle Bin tasks | Start the nightly recycle bin automatic deletion action. |
|
Recycle Bin tasks | Start the nightly recycle bin purge action. |
|
Recycle Bin tasks | Stop the nightly recycle bin automatic deletion action. |
|
Recycle Bin tasks | Stop the nightly recycle bin purge action. |
|
Schema export |
Export children of children as well. |
|
Schema export |
Only export objects of classes in the list (default: all classes). |
-dn=<dn1,dn2>
|
Schema export |
Only export the DNs in the list (default: \VED\Policy). |
|
Schema export |
Export schema to file <xmlfile>. |
|
Schema export |
Only export specified subsystems:
Specify one or more subsystems. For example: |
|
Schema import |
Import schema from file <xmlfile>. |
|
Schema information |
Display the current schema version. |