Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CONFIGURE EMAIL ALERTS

Status
Not open for further replies.

ArcUser

IS-IT--Management
Nov 15, 2001
52
GB
For some reason no matter which option I use with Arcserve I cannot seem to get an email notification from our server. The backup is running fine and the recipients have been configured correctly - what else can I check
 
OK I found out why my configuration was not being saved - you have to click the traffic lights before leaving the modify job area.
 
copy this into a .bat file and put the full path into the post part of pre / post job options.

couldnt be bothered to find out if i could get the job log any other way. i spent 2 days trying to get Arcserve 2000 to send smtp or exchange emails. this works for me, hope its of some use.

oh, you need to download blat and install it on the server.

sorry if its too elaborate.

craig.
------------------------------------------------------
@rem Run this from the ARCserve\log folder
@rem USE %1 for subject

echo set dayte=%%5 > the.bat
echo. | date > temp.bat
call temp.bat
del temp.bat
del the.bat

@rem The above portion of the code gets the current date by pulling a neat trick
@rem found on the web. secret lies with call statement executing the output of date command
@rem command put into temp.bat

@rem this install dir maybe different

CD c:\Program Files\ComputerAssociates\ARCserve\LOG
DIR | FIND "%dayte%">firstDir.txt

@rem This gets all the files that have been created today

FOR /F "tokens=1,4 delims= " %%i in (firstDir.txt) do @(
@echo %%j | FIND "J0" >> filteredList.txt)

@rem filters all the job files. This will break if your jobs are above J1..
@rem FIND "J" doesnt work because the TskJob file will mess you up!!!

FOR /F %%x in (filteredList.txt) DO @(
blat %%x -subject "insert your sub" -server ip.of.smtp.your.domain -f backupuser@your.domain.com -to backupuser@your.domain.com -base64
)

@rem gets the filename(s) from the filtered list and attaches them. Could not get the text
@rem into the body due to Arcserve's encoding the files. doh.

del firstDir.txt
del filteredList.txt
@rem clean up, packup and go home.
 
this code doesnt work (for me at least) on NT, not sure whether its a date setting thing.

the line:

DIR | FIND "%dayte%">firstDir.txt

doesnt work if the %dayte% is 01/01/2003 and DIR gives you file dates like 01/01/03. anyone have any suggestions? i'm going to try and work around it.

anyone ever have the feeling your trying to push DOS a little too hard?
 
See the following Tek-Tips thread
thread478-539771 if the link is messed up this is thread 478-539771
titled "How to configure SMTP alerts?"

I stumbled upon this thread and found an update to the alert program that user "Wiedie" pointed out and this works!!! It really works like a charm, I simply plugged in the SMTP server for our company and it works great.

Peter
 
yeah, for version 9. have you got it working for arcserve 2000?
 
Never tried it on ArcServe 2000...so I do not know, but it works great on v9. Did you try the update on ArcServe 2000? What was the result?
 
I contacted CA, they told me to apply the patch, I did. The message I got was "Failed to send Email (CB)". Then they told me to uninstall everything, reinstall and apply the patch. on 30 production servers? I gave up and created the batch file using Blat.

the machines are just in workgroups of their own, I've failed to Exchange working outside our domain. smtp just works.

any idea how to parse a date dd/MM/yyyy and change to dd/MM/yy in NT??

have a good one.
 
I see that the patch for Alert that I refer to above requires Alert 6.0 (Build 599) or higher to be installed. So I presume the fix does not apply to ArcServe 2000 unless one has this verison of Alert or higher. If there is any way of getting a newer version of Alert for use with ArcServe 2000 then the patch would be relevant...

 
you are quite right. people over here have installed eTrust InoculateIT 6.0.96. I assume my Alert version 7 build 684, came down with that.

could look on any InoculateIT CD, might be there.

but it still doesnt work. :(
 
Here is code I found on the web about a year ago that creates variables for day, month, etc, however it does use a 4 digit year as opposed to a 2 digit, perhaps it could be modified...

@echo off
echo. | date | FIND "(mm" > NUL
if errorlevel 1 (call :parsedate DD MM) else (call :parsedate MM DD)
:: echo YYYY=%YYYY% MM=%MM% DD=%DD% Dow=%Dow%
goto :EOF
:parsedate ----------------------------------------------------------
for /f "tokens=1-4 delims=/.- " %%A in ('date /t') do (
set Dow=%%A& set %1=%%B& set %2=%%C& set YYYY=%%D& goto :EOF)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top