Altiris Deployment Solution™ from Symantec User’s Guide
187
z
Logging is stored in the database instead of a log file.
z
A DOS-based tool can be called from any script file to log status and error codes.
z
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
-
id:%ID%
switch.
See the
Locally on the Deployment Server
option in Script Information to select a
server-side script. See
Script information
on page 185.
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%"
Содержание DEPLOYMENT SOLUTION 6.9 SP4
Страница 1: ...Altiris Deployment Solution 6 9 SP4 from Symantec User s Guide ...
Страница 53: ...Altiris Deployment Solution from Symantec User s Guide 371 ...
Страница 128: ...Altiris Deployment Solution from Symantec User s Guide 143 ...
Страница 129: ...Altiris Deployment Solution from Symantec User s Guide 144 ...