So, an update on the issue......it's not resolved, but it's not what we thought. There's also some additional weirdness added in.
So my master servers in Phoenix and Atlanta hose the file every time I try and save it on them. I'm using notepad, copying and pasting the relevent portion of the backup_exit_notify script that I had saved into the canned version. Everything goes in just fine. Looks perfect. I hit Control-S to save it and it looks fine, but when you go back into the file, the formatting is all kind of stupid. As illustrated:
@REM@REM $Header: backup_exit_notify.cmd,v 1.2 2002/11/20 02:10:34 $@REM@REM bcpyrght@REM ***************************************************************************@REM * $VRTScprght: Copyright 1993 - 2006 Symantec Corporation, All Rights Reserved $ *@REM ***************************************************************************@REM ecpyrght@REM@REM backup_exit_notify.cmd@REM@REM This script is called by the NetBackup scheduler, after an individual@REM client backup has completed (including media closure and image db@REM validation.@REM@REM NOTE: this script will always be run in "background" mode, meaning that@REM the NetBackup scheduler will NOT wait for it's completion.@REM@REM This script:@REMreceives 5 parameters: @REM%1 = CLIENT - the client hostname@REM%2 = POLICY - the policy label@REM%3 = SCHEDULE - the schedule label@REM%4 = SCHEDULE_TYPE - the type of schedule: FULL INCR UBAK@REM UARC@REM%5 = STATUS - the backup status for this job@REM%6 = STREAM - the backup stream number for this job@REM@REM - Main program ------------------------------------------------------------@REM -@REM - This script only runs on NT 4.0 and succeeding versions of NT. You must@REM - have command extensions enabled. Check the following registry entry:@REM -@REM - HKEY_CURRENT_USER\Software\Microsoft\Command Processor\EnableExtensions@REM -@REM - It should be set to 0x1 or you may have problems running this script.@REM ---------------------------------------------------------------------------@setlocal ENABLEEXTENSIONS@set LISTPATHS="%~dp0\goodies\listpaths"@for /F "delims=|" %%p in ('%LISTPATHS% /s NB_MAIL_SCRIPT') do @set NB_MAIL_SCRIPT="%%p"@set OUTF="%~dp0\BACKUP_EXIT_CALLED"@REM ---------------------------------------------------------------------------@REM - Get date and time.@REM ---------------------------------------------------------------------------@for /F "tokens=1*" %%p in ('date /T') do @set DATE=%%p %%q@for /F %%p in ('time /T') do @set DATE=%DATE% %%p@REM ---------------------------------------------------------------------------@REM - Check for proper parameter use.@REM ---------------------------------------------------------------------------@if "%6" == "" goto BadParams@if "%7" == "" goto GoodParams:BadParams@echo %DATE% backup_exit_notify expects 6 parameters: %* >> %OUTF%@goto EndMain:GoodParams@REM ---------------------------------------------------------------------------@REM - You may want to delete the output file elsewhere in order to@REM - accumulate successful backup information. If so, delete the@REM - following line or move it to where it will do the most good.@REM ---------------------------------------------------------------------------@if exist %OUTF% del %OUTF%@REM ---------------------------------------------------------------------------@echo %DATE% ----------------------------- >> %OUTF%@echo %DATE% CLIENT: %1 >> %OUTF%@echo %DATE% POLICY: %2 >> %OUTF%@echo %DATE% SCHEDULE: %3 >> %OUTF%@echo %DATE% SCHEDULE TYPE: %4 >> %OUTF%@echo %DATE% STATUS: %5 >> %OUTF%@echo %DATE% STREAM: %6 >> %OUTF%@echo %DATE% ----------------------------- >> %OUTF%@REM ---------------------------------------------------------------------------@REM - might want to mail this info to someone@REM -@REM - @call %NB_MAIL_SCRIPT% someone_who_cares "NetBackup backup exit" %OUTF%@REM ---------------------------------------------------------------------------@REM if "%5" equ "150" goto EndMain
@REM if "%5" equ "200" goto EndMain
@if "%5" gtr "1" goto SendEmail
@goto EndMain
:SendEmail
@blat %OUTF% -s Enterprise_Netbackup_Atlanta -t globalhelpdesk@ikon.com -i NetBackup -server atlsmtp.ikon.org -q
@endlocal
:EndMain
@endlocal
@REM - End of Main Program -----------------------------------------------------
As you'll notice, the last couple of lines are perfectly fine. These are the only lines we changed from the canned script. That's why I wondered if it was something about the new version of the script MP4 put out there.
HOWEVER, when I was working on the script on our master server in Houston, everything worked perfectly, just how it should, and I could copy the results to the other master servers and have everything work.....as long as they didn't save the file.
So now it looks like it's something in Windows or on these particular machines (and my desktop) that's hosing up the formatting.
Hopefully, if there's anyone else out there who's having this kind of hard time, maybe this will help out. And for reference sake, here's what it SHOULD look like (although I'll be un-REM-ing the status 150 bypass shortly....needed that in there for testing):
@REM
@REM $Header: backup_exit_notify.cmd,v 1.2 2002/11/20 02:10:34 $
@REM
@REM bcpyrght
@REM ***************************************************************************
@REM * $VRTScprght: Copyright 1993 - 2006 Symantec Corporation, All Rights Reserved $ *
@REM ***************************************************************************
@REM ecpyrght
@REM
@REM backup_exit_notify.cmd
@REM
@REM This script is called by the NetBackup scheduler, after an individual
@REM client backup has completed (including media closure and image db
@REM validation.
@REM
@REM NOTE: this script will always be run in "background" mode, meaning that
@REM the NetBackup scheduler will NOT wait for it's completion.
@REM
@REM This script:
@REMreceives 5 parameters:
@REM%1 = CLIENT - the client hostname
@REM%2 = POLICY - the policy label
@REM%3 = SCHEDULE - the schedule label
@REM%4 = SCHEDULE_TYPE - the type of schedule: FULL INCR UBAK
@REM UARC
@REM%5 = STATUS - the backup status for this job
@REM%6 = STREAM - the backup stream number for this job
@REM
@REM - Main program ------------------------------------------------------------
@REM -
@REM - This script only runs on NT 4.0 and succeeding versions of NT. You must
@REM - have command extensions enabled. Check the following registry entry:
@REM -
@REM - HKEY_CURRENT_USER\Software\Microsoft\Command Processor\EnableExtensions
@REM -
@REM - It should be set to 0x1 or you may have problems running this script.
@REM ---------------------------------------------------------------------------
@setlocal ENABLEEXTENSIONS
@set LISTPATHS="%~dp0\goodies\listpaths"
@for /F "delims=|" %%p in ('%LISTPATHS% /s NB_MAIL_SCRIPT') do @set NB_MAIL_SCRIPT="%%p"
@set OUTF="%~dp0\BACKUP_EXIT_CALLED"
@REM ---------------------------------------------------------------------------
@REM - Get date and time.
@REM ---------------------------------------------------------------------------
@for /F "tokens=1*" %%p in ('date /T') do @set DATE=%%p %%q
@for /F %%p in ('time /T') do @set DATE=%DATE% %%p
@REM ---------------------------------------------------------------------------
@REM - Check for proper parameter use.
@REM ---------------------------------------------------------------------------
@if "%6" == "" goto BadParams
@if "%7" == "" goto GoodParams
:BadParams
@echo %DATE% backup_exit_notify expects 6 parameters: %* >> %OUTF%
@goto EndMain
:GoodParams
@REM ---------------------------------------------------------------------------
@REM - You may want to delete the output file elsewhere in order to
@REM - accumulate successful backup information. If so, delete the
@REM - following line or move it to where it will do the most good.
@REM ---------------------------------------------------------------------------
@if exist %OUTF% del %OUTF%
@REM ---------------------------------------------------------------------------
@echo %DATE% ----------------------------- >> %OUTF%
@echo %DATE% CLIENT: %1 >> %OUTF%
@echo %DATE% POLICY: %2 >> %OUTF%
@echo %DATE% SCHEDULE: %3 >> %OUTF%
@echo %DATE% SCHEDULE TYPE: %4 >> %OUTF%
@echo %DATE% STATUS: %5 >> %OUTF%
@echo %DATE% STREAM: %6 >> %OUTF%
@echo %DATE% ----------------------------- >> %OUTF%
@REM ---------------------------------------------------------------------------
@REM - might want to mail this info to someone
@REM -
@REM - @call %NB_MAIL_SCRIPT% someone_who_cares "NetBackup backup exit" %OUTF%
@REM ---------------------------------------------------------------------------
@REM if "%5" equ "150" goto EndMain
@REM if "%5" equ "200" goto EndMain
@if "%5" gtr "1" goto SendEmail
@goto EndMain
:SendEmail
@blat %OUTF% -s Enterprise_Netbackup_Atlanta -t globalhelpdesk@ikon.com -i NetBackup -server atlsmtp.ikon.org -q
@endlocal
:EndMain
@endlocal
@REM - End of Main Program -----------------------------------------------------