Special Variables; Informational Variables; Continue_On_Error Variable - Cisco 11503 - CSS Content Services Switch Administration Manual

Content services switch
Hide thumbs Also See for 11503 - CSS Content Services Switch:
Table of Contents

Advertisement

Special Variables

Special Variables

Informational Variables

CONTINUE_ON_ERROR Variable

Cisco Content Services Switch Administration Guide
8-16
Within the CLI, there are sets of predefined variables that you can use in scripts
to add more power to your scripts. Some of these predefined variables change how
scripts react, while others are merely informational variables. None of the special
variables requires user intervention for cleanup. However, it is good practice to
remove both the CONTINUE_ON_ERROR and the EXIT_MSG variables
following the execution of their relevant command blocks.
The informational variables are:
LINE - Line name (for example, pty1, console, etc.).
MODE - Current mode of command (for example, configure, boot, service).
USER - The currently logged in user (for example, admin, bob, janet).
ARGS - A list of arguments passed to a script from the CLI. See
Command Line Arguments"
UGREP - A line of text obtained using the grep -u command.
CHECK_STARTUP_ERRORS - A session variable that determines
whether or not a user is informed of startup errors upon login.
Use the CONTINUE_ON_ERROR variable to control how a script that is
executing in an interactive CLI session handles command failure. By default, a
script terminates when it encounters an error. For example, if you use the echo
command to print out information from a script and spell the command
incorrectly, the script exits with a syntax error and prints out the line in which the
error occurred. For example, enter:
! Spell echo incorrectly
eco "This will not print"
Chapter 8
Using the CSS Scripting Language
later in this chapter.
"Using
OL-5647-02

Advertisement

Table of Contents
loading

This manual is also suitable for:

11500 series

Table of Contents