Probe commands
The following sections define the structure of the JavaScript Object Notation (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 8080
.
disconnectProbe
Use the disconnectProbe command to
disconnect the probe from the target system, and to return OK
if
successful.
The format of the -data
option
for the disconnectProbe command is:
-data
'{"command":"disconnectProbe","params":[]}'
The following command performs a disconnection:
$OMNIHOME/bin/nco_http
-uri http://localhost:8080/probes/message_bus -datatype application/JSON
-method POST -data '{"command":"disconnectProbe","params":[]}'
shutdownProbe
Use the shutdownProbe command to shutdown
the probe, and to return OK
if successful.
The
format of the -data
option for the shutdownProbe command
is:
-data '{"command":"shutdownProbe","params":[]}'
The following command performs a disconnection:
$OMNIHOME/bin/nco_http
-uri http://localhost:8080/probes/message_bus -datatype application/JSON
-method POST -data '{"command":"shutdownProbe","params":[]}'