ANS1512E Scheduled event failed. Return code = 12.

tedjohansson

ADSM.ORG Member
Joined
Oct 6, 2007
Messages
6
Reaction score
0
Points
0
Hello,

I'm having a slight problem with taking my daily backup. I always get this messages from the include section in the configuration file.

-----------------------------------------------------------
2007-10-06 02:51:53 fioGetAttrib(D:\appl\backef\*.*,D:\appl\bengts\*.*,D:\appl\ed\*.*,D:\appl\fargel\*.*,D:\appl\hogsat\*.*,D:\appl\t4) failed.
2007-10-06 02:51:53 ANS4942E The file specification 'D:\appl\backef\*.*,D:\appl\bengts\*.*,D:\appl\ed\*.*,D:\appl\fargel\*.*,D:\appl\hogsat\*.*,D:\appl\t4\*' is invalid.
2007-10-06 02:51:54 ANS1512E Scheduled event 'DAILY_NT_PTS_JOURNAL' failed. Return code = 12.
-----------------------------------------------------------

And this is the include section in the configuration file.

-----------------------------------------------------------
include "*:\appl\...\*" DB_MGMT
-----------------------------------------------------------

Client Version 5.4.1.2, Server Version 5.4.1.1

I've restarted the TSM service, but I always get the same result.

Any idea?

Thanks in advance!
 
I believe your intention is to backup everything under the folder/directory appl. If so, this include statement might be well suited instead.

include.dir "*:\appl\..."
 
Does include.dir exist on many platforms? Its not in any docco I was looking at, I was checking if it supported specifying a MC, as Ted is binding everything under that directory to the DB_MGMT mgtclass.

Anyway, there shouldn't be anything wrong with what Ted says he's done so there's something funny going on.

Can you paste your entire dsm.opt and the output of "dsmc q inclexcl" on the client? Trying to see if there's anything else, such as in your client optionset.
 
Here's the full dsm.opt file:

*==============================================
* This node is...
* Nodename: NNAME
* Operating system: Windows
*----------------------------------------------
* dsm.opt/dsm.sys
*----------------------------------------------
* 20031017 Fredrik Nilsson Template
* YYYYMMDD Your name What did you do?
*==============================================

*==============================================
* S e r v e r
*==============================================

serverName SKAP01
schedMode polling

commMethod tcpip
tcpServerAddress 192.168.21.17
tcpPort 1500

*==============================================
* N o d e s e t t i n g s
*==============================================

nodeName PTS0301

domain ALL-LOCAL

quiet

*----------------------------------------------
TCPCLIENTADDRESS 192.168.20.35
tcpClientPort 1501
httpPort 1581

*------------------- Windows ------------------
lang enu
dateformat 3
tcpWindowSize 63
tcpnodelay no
txnbytelimit 25600
resourceutilization 5

*==============================================
* P a s s w o r d s
*==============================================

passwordAccess generate

*==============================================
* L o g g i n g
*==============================================

*------------------- Windows ------------------
errorLogName c:\tivoli\tsm\tsmlogs\pts0301Err.log
schedLogName c:\tivoli\tsm\tsmlogs\pts0301Sch.log


*------------------- common -------------------
schedLogRetention 30
errorLogRetention 30

*==============================================
* I n c l u d e s
*==============================================

include "*:\...\*.doc" DOC_MGMT
include "*:\...\*.xls" DOC_MGMT
include "*:\...\*.mdb" DOC_MGMT
include "*:\...\*.ppt" DOC_MGMT
include "*:\...\*.fp*" DOC_MGMT
include "*:\appl\...\*" DB_MGMT

*==============================================
* E x c l u d e s
*==============================================

*------------------- Windows ------------------
exclude "*:\pagefile.sys"
exclude "*:\...\system32\config\...\*.*"
exclude "*:\...\system32\perflib*.dat"
exclude "*:\...\security\edb.log"
exclude.dir "*:\...\system32\wins"
exclude.dir "*:\...\system32\lserver"
exclude.dir "*:\...\system32\dhcp"
exclude.dir "*:\...\system32\config"
exclude.dir "*:\...\ntfrs\jet"
exclude.dir "*:\...\ntds"
exclude.dir "*:\...\System Volume Information"
exclude.dir "*:\...\Temporary Internet Files"
exclude.dir "*:\...\Recycled"
exclude.dir "*:\...\Recycler"
exclude.dir "*:\...\i386"
exclude "*:\...\cluster\clusdb.*"
exclude "*:\...\cluster\clusdb"
exclude "*:\...\Documents and Settings\...\ntuser.dat"
exclude "*:\...\Documents and Settings\...\ntuser.dat.LOG"
exclude "*:\...\Documents and Settings\...\usrclass.dat"
exclude "*:\...\Documents and Settings\...\usrclass.dat.LOG"
exclude "*:\...\UMS\Director\data\esntevt.dat"
exclude "*:\...\*.ldf"
exclude "*:\...\*.mdf"
exclude "*:\...\Documents and Settings\...\*EnterceptExceptions.dat"
exclude "*:\...\Documents and Settings\...\*EnterceptRules.dat"
exclude.dir "D:\appl\msi*"
exclude.dir "*:\...\system32\spool\PRINTERS"
 
