Running Command Scripts - HP StorageWorks SR2122 User Manual

Ip storage router
Hide thumbs Also See for StorageWorks SR2122:
Table of Contents

Advertisement

Example 23: Extended Commands:
radius-server host 10.5.0.53 \
auth-port 1644 \
timeout 60 \
retransmit 5
! Configure 1st RADIUS server
radius-server host 10.6.0.61
. . .
When scripts run, the commands and any responses are echoed on the storage
router console.
Scripts can be created on any system using any text editor and placed in the
script directory (/ata3/script) of the target storage router using FTP. See
the
"Using FTP with the Storage Router"
also use the copy command to copy the script file to the storage router using
HTTP or TFTP.

Running Command Scripts

Use the following procedure to execute the CLI commands stored in a script file.
In this example, the script file is named CreateSc and must exist in the
script directory.
1. enable — Enter Administrator mode.
2. show script CreateSc — Verify that the script, CreateSc, exists in the
3. read script CreateSc or read script CreateSc force —
IP Storage Router SR2122-2 User Guide
You can extend commands across line boundaries by ending a line with a
backslash ( \ ) as the continuation character
continuation character to make long commands more readable. The line
sequence is continued until a command line without a continuation character
is encountered. If a comment line is used to end a line continuation sequence,
you must add a blank line after the comment.
Scripts can be invoked from other scripts.
script directory and that it contains the configuration that you want to
recreate.
Read and execute the CLI commands in the script file. When prompted,
confirm that you want to continue and execute the script commands.
Maintaining and Managing the Storage Router
(Example
23). Use the
section on
page 201
for details. You can
197

Advertisement

Table of Contents
loading

This manual is also suitable for:

Storageworks sr2122-2

Table of Contents