If a MPX Cache Agent is running as a service, you can start and stop it manually using the Control Panel Services utility. Click to see the list of services.
Using the same utility, you can change the MPX Cache Agent service to run automatically when you start Microsoft Windows.
You can also control the MPX Cache Agent service from the command line by running the CacheAgentService.exe. Use any of the following syntaxes:
CacheAgentService -start [ configFile ] [ -log logFile ] [ -verbose ]
CacheAgentService -register [ Manual | Auto] [ configFile ] [ -dependson list ] [ -log logFile ] [ -name serviceName ] [ -verbose ]
CacheAgentService -unregister
The default configuration file is CacheAgentConfig.xml. If you use multiple configuration files, each one must specify unique values for CachePath and RequestPort so that MPX Cache Agent services do not interfere with each other’s operation.
Specifies service dependencies for the new MPX Cache Agent service. The list must be a quoted, space-separated list of internal (not display) names of the services on which the MPX Cache Agent service will depend. (A service’s internal name is its registry key within the Microsoft Windows registry.)
The most common dependency for a MPX Cache Agent is to make it dependent on the Message Broker service running on the same machine. The Message Broker service’s display name is typically ActiveMQ Message Broker for CM Hub, but its internal name is typically ActiveMQMessageBroker.
Consequently, to make a MPX Cache Agent depend on the Message Broker service on the same computer you would use:
-dependson ActiveMQMessageBroker
Causes another more detailed log to be generated. It defaults to CacheAgentService-debug.log.
Below is an example command-line to register an auto-start MPX Cache Agent service with the name “Prod1 Root CA”, dependent on the ActiveMQ MPX Message Broker, with the default log file name, and verbose logging enabled:
CacheAgentService -register Auto c:\CAConfigs\Prod1RootCA.xml -dependson "ActiveMQMessageBroker" –name "Prod1 Root CA" –verbose
As with the register command, the default service name is “MPX Cache Agent”. That means that the name parameter must be used when you unregister a service that has a non-default name. For example, to un-register the service used in the last example:
CacheAgentService –unregister –name "Prod1 Root CA"
When MPX Cache Agent runs, it creates a log file in its installation folder. The default file name for the log is CacheAgentService.locale.log where locale is something like en-US.
If a file with that name already exists, it is renamed to include a time stamp: CacheAgentService_YYYYMMDDhhmmss.location.log
Its log can be viewed from a browser by entering a URL using the following syntax:
http://host:port/log