In 4.1 there is a new Issue Message command - not sure if this would do what
you want.

>From the TSM 3.7.3 and 4.1 Technical Guide Red book:

The objective of this new parameter is to allow for user defined messages to
be
issued from a server script to determine, if there is a problem with the
command
in the script. This allows for the a server script to indicate the outcome
of an
action. Message numbers are predefined for specific severity levels.
The new Tivoli Storage Manager scripting command is:
*ISSUE MESSAGE message_severity message_text
Where:
message_severityspecifies the severity of the message. The message
severity indicators are:
* E = Error. ANR1498E is displayed in the message text.
* I = Information. ANR1496I is displayed in the message text.
* S = Severe. ANR1499S is displayed in the message text.
* W = Warning. ANR1497W is displayed in the message text.
Where:
message_text specifies the description of the message.
The issue message command can only be used in conjunction with the return
code function and can only be used in a script.
The issue message function can be used in a server script to quiesce a
database.
For example, a script results in a non-zero return code. Use the ISSUE
MESSAGE
command to determine the severity of the return code and the message
description.

Tim Rushforth
City of Winnipeg
[EMAIL PROTECTED]
-----Original Message-----
From: Richard Sims [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 15, 2000 2:49 PM
To: [EMAIL PROTECTED]
Subject: Re: command to create an activity log entry


>Is there a command to create an activity log entry.  I didn't see anything
>in the manual; but sometimes are there are undocumented features.  I have
>this long running script from which I would like to log progress messages.

Joel - I haven't seen a formal way to do that, but it's easy to put
something
       into the Activity Log, via an unrecognized command name, like:
 "COMMENT At this time we will be powering off our tape robot."
It will show up on an ANR2017I message, followed by
"ANR2000E Unknown command - COMMENT.", which can be ignored.
       Richard Sims, BU

Reply via email to