|
Hi,
I currently working on a script to automate a backup procedure for a couple of ACE servers we use.
As part of the script I need to log the backups in the application event viewer. But I have a problem with the event id's.
The current scipt we have tried is this -
If Exist ("$BACKUPPATH")=0 MD "$BACKUPPATH" If @Error LogEvent (1,1 'Error Creating ACE Backup Directory - @SERROR', '', ACEBackup) EndIf EndIf If Exist ("$BACKUPPATH\ACEBKUP@Month@YEAR")=0 MD "$BACKUPPATH\ACEBKUP@Month@YEAR" If @Error LogEvent (1,1 'Error Creating ACE Backup Directory - @SERROR', '', ACEBackup) EndIf EndIf
Shell '$rdbms32\bin\sdbkup.bat noprompt online $ACEInstall\sdserv $BACKUPPATH\ACEBKUP@Month@YEAR\@MDAYNO@MONTHNO@YEAR'
If @ERROR LogEvent (1,1, "ACE Server Backup - @SERROR ","", ACEBackup) Exit Else LogEvent (0 ,1, "ACE Server Backup of @WKSTA Has been completed Sucessfully", "", ACEBackup ) EndIf
The main problem we have, is the events are logged like this
Event Type: None Event Source: ACEBackup Event Category: None Event ID: 1 Date: 24/06/2003 Time: 10:11:10 User: N/A Computer: DAP00009 Description: The description for Event ID ( 1 ) in Source ( ACEBackup ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: Backup of DAP00009 Event Logs has been completed Sucessfully.
Has anyone got any suggestions to what I can do ?
|