Probe commands
The following sections define the structure of the JSON-formatted commands that you can send to the probe. There is an example of each command.
All the examples use a probe URI of http://localhost and a HTTP listening
port of 4567
.
help
Use the help command to receive help information about the HTTP/HTTPS command interface.
The format of the -data
option for the help command is:
-data '{"command":"help","params":[]}'
The following command returns help information:
$OMNIHOME/bin/nco_http -uri http://localhost:4567/probes/socket_java -datatype
application/JSON -method POST -data '{"command":"help","params":[]}'
stop
Use the stop command to shut down the probe.
The format of the -data
option for the stop command is:
-data '{"command":"stop", "params":[]}'
The following example stops the probe:
$OMNIHOME/bin/nco_http -uri http://localhost:4567/probes/socket_java -datatype
application/JSON -method POST -data '{"command":"stop", "params":[]}'