Sending commands using nco_http
When using nco_http, commands are sent to the probe, in JSON format, using the HTTP POST method.
There are two groups of command:
- Get commands for retrieving data from the agent
- Set commands for setting data in the agent
The following sections show the format of each command in nco_http and include an example of each. The examples operate on the System group of objects in the standard SNMP MIB. This MIB resides in the internet management subtree of the SNMP object tree. In addition, there is information on messages that can appear in the log file to indicate success of the command or indicate a problem with the syntax of the command line.
The sections use the following conventions for the parameter values:
Parameter | Meaning |
---|---|
probeuri |
The URI of the probe. |
probeport |
The port that the probe listens on for HTTP connections. |
destinationhost |
The host name or IP address of the destination address for the command. That is, the address of the SNMP agent. |
userid |
The user account required to log in to the probe when using SNMP V3. |
oid |
The identifier of the object. |
type |
The type of the object. See Object types for a list of values that this parameter can take. |
value |
The value to associate with the object. |
community |
The SNMP community string. |
port |
The target port on the SNMP agent that the probe uses for the command. |