Version:

MarketplaceSupport

Real-time Persistent Cache Refresh Commands

This chapter outlines commands used to configure Real-time Persistent Cache.

Real-time persistent cache refresh commands can be performed on the Directory Namespace tab and PCache Monitoring tab in the Main Control Panel.

Real-time Persistent Cache Refresh Command

Several commands in this chapter contain the argument connectorname. For persistent cache refreshes, the value for this argument can be found in the Main Control Panel > PCache Monitoring tab. Select the cache under the PCaches node on the left. Click the connector. Note the Connector Name value. An example is shown below.

Connector name


change-connector-state

This command starts or stops a specified connector in a real-time persistent cache refresh.

Usage
change-connector-state [-connectorname <connectorname>] [-state <state>]

Command Arguments:

- connectorname <connectorname>
The name of the real-time persistent cache connector.

- state <state>
Indicates that the connector be started or stopped. Accepted values are “start” and “stop”.

REST (ADAP) Example

In the following example, a request is made to start a real-time persistent cache refresh connector.

https://<rli_server_name>:8090/adap/util?action=vdsconfig&commandname=change-connector-state&connectorname=o_derby_pcache_primary__so_o_derby__northwind_app_employees&state=start

empty-queues

This command empties the queue of a specified real-time persistent cache refresh, identified by a pipeline ID.

Usage
empty-queues -pipelineid <pipelineid> [-mode <mode>]

Command Arguments:

- pipelineid <pipelineID>
[required] The identifier of the pipeline. Run the list-topologies command to locate the pipelines identifiers for each topology.

- mode <mode>
This property indicates which queue to empty. Accepted values are: QUEUE_ONLY, DEAD_LETTER_QUEUE, or ALL. If mode is not passed in the command, ALL is the default. For persistent cache refreshes, mode is typically left empty. For global synchronization queues, you may want to only empty the main queue or the dead letter queue.

REST (ADAP) Example

In the following example, a request is made to empty a cache’s queue.

https://fid:8090/adap/util?action=vdsconfig&commandname=empty-queues&pipelineid=o_db_pcache_primary__so_o_db__northwind_app_employees

reset-cursor

This command resets the cursor for a specified persistent cache refresh.

**Usage(())
reset-cursor [-connectorname <connectorname>]

Command Arguments:

- connectorname <connectorname>
The name of the persistent cache connector.

REST (ADAP) Example

In the following example, a request is made to reset the cursor of a persistent cache.

https://<rli_server_name>:8090/adap/util?action=vdsconfig&commandname=reset-cursor&connectorname=o_derby_pcache_primary__so_o_derby__northwind_app_employees

list-agents

Agents manage connectors used for real-time persistent cache refreshes. Persistent Cache Refresh Agents are started automatically once a persistent cache with real-time refresh is configured. Agents can run on any type of RadiantOne cluster node (follower or leaders) and there is only one agent running at any given time in a RadiantOne cluster.

Agents are also used for CPLDS sync processes. CPLDS Agents run on follower-only cluster nodes and multiple agents can be running at the same time. The more agents the better in order to distribute the load. For more details, see the RadiantOne CPLDS Guide.

This command lists the currently running agents, both the ones used for persistent cache refresh and the ones used for CPLDS.

Usage
list-agents

Command Arguments
No command arguments are required.

REST (ADAP) Example

In the following example, a request is made to list the agents that are currently running.

https://<rli_server_name>:8090/adap/util?action=vdsconfig&commandname=list-agents

stop-agent

Agents manage connectors used for real-time persistent cache refreshes. Persistent Cache Refresh Agents are started automatically once a persistent cache with real-time refresh is configured. Agents can run on any type of RadiantOne cluster node (follower or leaders) and there is only one agent running at any given time in a RadiantOne cluster.

Agents are also used for CPLDS sync processes. CPLDS Agents run on follower-only cluster nodes and multiple agents can be running at the same time. The more agents the better in order to distribute the load. For more details, see the RadiantOne CPLDS Guide.

This command stops an agent specified by name.

Usage
stop-agent [-agentname <agentname>]

Command Arguments:

- agentname <agentname>
The name of the agent to stop.

REST (ADAP) Example

In the following example, a request is made to stop an agent.

https://<rli_server_name>:8090/adap/util?action=vdsconfig&commandname=stop-agent&agentname=agent_fid_sd_agent__event_driven_PID_3788

stop-all-agents

Agents manage connectors used for real-time persistent cache refreshes. Persistent Cache Refresh Agents are started automatically once a persistent cache with real-time refresh is configured. Agents can run on any type of RadiantOne cluster node (follower or leaders) and there is only one agent running at any given time in a RadiantOne cluster.

Agents are also used for global synchronization and CPLDS sync processes. CPLDS Agents run on follower-only cluster nodes and multiple agents can be running at the same time. The more agents the better in order to distribute the load. For more details on CPLDS, see the RadiantOne CPLDS Guide. For more details on global synchronization, see the RadiantOne Global Sync Guide.

This command stops all agents.

Usage
stop-all-agents

Command Arguments
No command arguments are required.

REST (ADAP) Example

In the following example, a request is made to stop all agents.

https://<rli_server_name>:8090/adap/util?action=vdsconfig&commandname=stop-all-agents

stop-all-local-agents

Agents manage connectors used for real-time persistent cache refreshes. Persistent Cache Refresh Agents are started automatically once a persistent cache with real-time refresh is configured. Agents can run on any type of RadiantOne cluster node (follower or leaders) and there is only one agent running at any given time in a RadiantOne cluster.

Agents are also used for global synchronization and CPLDS sync processes. CPLDS Agents run on follower-only cluster nodes and multiple agents can be running at the same time. The more agents the better in order to distribute the load. For more details on CPLDS, see the RadiantOne CPLDS Guide. For more details on global synchronization, see the RadiantOne CPLDS Guide.

This command stops all local agents running on the machine from which the command was launched.

Usage
stop-all-local-agents

Command Arguments:
No command arguments are required.

REST (ADAP) Example

In the following example, a request is made to stop all local agents.

https://<rli_server_name>:8090/adap/util?action=vdsconfig&commandname=stop-all-local-agents


configure-real-time-pcache-sync-topology

This command configures a persistent cache with a real-time refresh strategy.

Usage
configure-real-time-pcache [-namingcontextdn ]

Command Arguments:

- namingcontextdn <namingcontextdn>
The naming context DN of the persistent cache to configure as a real-time refresh.

REST (ADAP) Example

In the following example, a request is made to configure a persistent cache with real-time refresh for a naming context of o=derby.

https://<rli_server_name>:8090/adap/util?action=vdsconfig&commandname=configure-real-time-pcache&namingcontextdn=o=derby

configure-connector-type

This command configures a connector’s type.

Usage configure-connector-type [-connectorname ] [-connectortype ] [-skipconfirmation]

Command Arguments:

- connectorname <connectorname>
The name of the persistent cache connector.

- connectortype <connectortype>
The connector type. Possible values are: CHANGELOG, AD_DIRSYNC, AD_USN, AD_HYBRID, DB_TIMESTAMP, DB_COUNTER, DB_TRIGGER, SCIM2, SCIM1, GRAPHAPI, MGRAPH, OKTA, KAFKA, KAFKA_GG, PERSISTENT_SEARCH, LDAP_APPLY, SCIM2_APPLY

- skipconfirmation
Bypasses the confirmation when deconfiguring the connector. If this argument is omitted, the command requires confirmation before deconfiguring the connector.

REST (ADAP) Example

In the following example, a request is made to change a connector’s type.

https://<rli_server_name>:8090/adap/util?action=vdsconfig&commandname=configure-connector-type&connectorname=o_derby_pcache_primary__so_o_derby__northwind_app_employees&connectortype=db_timestamp

list-connectors

This command lists the connector names for a specified real-time cache refresh.

Usage:
list-connectors -namingcontextdn

Command Arguments:

- namingcontextdn <namingcontextdn>
[required] The DN of the naming context (must have a persistent cache).

REST (ADAP) Example

In the following example, a request is made to list connector names a persistent cache for cn=Accouting,ou=Virtual Groups,ou=AllProfiles.

https://<rli_server_name>:8090/adap/util?action=vdsconfig&commandname=list-connectors&namingcontextdn=cn=Accouting,ou=Virtual Groups,ou=AllProfiles

list-connector-properties

This command lists properties and their values for a connector.

Usage
list-connector-properties [-connectorname <connectorname>]

Command Arguments:

- connectorname <connectorname>
The name of the persistent cache connector.

REST (ADAP) Example

In the following example, a request is made to list connector configuration properties.

https://<rli_server_name>:8090/adap/util?action=vdsconfig&commandname=list-connector-properties&connectorname=o_derby_pcache_primary__so_o_derby__northwind_app_employees

get-connector-property

This command gets a property for a connector configuration.

Usage
get-connector-property [-connectorname <connectorname>] [propertyid <propertyid>]

Command Arguments:

- connectorname <connectorname>
The name of the persistent cache connector.

- propertyid <propertyid>
The connector configuration property ID.

REST (ADAP) Example

In the following example, a request is made to display the value for a connector’s Max Retries On Error property.

https://<rli_server_name>:8090/adap/util?action=vdsconfig&commandname=get-connector-property&connectorname=o_derby_pcache_primary__so_o_derby__northwind_app_employees&propertyid=maxRetriesOnError

set-connector-property

This command sets a property for a connector configuration. Run the list-connector-properties command first to get the propertyid for the ones you want to update.

Usage
set-connector-property -connectorname <connectorname> -propertyid <propertyid>

- propertyvalue <propertyvalue>

Command Arguments:

- connectorname <connectorname>
[required] The name of the persistent cache connector.

- propertyid <propertyid>
[required] The connector property ID.

- propertyvalue <propertyvalue>
[required] The connector property value.

REST (ADAP) Example

In the following example, a request is made to set a property for a connector's configuration.

https://<rli_server_name>:8090/adap/util?action=vdsconfig&commandname=set-connector-property&connectorname=o_derby_pcache_primary__so_o_derby__northwind_app_employees&propertyid=maxRetriesOnError&propertyvalue=10

file-set-connector-properties

This command sets multiple connector configuration properties with a text file.

Usage
file-set-connector-properties [-connectorname <connectorname>] [-propertyfilename <propertyfilename>]

Command Arguments:

- connectorname <connectorname>
The name of the persistent cache connector.

- propertyfilename <propertyfilename>
The full path to a file containing the connector configuration properties.

"retryIntervalOnConnectionError" : 10001, "retryIntervalOnCommitError" : 10001, "retryIntervalOnPartialCommitError" : 10001, "queueCommitDelay" : 10001, "queueCommitSize" : 1001}**

REST (ADAP) Example

In the following example, a request is made to set connector configuration properties using a text file named ConnectorConfig.txt.

https://<rli_server_name>:8090/adap/util?action=vdsconfig&commandname=file-set-connector-properties&commandname=file-set-connector-properties&connectorname=o_derby_pcache_primary__so_o_derby__northwind_app_employees&propertyfilename=c:/radiantone/ConnectorConfig.txt

execute-db-changelog-scripts

This command executes DB changelog configure or deconfigure scripts for a DB connector.

Usage
execute-db-changelog-scripts -connectorname <connectorname> - namingcontextdn <namingcontextdn> [-deconfigure]

Command Arguments:

- connectorname <connectorname>
[required] The name of the persistent cache connector.

- namingcontextdn <namingcontextdn>
[required] The DN of the naming context (must have a persistent cache).

- deconfigure
If this option is specified, deconfigure scripts are run instead of configure scripts.

REST (ADAP) Example

In the following example, a request is made to execute deconfigure logs for a DB connector.

https://<rli_server_name>:8090/adap/util?action=vdsconfig&commandname=execute-db-changelog-scripts&namingcontextdn=ou=hr,o=examples&connectorname=ou_hr_o_examples_pcache_primary__so_ou_hr_o_examples__examples_app_hr&deconfigure

fix-cacherefresh

This command attempts to refresh the cache on entries where errors occurred during the cache refresh process. The command searches the cn=cacherefreshlog with a filter of (&(changenumber>=0)(status=2)). The changenumber and status can be defined in the command arguments. The command invokes an “action=synchronizecache” operation for each entry returned from the search, which attempts to update them in the persistent cache.

Usage:
fix-cacherefresh [-changenumber <changenumber>] [-instance <instance>] [-status <status>] [-verbose]

Command Arguments:

- changenumber <changenumber>
The changenumber used to search the 'cn=cachefreshlog'. Only entries equal or greater to the given changenumber will be processed. The default value is 0.

- instance <instance>
The name of the RadiantOne instance. If not specified, the default instance named vds_server is used.

- status <status>
The value of the 'status' attribute for the entries to be refreshed. By default, all entries with a status value equal to 2 are refreshed.

- verbose
Indicates if the command should log details of its progress.

REST (ADAP) Example

In the following example, a request is made to fix a cache refresh.

https://<rli_server_name>:8090/adap/util?action=vdsconfig&commandname=fix-cacherefresh&changenumber=1&status=2&verbose

IN THIS PAGE