Coding rules for user script files, Sample user script files, 358 sample user script files – HP Serveur lame HP ProLiant BL465c Gen8 User Manual

Page 358: Sample cascade configuration

Advertising
background image

If you set

TIMEOUT

to

0

, the

drmsqlbackup

command does not finish unless the command ex-

ecuted by the user script file finishes. Keep this in mind when you specify the timeout setting.

When you want to stop an executing command (for example, when a command executed by a
user script file does not respond), enter Ctrl+C from the keyboard, or use the Windows Task
Manager to terminate the command processing. (The command processing is executed by the
user script file, and not by the

drmsqlbackup

command.)

Coding rules for user script files

For details about the coding rules for user script files, see

Coding rules for user scripts

” on page 203.

Sample user script files

This subsection provides some practical examples of user script files. The remainder of this section
explains how to write user script files using examples that assume the following cascade configuration:

Figure 103 Sample cascade configuration

If the

drmsqldisplay

command is executed in the above cascade configuration, the command

outputs information like this:

PROMPT> drmsqldisplay default -remote

INSTANCE: default

T DB OBJECT FILE L-COPY-GROUP R-COPY-GROUP PORT# TID# LUN# MU# LDEV#

P/S SERIAL#

D UserDB DATAFILE O:\UserDB_Data.MDF - - CL2-A 16 49 - 741

P 55014

- - - - SI01,sql01 - GL2-B 15 109 0 813 S 55014

- - - - SI02,sql01 - CL2-B 15 109 1 813 S 55014

- - - - SI03,sql01 - CL2-B 15 109 2 813 S 55014

Operation for SQL Server databases

358

Advertising