And here is the output from the command that you asked for:
I just can't figure this out, it seems so right... :-/

C:\Tivoli\TSM\baclient>dsmc q inclexcl
IBM Tivoli Storage Manager
Command Line Backup/Archive Client Interface
Client Version 5, Release 4, Level 1.2
Client date/time: 2007-10-08 10:29:53
(c) Copyright by IBM Corporation and other(s) 1990, 2007. All Rights Reserved.

Node Name: PTS0301
Session established with server SKAP01: Windows
Server Version 5, Release 4, Level 1.1
Server date/time: 2007-10-08 10:29:53 Last access: 2007-10-08 08:35:06

*** FILE INCLUDE/EXCLUDE ***
Mode Function Pattern (match from top down) Source File
---- --------- ------------------------------ -----------------
Excl Directory *\...\.TsmCacheDir TSM
Excl Directory C:\WINDOWS\winsxs Operating System
Excl Directory C:\adsm.sys Operating System
Excl Directory *\...\system32\spool\PRINTERS dsm.opt
Excl Directory D:\appl\msi* dsm.opt
Excl Directory *\...\i386 dsm.opt
Excl Directory *\...\Recycler dsm.opt
Excl Directory *\...\Recycled dsm.opt
Excl Directory *\...\Temporary Internet Files dsm.opt
Excl Directory *\...\System Volume Information dsm.opt
Excl Directory *\...\ntds dsm.opt
Excl Directory *\...\ntfrs\jet dsm.opt
Excl Directory *\...\system32\config dsm.opt
Excl Directory *\...\system32\dhcp dsm.opt
Excl Directory *\...\system32\lserver dsm.opt
Excl Directory *\...\system32\wins dsm.opt
Exclude All d:\frs-staging\NTFRS_* Operating System
Exclude All d:\appl\msi\NtFrs_PreExisting___See_EventLog\...\* Operating System
Exclude All d:\appl\msi\DO_NOT_REMOVE_NtFrs_PreInstall_Directory\...\* Operating System
Exclude All C:\WINDOWS\usrclass.dat.log Operating System
Exclude All C:\WINDOWS\usrclass.dat Operating System
Exclude All C:\WINDOWS\Tasks\schedlgu.txt Operating System
Exclude All C:\WINDOWS\system32\WBEM\Repository\...\*.* Operating System
Exclude All C:\WINDOWS\system32\NtmsData\...\* Operating System
Exclude All C:\WINDOWS\system32\MSDtc\trace\dtctrace.log Operating System
Exclude All C:\WINDOWS\system32\MSDTC\MSDTC.LOG Operating System
Exclude All C:\WINDOWS\system32\inetsrv\metabase.xml Operating System
Exclude All C:\WINDOWS\system32\inetsrv\metabase.bin Operating System
Exclude All C:\WINDOWS\system32\inetsrv\mbschema.xml Operating System
Exclude All C:\WINDOWS\system32\config\system.log Operating System
Exclude All C:\WINDOWS\system32\config\system.alt Operating System
Exclude All C:\WINDOWS\system32\config\system Operating System
Exclude All C:\WINDOWS\system32\config\software.log Operating System
Exclude All C:\WINDOWS\system32\config\software Operating System
Exclude All C:\WINDOWS\system32\config\security.log Operating System
Exclude All C:\WINDOWS\system32\config\security Operating System
Exclude All C:\WINDOWS\system32\config\sam.log Operating System
Exclude All C:\WINDOWS\system32\config\sam Operating System
Exclude All C:\WINDOWS\system32\config\default.log Operating System
Exclude All C:\WINDOWS\system32\config\default Operating System
Exclude All C:\WINDOWS\System32\CatRoot2\...\* Operating System
Exclude All C:\WINDOWS\SoftwareDistribution\...\* Operating System
Exclude All C:\WINDOWS\Repair\Backup\ServiceState\EventLogs\SysEvent.Evt Operating System
Exclude All C:\WINDOWS\Repair\Backup\ServiceState\EventLogs\SecEvent.Evt Operating System
Exclude All C:\WINDOWS\Repair\Backup\ServiceState\EventLogs\NtFrs.Evt Operating System
Exclude All C:\WINDOWS\Repair\Backup\ServiceState\EventLogs\AppEvent.Evt Operating System
Exclude All C:\WINDOWS\Repair\Backup\BootableSystemState\Registry\system Operating System
Exclude All C:\WINDOWS\Repair\Backup\BootableSystemState\Registry\software Operating System
Exclude All C:\WINDOWS\Repair\Backup\BootableSystemState\Registry\SECURITY Operating System
Exclude All C:\WINDOWS\Repair\Backup\BootableSystemState\Registry\SAM Operating System
Exclude All C:\WINDOWS\Repair\Backup\BootableSystemState\Registry\defaultOperating System
Exclude All C:\WINDOWS\Repair\Backup\BootableSystemState\ComRegistrationDatabase\...\* Operating System
Exclude All C:\WINDOWS\repair\asr.log Operating System
Exclude All C:\WINDOWS\repair\asr.err Operating System
Exclude All C:\WINDOWS\Registration\*.clb Operating System
Exclude All c:\windows\ntfrs\jet\...\* Operating System
Exclude All C:\WINDOWS\netlogon.chg Operating System
Exclude All C:\WINDOWS\debug\NtFrs\NtFrs* Operating System
Exclude All C:\WINDOWS\debug\* Operating System
Exclude All C:\WINDOWS\csc\...\* Operating System
Exclude All C:\DOCUME~1\_edisrv\LOCALS~1\Temp\...\* Operating System
Exclude All C:\Documents and Settings\_edisrv\...\index.dat Operating System
Exclude All C:\Documents and Settings\All Users\Application Data\Microsoft\Network\Downloader\* Operating System
Exclude All *\System Volume Information\MountPointManagerRemoteDatabase Operating System
Exclude All *\System Volume Information\...\*{3808876B-C176-4e48-B7AE-04046E6CC752} Operating System
Exclude All *\System Volume Information\*.{7cc467ef-6865-4831-853f-2a4817fd1bca}DB Operating System
Exclude All *\System Volume Information\*.{7cc467ef-6865-4831-853f-2a4817fd1bca}ALT Operating System
Exclude All *\Pagefile.sys Operating System
Exclude All *\hiberfil.sys Operating System
Exclude All *\...\*.crmlog Operating System
Exclude All *\...\Documents and Settings\...\*EnterceptRules.dat dsm.opt
Exclude All *\...\Documents and Settings\...\*EnterceptExceptions.dat dsm.opt
Exclude All *\...\*.mdf dsm.opt
Exclude All *\...\*.ldf dsm.opt
Exclude All *\...\UMS\Director\data\esntevt.dat dsm.opt
Exclude All *\...\Documents and Settings\...\usrclass.dat.LOG dsm.opt
Exclude All *\...\Documents and Settings\...\usrclass.dat dsm.opt
Exclude All *\...\Documents and Settings\...\ntuser.dat.LOG dsm.opt
Exclude All *\...\Documents and Settings\...\ntuser.dat dsm.opt
Exclude All *\...\cluster\clusdb dsm.opt
Exclude All *\...\cluster\clusdb.* dsm.opt
Exclude All *\...\security\edb.log dsm.opt
Exclude All *\...\system32\perflib*.dat dsm.opt
Exclude All *\...\system32\config\...\*.* dsm.opt
Exclude All *\pagefile.sys dsm.opt
Include All *\appl\...\* dsm.opt
Include All *\...\*.fp* dsm.opt
Include All *\...\*.ppt dsm.opt
Include All *\...\*.mdb dsm.opt
Include All *\...\*.xls dsm.opt
Include All *\...\*.doc dsm.opt
No DFS include/exclude statements defined.

