Script Syntax: Send=Keyword

To Send command on a connection, use a Send=keyword. The script syntax is Send=Command. The Command is exactly the message you want to send. You may use a combination of literal characters and binary representations.

WhatsUp Gold understands the C0 set of ANSI 7-bit control characters. A Binary can be represented  as \\x##, where the ## is a hexadecimal value. Those familiar with the table may also choose to use shorthand such as \A (\x01) or \W (\x17)

You can also use \r and \n as the conventions for sending the carriage return and line feed control characters to terminate a line.

The following table shows the keywords you can use.

Keyword

Description

\\x##

Binary value in Hexadecimal. For example, \\x1B is escape

\\

The "\" character

\t

The tab character (\x09)

\r

The return character (\x0D)

\n

The new line character \x0A)

WhatsUp Gold versions 7 and 8 users: The %### decimal syntax for specifying binary octets has been replaced with the \x## hexidecimal syntax.

Example 1:
#
# Note: script comments start with a # character
#
# Send a simple text command
#
Send=Hello There

Example 2:
#
# Send a command followed by CR/LF
#
Send=Select * from Accounts\r\n

Example 3:
#
# Send a binary escape (27) an x y and z and then a nak (21)
#
Send=\x1Bxyz\x15

See Also

Using the Rules Expression Editor

Script Syntax

Script Syntax: Expect=Keyword

Script Syntax: SimpleExpect Keyword

Script Syntax: Flow Control Keywords

Send to Disconnect Examples

Regular Expression Syntax

Text String Example