Re: ntbackup Alerts

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On Oct 2, 9:52 pm, "Pegasus \(MVP\)" <I....@xxxxxxxxxx> wrote:
"eWINg" <ewing...@xxxxxxxxx> wrote in message

news:9f6c66b1-bd4a-4d54-a2c0-5d5c15b9ea59@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Sep 30, 11:46 pm, "Pegasus \(MVP\)" <I....@xxxxxxxxxx> wrote:





"eWINg" <ewing...@xxxxxxxxx> wrote in message

news:c06bb153-be12-4dae-a1d7-f1504cde481f@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Sep 30, 4:31 pm, Masterplan <winmasterp...@xxxxxxxxxx> wrote:

Hi,

You can use schtasks command to monitor the scheduled tasks. You
interogate
the tasks like this:
schtasks /query /v /fo:list | findstr /i "Taskname Result"
And then send the result by email with a program like blat for example.

--
Have a nice day!

http://winmasterplan.blogspot.com

"eWINg" wrote:
Hello all,

I am running ntbackup on Windows 2003 Enterprise Edition

Would anyone tell me if is there is any way I can configure(bat/
vbscript) whereby ntbackup will alert me by email when the backup job
has completed sucessfully or failed?

Regards and Thanks,- Hide quoted text -

- Show quoted text -

I can use blat to email the log file, like
c:\windows\system32\blat.exe "%lastfile%" -t "1...@xxxxxxx" -s "Backup
Report" -mime -server "smtp.server" -f "s...@xxxxxxxxxxxxxxxxx" -q

But how can I select the latest log file attach to mail?

==============

Which log file are you talking about - the one created by the scheduled
task
or the one created by ntbackup.exe?- Hide quoted text -

- Show quoted text -

OH, I mean the log create by ntbackup, which place in
C:\Documents and Settings\Administrator\Local Settings\Application Data
\Microsoft\Windows NT\NTBackup\data

how can I select the latest log file attach to mail?
================
You can pick the most recent file with this batch file:
@echo off
set folder=d:\temp files
for /F "delims=" %%a in ('dir /od /b "%folder%\*.log"') do set
MostRecent=%%a
echo %MostRecent% is the most recent file.- Hide quoted text -

- Show quoted text -

Thanks for your help!

I wrote a window bat as follow, but it run with error, please HELP!

Run bat under:
C:\Documents and Settings\Administrator\Local Settings\Application Data
\Microsoft\Windows NT\NTBackup\data
Error:
The system cannot find the path specified.
"%a " is the most recent file.



@echo off
set folder="C:\Documents and Settings\Administrator\Local Settings
\Application Data\Microsoft\Windows NT\NTBackup\data"

for /F "delims=" %%a in ('dir /od /b "%folder%\*.log"') do set
set MostRecent=%%a

echo "%MostRecent%" is the most recent file.

Rem Mail latest log file to us
c:\windows\system32\blat.exe "%MostRecent%" -t "my@xxxxxxxx" -s
"Backup Report" -mime -server "smtp.server" -f
"some@xxxxxxxxxxxxxxxxx" -q
.



Relevant Pages

  • Re: ntbackup Alerts
    ... vbscript) whereby ntbackup will alert me by email when the backup ... echo %MostRecent% is the most recent file.- Hide quoted text - ... I wrote a window bat as follow, but it run with error, please HELP! ... Rem Mail latest log file to us ...
    (microsoft.public.windows.server.general)
  • Re: ntbackup Alerts
    ... And then send the result by email with a program like blat for example. ... vbscript) whereby ntbackup will alert me by email when the backup job ... But how can I select the latest log file attach to mail? ... echo %MostRecent% is the most recent file. ...
    (microsoft.public.windows.server.general)
  • Re: Startup Script but wait for SQL to start
    ... In each case there is supposed to be a Username in the log file. ... @echo off ... if Errorlevel 1 goto Loop ... And it sucessfully starts up the Indexer. ...
    (microsoft.public.windows.server.general)
  • Re: findstr, for, or other command to do this?
    ... I have a log file with many fields and lines. ... > construct a command or batch file that will return a unique list of computer ... echo %%I>> tmp.$$$ ... I saw this in a movie about a bus that had to SPEED around a city, keeping its SPEED over fifty, and if its SPEED dropped, it would explode. ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: Scheduled tasks copied between servers often do not run
    ... log file, then modify it to run the tasks that YOU want to run. ... echo %date% %time% Start of task> c:\test.log ... Once they have been run manually the first time, they schedule normally ... different images, to 4 different servers ...
    (microsoft.public.windowsxp.general)