Use this command with return code processing in a script to issue a message from a server script to determine where the problem is with a command in the script.
Privilege Class
Any administrator can issue this command.
Syntax
>>-ISSUE MESSAGE--message_severity-message_text----------------><
Parameters
Examples
Task
Assume you have a script called backupscript that quiesces a client's database, takes a backup of that database, and then restarts the client's database. For illustration, your script results in a non-zero return code. Use the ISSUE MESSAGE command with the message severity and message text. Below is an example of a server script that calls backupscript on the client machine and issues messages based on the return code from backupscript.
issue message i "Starting backup"
define clientaction nodename action=command objects="c:\backupscript" wait=yes
if (101) goto qfail
if (102) goto qwarn
if(103) goto backupf
if (104) goto restartf
issue message i "Backup of data base complete"
exit
qfail: issue message e "Quiesce of data base failed"
exit
qwarn: issue message w "Quiesce of data base failed, taking fuzzy backup"
exit
backupf: issue message e "Backup of data base failed"
exit
restartf: issue message s "Data base restart failed"
exit
Related Commands
Table 139. Commands Related to ISSUE MESSAGE
Command | Description |
---|---|
COPY SCRIPT | Creates a copy of a script. |
DEFINE SCRIPT | Defines a script to the TSM server. |
DELETE SCRIPT | Deletes the script or individual lines from the script. |
RENAME SCRIPT | Renames a script to a new name. |
RUN | Runs a script. |
UPDATE SCRIPT | Changes or adds lines to a script. |