Software AG Products 10.5 | Using CentraSite | Policy Management | Managing Design-Time and Change-Time Policies through Command Line Interface | Adding Custom Action Category
 
Adding Custom Action Category
Pre-requisites:
To add a custom action category through CentraSite Command Line Interface, you must have the CentraSite Administrator role.
CentraSite provides a command tool named set Action Category for this purpose.
*To add a custom action category
*Run the command set Action Category.
The syntax is of the format C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd set Action Category [-url <CENTRASITE-URL>] -user <USER-ID> -password <PASSWORD> -actioncategory <ACTION-CATEGORY> [–policytype <POLICY-TYPE>]
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.
ACTION-CATEGORY
Name of the action category. If the category name contains white spaces, enclose the name with "".
POLICY-TYPE
(Optional). The type of policy definition.
Supported values are - Design/Change-Time, Run-Time.
If a value is not specified, CentraSite uses the default value Design/Change-Time.
Important:
Once set, you cannot change the value of this parameter.
Example (all in one line):
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd set Action Category -url http://localhost:53307/CentraSite/CentraSite –user Administrator –password manage –actioncategory "Custom Action Category" –policytype Design/Change-Time
The response to this command could be:
Executing the command : set Action Category

Action Category named Custom Action Category is created successfully

Successfully executed the command : set Action Category