CentraSite Documentation : Working with the CentraSite Business UI : Managing Governance Rules : Using CentraSite with webMethods API-Portal : Retry Mechanism : Resending Undelivered Access Tokens : Resending Access Tokens from the Command line
Resending Access Tokens from the Command line
You can also resend the undelivered tokens by executing the following command using the command line interface CentraSiteCommand.cmd (Windows) or CentraSiteCommand.sh (UNIX) of CentraSiteCommand. The tool is located in <CentraSiteInstallDir>/utilities.
The syntax of the command is:
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd send AccessTokens [-url <CENTRASITE-URL>] -user <USER-ID>-password<PASSWORD>[-api <API>] [-apiPortal <APIPORTAL>] [-accessToken <ACCESSTOKEN>]
Note:  
To resend the undelivered access tokens using send AccessTokens command, provide values for any one of the parameters:
*-api
*-apiPortal
*-accessToken
If you do not specify values for any of the three parameters, CentraSite resends all the undelivered tokens to the respective API-Portals.
The input parameters are:
Parameter
Description
-url
(Optional) The URL of the CentraSite registry. Default value is http://localhost:53307.
-user
The user ID of a registered CentraSite user. For example, a user who has the CentraSite Administrator role.
-password
The password for the registered CentraSite user identified by the parameter -user.
-api
Name or ID (uuid) of the API virtual service. For multiple services, use a comma to separate the values. All values should either be the names or the IDs of the services, not a combination of both.
-accessToken
Name or ID (uuid) of the access tokens to be resent. To resend multiple tokens to the API-Portal, use a comma to separate the values. All values should either be the names or the IDs of the access tokens, not a combination of both.
-apiPortal
Name or ID (uuid) of the API-Portal to which the tokens have to be resent. To resend tokens to multiple API-Portals, use a comma to separate the values. All values should either be the names or the IDs of the API-Portals, not a combination of both.
Examples:
Providing multiple IDs
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd send AccessTokens -url http://localhost:53305/CentraSite/CentraSite -user Administrator -password manage -api uddi:5f0ad20e-9bdd-11e4-9184-dc550a8f1855, 9f0ad41e-9crd-11e4-9172-dc550a8f2345
Providing multiple service names
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd send AccessTokens -url http://localhost:53305/CentraSite/CentraSite -user Administrator -password manage -api ApprovalVirtualService,SearchVirtualService
If the service, access tokens, or the API-Portal names contain white spaces, enclose the names within “”.
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd send AccessTokens -url http://localhost:53305/CentraSite/CentraSite -user Administrator -password manage -api “Approval Virtual Service, Search Virtual Service”
Copyright © 2005-2015 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback