Description:
The solution explains the usage of ldconfig and agentctrl for remote Agent configuration control.
Solution:
To load, remove, and verify agent configuration remotely, use the following command line utilities that are available on every computer that has CA NSM System Agents installed.
In this example the scriptAgt is used.
- To create a configset from remote node REMOTENODE for agent scriptAgt
- To load a configset to remote node REMOTENODE for agent scriptAgt
Run the command: ldconfig -h REMOTENODE scriptagt.config
- To load multiple different configsets to remote node REMOTENODE for agent scriptAgt
- You must use unique CONFIGSET Names
Example: #CONFIGSET scriptAgt:scriptAgtconfig1
#CONFIGSET scriptAgt:scriptAgtconfig2
- After loading each configset, verify the proper existence on REMOTENODE:
C:\>agentctrl -h REMOTENODE scriptAgt PRINT:ConfigSet:*
scriptAgt:scriptAgtconfig2
scriptAgt:scriptAgtconfig1
- To remove a configset from remote node REMOTENODE for agent scriptAgt
Run the command: ldconfig -r -h REMOTENODE scriptAgt:scriptAgtconfig1
- To restart scriptAgt for REMOTENODE with new configset
Run the following commands:
servicectrl stop --name=scriptAgt --remote=REMOTENODE
servicectrl start --name=scriptAgt --remote=REMOTENODE --options="-c scriptAgtconfig2"