About WhatsConfigured command layout

The general format of a script command is:

KEY COMMAND QUERY

For example,

[last-words] shutdown { "Are you sure? ", "Y" }

As previously explained, KEY specifies the key to use when storing the command's output in the WhatsUp Gold database, and possibly operations for trimming the command output. COMMAND is the text for the command itself. QUERY specifies the query prompt and query response for commands that ask a question. COMMAND is required, while KEY and QUERY are optional.

Since commands can become long, it is legal to put the KEY, COMMAND, and QUERY parts of a command on different lines. For example, the following commands are equivalent:

[last-words] shutdown { "Are you sure? ", "Y" }

[last-words]

shutdown

{ "Are you sure? ", "Y" }

[last-words]

shutdown { "Are you sure? ", "Y" }

[last-words] shutdown

{ "Are you sure? ", "Y" }

While the KEY, COMMAND, and QUERY can be on different lines from each other, each of these individual elements must start and end on the same line (i.e., they cannot span multiple lines). For example, the following commands are not valid:

[

last-words

] shutdown { "Are you sure? ", "Y" }

[last-words] shut

down { "Are you sure? ", "Y" }

[last-words]

shutdown

{

"Are you sure? ",

"Y"