exportPolicyTemplates

Use the exportPolicyTemplates command to export the selected policy templates either to stdout or to the given output file. You specify the policy template to export in one of two ways:

  • The name of the policy template - you can further qualify this with type, sub-type and/or version information.

  • The type of the policy template - you can further qualify this type with sub-type and/or version.

    To determine the type and subtype of a policy template, select Policy Templates in the Navigator. The type and subtype for each policy template are displayed in the summary pane.

Command Syntax

btmcli exportPolicyTemplates 
              [[-n Name][-t Type] [-subType subType][-v TmplVersion]]| -exportAll
              [-o fileName]
              -s sphereUrl -l username:password
Name Long Name Description
-n -name The name of the policy template to export.
-t -type The type of the policy template to export.
-subType -- The sub-type of the policy template to export.
-v -version The version of the policy template to export.
-exportAll -- Specifies that all policy templates should be exported.
-o -outputFile Specifies a file into which the exported data is placed.
-s -sphereUrl The URL of the sphere.

http://hostname:port/btmcentral/sphere/

This flag is not required if you have set the AP_SPHERE_URL environment variable for your sphere.

-l -userLogin The username and password associated with the sphere, in the format: username:password. This set of credentials must belong to a user in the btmadmin role.

See Security Options in Accessing CLI Commands for information on furnishing login credentials.

You can encrypt passwords using the encryptPassword command.


Example

The following command exports all the policy templates to the output file MyPolicyTemplates

btmcli exportPolicyTemplates -exportAll -o C:\Home\MyPolicyTemplates
                             -s http://localhost:8080/btmcentral/sphere/
                             -l admin:abracadabra