TDP Exchange schedule failed

mgb123

ADSM.ORG Member
Joined
Dec 12, 2007
Messages
5
Reaction score
0
Points
0
Hi,

I'm completely new to tsm. I'm trying to get a tdp for exchange schedule working.

TSM server version 5.3.3
ba client 5.2.2
tdp client 5.2.1

I installed the BA client and the TDP client and 2 client schedulers.

My dsm.opt for tdp is using port 1500 and client polling. I've tried 1501 and 1502 as well. I've also tried to have the server start it as well.

my client node on the server side looks like this:

12/12/2007 4:40:30 PM ANR2017I Administrator issued command: UPDATE NODE MAILBOX02-EXCHANGE CLOPTSET= VALIDATEPROTOCOL=NO SESSIONINITIATION=CLIENTORSERVER HLADDRESS=143.xx.xx.xx LLADDRESS=1500 DATAWRITEPATH=ANY DATAREADPATH=ANY
12/12/2007 4:41:05 PM ANR0406I Session 427 started for node MAILBOX02-EXCHANGE (WinNT) (Tcp/Ip (24780)).

and here is what I get in the activity log:

12/12/2007 4:41:05 PM ANR0403I Session 427 ended for node MAILBOX02-EXCHANGE (WinNT).
12/12/2007 4:41:05 PM ANR0406I Session 428 started for node MAILBOX02-EXCHANGE (WinNT) (Tcp/Ip mailbox02.xxx.xxx(24781)).
12/12/2007 4:41:06 PM ANR0403I Session 428 ended for node MAILBOX02-EXCHANGE (WinNT).
12/12/2007 4:53:06 PM ANR2579E Schedule EXCHANGE_FULL in domain EXCHANGE for node MAILBOX02-EXCHANGE failed (return code 1).



Help please.

Melissa
 
Last edited:
Hi,

in the schedule you should have ACTION=Command and in OBJECTS a script you invoke on the client - very likely it is exchfull.cmd or something like it
In this script (on the client) there should be a name of the log file specified. Look into it and post here the error.
There may be (and probably are) more logs - one for TDP errors, other for schedule events - examine both
Again - you have to look at the Exchange server, not at the TSM server

Hope it shows the way ...

Harry

P.S. first step is to get the *.cmd working from the client - bother with scheduling only after you get it running
 
cmd file

I got the cmd file working from the client. But the schedule still doesnt work.

set exc_dir="c:\Program Files\Tivoli\TSM\TDPExchange"
cd /d %exc_dir%
tdpexcc backup * full /tsmoptfile=dsm.opt /logfile=excsch.log >> excfull.log

from the tdp exc.log

12/12/2007 15:30:24 Request : QUERY Exchange
12/12/2007 15:30:24 Exchange Server : _UnKnown_
12/12/2007 15:30:24 -------------------------------------------------------------------------
12/12/2007 15:30:31 =========================================================================
12/12/2007 15:30:31 Request : QUERY TSM
12/12/2007 15:30:31 TSM Options File : C:\Program Files\Tivoli\TSM\TDPExchange\dsm.opt
12/12/2007 15:30:31 TSM Nodename Override :
12/12/2007 15:30:31 -------------------------------------------------------------------------


Melissa
 
Make sure that the:

/tsmoptfile=dsm.opt

line really points to the dsm.opt file for TDP for Exchange and not to the BA schedluer.
 
code error 1 is very often shown then there is a path problem,
for exaxample the cmd file is not found by the schedule
can you show us the schedule set for that backup
 
Is the script executed and then it fails / or it is not started at all?
If it is started then it should work as you tested manually, right? So it might be a permissions problem. Try to run the scheduler service under the account you are using to manually test the backup script.

If the script is not executed at all, the object of the schedule is probably wrong.
 
I still can't figure this out. The script does run manually from the client. I tried not using the cmd file and putting this command instead

tdpexcc backup * full /tsmoptfile=C:\Program Files\Tivoli\TSM\TDPExchange\dsm.opt /logfile=C:\Program Files\Tivoli\TSM\TDPExchange\excsched.log >> C:\Program Files\Tivoli\TSM\TDPExchange\excfull.log


and all I get from TSM is that the schedule started and ended twice within one minute. I don't know why it's trying to run twice either. It doesn't seem to run the command at all. The only weird thing I get in the tdpexc.log is this:

12/13/200709:32:32 Request : QUERY Exchange
12/13/200709:32:32 Exchange Server:_UnKnown_
========================================================
12/13/2007 09:32:49 Request : QUERY TSM
12/13/2007 09:32:49 TSM Options File : C:\Program Files\Tivoli\TSM\TDPExchange\dsm.opt
12/13/2007 09:32:49 TSM Nodename Override :
12/13/2007 09:32:49 -------------------------------------------------------------------------

Why does it say exchange server unknown?

Melissa
 
Hi,

