Software AG Products 10.7 | Using CentraSite | Policy Management | Managing Design-Time and Change-Time Policies through Command Line Interface | Fetching Action Template Configuration File
 
Fetching Action Template Configuration File
Pre-requisites:
To fetch the configuration file that was used for constructing an action template through CentraSite Command Line Interface, you must have the CentraSite Administrator role.
CentraSite provides a command tool named get Action Template for this purpose.
*To fetch the configuration file of an action template
*Run the command get Action Template.
The syntax is of the format: C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd get Action Template [-url <CENTRASITE-URL>] -user <USER-ID> -password <PASSWORD> -id <ID> [-file <CONFIG-FILE>]
The input parameters are:
Parameter
Description
CENTRASITE-URL
(Optional). The URL of the CentraSite registry. For example, http://localhost:53307/CentraSite/CentraSite.
USER-ID
The user ID of a registered CentraSite user who has the CentraSite Administrator role. For example, Administrator.
PASSWORD
The password for the registered CentraSite user identified by the parameter USER-ID.
ID
(Mandatory). The ID of the action template whose configuration file you want to retrieve. You can specify the UDDI key of the template using an optional prefix uddi:.
For example:
uddi:95f79c00-52a9-11e4-969c-d398081308d4
CONFIG-FILE
(Optional). Name of the output file to download the configuration file for action template.
Note:
The default location is <CentraSiteInstall_Directory>/utilities.
Examples (all in one line):
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd get Action Template -url http://localhost:53307/CentraSite/CentraSite –user Administrator –password manage -id uddi:95f79c00-52a9-11e4-969c-d398081308d4 -file D:\temp\Custom_Action_Template_Config.xml
The response to this command could be:
Executing the command : get Action Template

Action Template named Custom Action Template is downloaded successfully
to D:\temp\Custom_Action_Template_Config.xml

Successfully executed the command : get Action Template