8: Device Ports
SLC™ 8000 Advanced Console Manager User Guide
145
Sample Scripts
Interface Script—Monitor Port
The Monitor Port (Monport) script connects directly to a device port by logging into the SLC
port,
gets the device hostname, loops a couple of times to get port interface statistics, and logs out. The
following is the script:
set monPort 7
set monTime 5
set sleepTime 2
set prompt ">"
set login "sysadmin"
set pwd "PASS"
#Send CR to echo prompt
send "\r"
sleep $sleepTime
#Log in or check for Command Prompt
if, elseif and else
The
if
command executes an associated block of commands if its Boolean
expression evaluates to TRUE. Each command within the block must be a Primary
command. Syntax:
if {<Boolean expression>} {
command 1
command 2
...
command n
}
The
elseif
command is used in association with an
if
command - it must
immediately follow an if or
elseif
command. It executes an associated block of
commands if its Boolean expression evaluates to TRUE. Each command within the
block must be a Primay command. Syntax:
elseif {<Boolean expression>} {
command 1
command 2
...
command n
}
The
else
command is used in combination with an if or
elseif
command to
provide a default path of execution. If the Boolean expressions for all preceding if
and
elseif
commands evaluate to FALSE the associated block of commands is
executed. Each command within the block must be a primary command. Syntax:
else {
command 1
command 2
...
command n
}
Command
Description
Содержание SLC 8000
Страница 1: ...Part Number 900 704 R Revision B October 2014 SLC 8000 Advanced Console Manager User Guide ...
Страница 86: ...7 Services SLC 8000 Advanced Console Manager User Guide 86 Figure 7 4 Services Secure Lantronix Network ...
Страница 173: ...10 Connections SLC 8000 Advanced Console Manager User Guide 173 To display global connections connect global show ...
Страница 214: ...11 User Authentication SLC 8000 Advanced Console Manager User Guide 214 Figure 11 11 User Authentication SSH Keys ...
Страница 221: ...11 User Authentication SLC 8000 Advanced Console Manager User Guide 221 Figure 11 13 User Authentication Custom Menus ...
Страница 248: ...12 Maintenance SLC 8000 Advanced Console Manager User Guide 248 Figure 12 12 About SLC ...