Primary Commands; Table 8-17 Primary Commands - Lantronix SLC 8000 User Manual

Advanced console manager
Hide thumbs Also See for SLC 8000:
Table of Contents

Advertisement

Primary Commands

These are stand-alone commands which provide the primary functionality in a script. These
commands may rely on one or more of the Secondary Commands to provide values for some
parameters. The preprocessor will require that these commands appear only as the first element
of a command line. The start of a command line is delimited by any of the following:
The start of a new line of text in the script
A semicolon (';')
A left brace ('{')
Command
set
unset
scan
sleep
exec
send, send_user
SLC™ 8000 Advanced Console Manager User Guide

Table 8-17 Primary Commands

Description
The
command assigns a value to a variable. Syntax:
set
set <variable> <value>
where <variable> is a word, and <value> can be defined in one of the following
ways:
A quoted string
A word
A variable reference
A value generated via one of the string secondary commands (compare,
match, first, etc.)
A value generated via the
A value generated via the
A value generated via the
This command removes the definition of a variable within a script. Syntax:
unset <variable>
where
is a word.
<variable>
The
command is analogous to the C language scanf(). Syntax:
scan
scan <variable> <format string> <value 1> <value 2> ... <value n>
where
a variable reference, and
<variable>
string. Each of the
<value x>
The
command suspends execution of the script (puts it to 'sleep') for the
sleep
specified number of seconds. Syntax:
sleep <value>
where
can be a word, a quoted string or a variable reference.
<value>
The
command executes a single CLI command. Currently only CLI 'show'
exec
commands may be executed via exec. Syntax:
exec <CLI command>
The
command sends output to a sub-process, The
send
command sends output to the standard output. Both commands have the same
syntax:
send <string>
send_user <string>
where
can be either a quoted string or a variable reference.
<string>
secondary command
expr
secondary command
format
command
expr timestamp
<format string>
elements will be a word.
8: Device Ports
is a quoted
send_user
141

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SLC 8000 and is the answer not in the manual?

Table of Contents

Save PDF