Starting and Stopping a Monitor from the Command Line

by Community Manager on 07-06-2011 01:38 PM - last edited on 07-11-2011 11:16 AM

Prerequisites

Starting and stopping a Monitor from the command line requires the SCommand utility. For more information, see the topic "How do I start a Composition playing from the Operating System Command line or from an OS script or...

 

 

Starting and Stopping a Monitor

 

To start a Monitor from the command line, use the start command with the parameter type=monitor. For example:

scommand cmd=start url=http://myserver/CloudTest username=bob password=secret type=monitor name="/My Monitor"

If the Monitor starts successfully, SCommand will output an instance ID that will be used to stop the Monitor later on. For example:

The monitor '/Monitoring Linux, step 2' was loaded successfully, with instance ID '7781-c1ea3960c1ee041b:5e03cfcf:11929ca1f8e:-7ff4'.
The monitor has started.

In this example, you would stop the Monitor use the following command:

scommand cmd=stop url=http://myserver/CloudTest username=bob password=secret type=monitor instanceid="7781-c1ea3960c1ee041b:5e03cfcf:11929ca1f8e:-7ff4"