Symantec ALTIRIS DEPLOYMENT SOLUTION 6.9 SP4 - V1.0 Manual page 187

Table of Contents

Advertisement

Altiris Deployment Solution™ from Symantec User's Guide
Logging is stored in the database instead of a log file.
A DOS-based tool can be called from any script file to log status and error codes.
The console displays and works with the new status messages.
LogEvent posts status sends messages to the Deployment Console, letting you view the
status of the script. It is a light-weight reporting tool that can log both status strings and
status codes to the history file and the console.
LogEvent — Use the LogEvent utility for DOS and Linux scripts.
WLogEvent — Use the WLogEvent utility for Windows scripts.
The LogEvent and WLogEvent utilities are command-line driven only — there is no user
interface. Use both utilities with the following switches.
LOGEVENT -c:code -id:%ID% -l:level -ss:"message"
code is any number for a return code level.
id is used for server-side scripting only. For server-side scripts you must add the
switch.
id:%ID%
See the Locally on the Deployment Server option in Script Information to select a
server-side script. See
Script information
level is the severity level. The following levels are used:
1 = Information message
2 =Warning message
3 = Critical failure message. Only this level can be used to set up a return code. See
Setting up return codes
on page 193. The response does not execute for a return code
unless a level 3 is specified when using the LogEvent and WLogEvent command in a
script.
message is the status string. If spaces exist in the message, the string must be
contained in quotes. Specifying a severity level of 3 causes the script job to fail.
Example scripts
REM Bootwork unload
Set ImageName=F:\Images\XPIntel.img
rdeploy -mu -f%ImageName% -p1
logevent -l:1 -ss:"Created %ImageName%."
REM Execute WLogEvent.exe from CMD script
REM This script requires WLogevent.exe to reside on the client
REM in the temp directory
.\WLogevent.exe -c:0 -l:1 -ss:"Running Dir on %NAME%"
dir
.\WLogevent.exe -c:0 -l:1 -ss:"Finished with the DIR command on
%NAME%"
on page 185.
-
187

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Altiris deployment solution 6.9 sp4

Table of Contents