SetHostTable
Configures settings that are found in the In-Sight Host Table dialog. For more information, see Host Table Dialog.
SetHostTable Inputs
Syntax: EV SetHostTable(HostID,"Name","IPAddress")
Parameter |
Description |
---|---|
HostID |
0 to 31 First Host Name in table = 0, Second Host Name in table = 1, ... sequentially up to 31. |
"Name" |
The In-Sight sensor host name. |
"IPAddress" |
The In-Sight sensor IP address. |
SetHostTable Outputs
Returns a status code, followed by the number of characters (in bytes) for the results, then the results in XML format. The status codes are:
Status Codes | Description |
---|---|
1 | The command was executed successfully. |
0 | Unrecognized command. |
-2 | The command could not be executed. |
-6 | User does not have Full
Access to execute the command. |
Example: Add a Host Table Entry
To add a sensor with the host name of "PRODUCTION1" and the IP Address of "192.168.1.1" as the first entry in the Host Table, issue the following command: EV SetHostTable(0,"PRODUCTION1","192.168.1.1".
To add a sensor with the host name of "PRODUCTION2" and the IP Address of "192.168.1.3" as the second entry in the Host Table, issue the following command: EV SetHostTable(1,"PRODUCTION2","192.168.1.3").
Edit a Host Table Entry
To edit the IP address of the second Host Table entry, issue the following command: EV SetHostTable(1,"PRODUCTION2","192.168.1.2")