Coding rules for user scripts – HP XP Array Manager Software User Manual

Page 202

Advertising
background image

The standard output and standard error output from the commands executed in the user script are
output to the Application Agent standard output log (

drm_output.log

).

Coding rules for user scripts

Coding rules for user scripts

The table below shows the coding rules for user scripts.

Table 69 Coding rules for user scripts

Rules

Applicable items

The character code set must be ASCII.

Codes lower than

0x20

cannot be used, except for

CR

(

0x0d

),

LF

(

0x0a

),

and

TAB

(

0x09

).

The linefeed code must be

LF

(

0x0a

) or

CR+LF

(

0x0d

and

0x0a

).

The length of a single line must not exceed 8 KB.

Overall user script

Each line must contain only one item.

Item and section names are not case-sensitive.

Item and section names must consist of only one-byte characters. Two-byte
characters cannot be used.

Item names must be separated by a one-byte equal sign (

=

). One-byte space

and tab characters can be inserted before and after equal signs.

Item and section names

The value of an item must be specified after the one-byte equal sign (

=

) that

follows the item name. Do not enter a linefeed code between an item's name
and value.

The item value begins after the one-byte equal sign (

=

) that follows the item

name and ends at the linefeed code.

If an item name is specified alone (without a value), an error results.

Item values

A line that begins with a one-byte hash mark (

#

) is regarded as a comment

line.

If a one-byte hash mark (

#

) is entered anywhere on a line other than at the

beginning of the line, the part of the line following the hash mark will not be
regarded as a comment.

If a hash mark (

#

) on a line is preceded by no characters other than tab and

space characters, the line will be regarded as a comment line.

Comments

You can enter blank lines.

A line that consists only of tab and one-byte space characters is regarded as
a blank line.

Blank lines

Preparation for using Application Agent

202

Advertising