Script Syntax: Send=Keyword

To Send command on a connection, use a Send=keyword. The form 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. Migrated definitions will be converted automatically.

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

Related Topics

Script Syntax

Script Syntax: Expect=Keyword

Script Syntax: Flow Control Keywords

Script Syntax: SimpleExpect Keyword

500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.