Script Syntax
- Last Updated: December 11, 2024
- 1 minute read
- WhatsUp Gold
- Version 2024
You create a script using keywords. In general, Script Syntax is Command=String. The command is either Send, Expect, SimpleExpect, or Flow Control.
Note: A script can have as many send and receive lines as needed. However, the more you have, the slower the service check.
Keywords
Note: To comment out a line, use the # symbol as the first character of the line.
- To send a string to a port, use the Send= keyword.
- To expect a string from a port, use the SimpleExpect= or the Expect= keyword.
- To receive a conditional response for an error or success, use Flow Control Keywords.
Examples
If you have a TCP service to check, you need to do the following:
- expect something on connection
- send a command
- check for a response
- send something to disconnect