C:\Tivoli\TSM\baclient>
 
Last edited:
Looks fine to me so far.

What does "q sched * DAILY_NT_PTS_JOURNAL f=d" say?

Short of seeing a problem there, I'd have to say its a bug.
 
Schedule Name: DAILY_NT_PTS_JOURNAL
Description: Full backup for journal on server PTS0301
Schedule Style: Classic
Action: Selective
Options: -subdir=yes
Objects: D:\appl\backef\*.*,D:\appl\bengts\*.*,D:\appl\ed\*.*,D:\appl\
fargel\*.*,D:\appl\hogsat\*.*,D:\appl\t4\*.*
Priority: 5
Next Execution: 10 Hours and 9 Minutes
Duration: 1 Hour
Period: 1 Day
Day of Week: Any
Month:
Day of Month:
Week of Month:
Expire: Never
 
Ah. Your problem is nothing to do with cloptset, and everything to do with the "objects" in your schedule.

The multiple directories should be separated by spaces not commas.

Also, as an aside, I wouldn't use *.* as a wildcard unless you're specifically only after files that have extensions. Just use *
 
The objects have now been changed, I cross my fingers that this will solve the problem that we're experience :) This is rather funny, because it works very well with commas on the other servers =)

Thank you mate!
 
Thank you mate! It worked fine! Thank you again! :)
You're the man!
 
Finished command. Return code is: 1

I install TDP for Exchange and test backup,it's failed.help me please


04/27/2009 18:00:14 Finished command. Return code is: 1
04/27/2009 18:00:14 ANS1909E The scheduled command failed.
04/27/2009 18:00:14 ANS1512E Scheduled event '2100.EMREXCHANGE.DAILY' failed. Return code = 1.
04/27/2009 18:00:14 Sending results for scheduled event '2100.EMREXCHANGE.DAILY'.
04/27/2009 18:00:14 Results sent to server for scheduled event '2100.EMREXCHANGE.DAILY'.
 
Back
Top