CentraSite 10.7 | CentraSite User’s Guide | Runtime Governance | Gateway Management | Managing Gateways through Command Line Interface | Adding a Custom Gateway
 
Adding a Custom Gateway
 
Configuration File
Pre-requisites:
To create a gateway through the CentraSite Command Line Interface, you must have the CentraSite Administrator role.
CentraSite provides a command tool named set gateway for this purpose.
*To create a gateway
*Run the command set gateway.
The syntax is of the format: C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd set gateway -user <USER-ID> -password <PASSWORD> [-url <CENTRASITE-URL>] -file <CONFIG-FILE> -gatewayPassword <GATEWAY-PASSWORD> [-csPassword <CS-PASSWORD>]
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 CentraSite user identified by the parameter USER-ID.
CONFIG-FILE
Name of the configuration file which contains the gateway parameters. For additional details, see Configuration File.
GATEWAY-PASSWORD
The password that CentraSite uses to communicate with the gateway.
CS-PASSWORD
(Optional). The password that the gateway uses to communicate with CentraSite. If this parameter is not specified, the password of the user logged in is used.
Example (all in one line):
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd set gateway -user Administrator -password manage -url http://localhost:53307/CentraSite/CentraSite -file c:\tmp\mediator-config.xml -gatewayPassword manage
The response to this command could be:
Executing the command : set gateway
Gateway DevMediator created

Successfully executed the command : set gateway
Note:
To update an existing gateway in CentraSite, you can use the set gateway command and provide an edited configuration file as input to the command along with the key that identifies the gateway you want to update. The gateway key can be obtained by using the list gateways command.