please, do not try to rush the things up - lets do it step by step
Show us the contents of cmd file, post here the schedule definition, dsm.opt used for the scheduler and dsm.opt used for the TDP (if different)
Show us tdpexc.cfg
Try to schedule scripts doing something like "echo whatever > output.file", then something like "tdpexcc query exchange > output.file" and so on ...

We may help better then

Harry
 
Ok step by step:


cmd file


ECHO hello > c:\hello.log
rem ==================================================================
rem Sample Command File - excfull.smp
rem
rem Sample command file containing commands to do a scheduled
rem full backup of the Microsoft Exchange Server databases to
rem TSM storage.
rem
rem This file is meant to be executed by the TSM central scheduler
rem in response to a defined schedule on the TSM server.
rem
rem Complete paths must be given for all file names and non-system
rem commands.
rem
rem Copy this file to excfull.cmd and edit it to match your
rem local environment.
rem
rem ==================================================================

rem ==================================================================
rem Replace "X:" with the drive where Data Protection for Exchange
rem is installed.
rem ==================================================================

set exc_dir="c:\Program Files\Tivoli\TSM\TDPExchange"

cd /d %exc_dir%

rem ==================================================================
rem The 2 lines below put a date and time stamp in a log file for
rem you.
rem
rem Note: You can change "excfull.log" to whatever you prefer.
rem ==================================================================
echo Current date is: >> excfull.log
date /t < NUL >> excfull.log
echo Current time is: >> excfull.log
time /t < NUL >> excfull.log

rem ==================================================================
rem Now call the command line to do the full backup:
rem
rem Note: You can change "excsch.log" to whatever you prefer.
rem ==================================================================
tdpexcc query exchange > c:\exchang1.log
tdpexcc backup * full /tsmoptfile=C:\Program Files\Tivoli\TSM\TDPExchange\dsm.opt /logfile=excsch.log >> excfull.log


dsm.opt for scheduler and tdp

*======================================================================*
* *
* IBM Tivoli Storage Manager for Mail *
* *
* Data Protection for Microsoft Exchange Server *
* *
* Sample Options File *
* *
*======================================================================*

NODename mailbox02-exchange
CLUSTERnode no
COMPRESSIon Off
PASSWORDAccess Generate

*======================================================================*
* TCP/IP *
*======================================================================*
COMMMethod TCPip
TCPPort 1500
TCPServeraddress 143.48.253.60
TCPWindowsize 63
TCPBuffSize 32

*======================================================================*
* Named Pipes *
*======================================================================*
*COMMMethod NAMEdpipe
*NAMedpipename \\.\pipe\tsmpipe

*======================================================================*
* LAN Free *
*======================================================================*
*ENABLELANFREE YES

*======================================================================*
* *
* - Scheduling Options *
* *
* The default scheduling mode is the client polling method. *
* To use server prompted scheduling, you must be sure to use a tcp *
* client port different than the one used by the regular backup *
* client. *
* *
*======================================================================*
SCHEDMODE Polling
*SCHEDLOGRetention 14
*SCHEDMODE Prompted
*TCPCLIENTADDRESS 143.48.42.48
*TCPCLIENTPORT 1500

*======================================================================*
* Include/Exclude Processing *
* *
* First, read the documentation about INCLUDE/EXCLUDE processing *
* included in the base TSM backup-archive client documentation. *
* There are specific instructions that are needed for *
* Data Protection for Microsoft Exchange Server. *
* Refer to the Data Protection for Microsoft Exchange Server *
* Installation and User's Guide for more information. *
* *
* NOTE: *
* Server names and storage group names are case sensitive. *
*======================================================================*
*======================================================================*
* The following include statement assigns all backup objects of *
* a particular storage group to the management class ExcMgmtClass. *
*======================================================================*
INCLUDE "Mailbox02\First Storage Group\Mailbox Store\" ExcMgmtClass

*======================================================================*
* The following exclude statement excludes a particular storage *
* group from backup. *
*======================================================================*
*EXCLUDE "SERVER_NAME\A Storage Group\...\*"




schedule definition

schedule action set to command
command is C:\Program Files\Tivoli\TSM\TDPExchange\excfull.cmd




tdpexc.cfg


*********************************************************************
*
* IBM Tivoli Storage Manager for Mail
*
* Data Protection for Microsoft Exchange Server
*
* Sample Configuration File
*
*********************************************************************

BUFFers 3
BUFFERSIze 1024

LOGFile tdpexc.log
LOGPrune 60

MOUNTWait yes

TEMPLOGRESTorepath

LASTPRUNEDate 12/13/2007 09:32:31


ps - i tried a cmd file with just echo hello and it completed successfully, as soon as I put in tdpexcc query exchange > c:\exchang1.log the schedule hung and failed.

Melissa
 
Hi,

was the "echo only" cmd in the same path? With the space in "Program Files" ?

Harry
 
Back
Top