Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

how to run a TSM script twice a day?

Posted on 2016-10-20
9
58 Views
Last Modified: 2016-10-24
Hi, i have a script (BASEBKPFULL) for a full TSM database backup wich runs every day at 9:00 am.  and  i want to run it again at 15:00 so im creating a new schedule:

def sched  BASEBKPFULL  T=A  CMD="RUN BASEBKPFULL" ACT=yes   Desc= Full Backup TSM Database using BASEBKPFULL script   STARTIME=15:00:00 Dur=10 duru=minutes DAYOFWEEK=ANY

Please let me know if this is correct or if i should modify/add/delete any parameter.

Kind regards.

Santiago.
0
Comment
Question by:Santiago videla
  • 5
  • 4
9 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 41852786
Hi Santiago,

you could add the PERIOD and PERUNITS parameters, yet Per=1 and Peru=Days are the default values anyway.

I assume that the missing double quotation marks " around the description phrase are just due to copy/paste or character set or the like reasons (?)

def sched  BASEBKPFULL  T=A  CMD="RUN BASEBKPFULL" ACT=yes   Desc="Full Backup TSM Database using BASEBKPFULL script" Per=1 Peru=DAYS   STARTIME=15:00:00 Dur=10 duru=minutes DAYOFWEEK=ANY

The other parameters are all correct, so this schedule should work like a charm (if the underlying script "BASEBKPFULL" is syntactically correct, that is).

wmp
1
 

Author Comment

by:Santiago videla
ID: 41852821
Dear Woolmilkporc,
                                    Thank a lot for your quick response. Yes the quotation marks were missed due to copy paste and BASEBKPFULL  is our sintaxis for the script.

One more question. This script contain The following commands:

line1 BACKUP DB DEV=LTO5 type=FULL scratch=yes Wait=Yes
line-5 if (rc_ok)
line 8 delete volhist type=dbb todate=-1
line 10 backup devconfig
line 15 backup volhistory
line 20 expire i
line 25 Exit.

Do you think its ok to execute it twice a day? Your opinion will be really aprecciated.

Thanks a lot for all your help-

Santiago.
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 41852866
Do you use DRM? If so (and only if so), you should not use DEL VOLH to delete DBB versions, you should set the DRMDBBACKUPEXPIREDAYS parameter instead.
Besides that, the script can well run twice a day. The DEL VOLH command run in the afternoon will not find anything to delete, but this will not result in an error message.
Only one EXPIRE I process can run at any given time, so if the process started in the morning hasn't yet finished the second process will not start, but this won't do any harm either.
0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 

Author Closing Comment

by:Santiago videla
ID: 41854185
Thanks a lot for all your help. Is really nice to have an expert helping you.
0
 

Author Comment

by:Santiago videla
ID: 41856985
woolmilkporc,
                           Hi! im having an invalid action message whe i try to add the new schedule:

This is the comand:

def sched BASEBKPFULL T=A CMD="RUN BASEBKPFULL" ACT=yes Desc="Full Backup TSM Database using BASEBKPFULL script" Per=1 Peru=DAYS STARTIME=15:00:00 Dur=10 duru=minutes DAYOFWEEK=ANY

And this is the message:

ANR2602E DEFINE SCHEDULE: Invalid action - YES.
ANS8001I Return code 3.


Please any idea/ solution?

Thanks in advance
0
 

Author Comment

by:Santiago videla
ID: 41857014
Woolmilkporc,
                              Here is an update: i changed the act=yes parameter to act=command. So the entired command is the following:

def sched BASEBKPFULL T=A CMD="RUN BASEBKPFULL" ACT=Command Desc="Full Backup TSM Database using BASEBKPFULL script" Per=1 Peru=DAYS STARTTIME=15:00:00 Dur=10 duru=minutes DAYOFWEE
K=ANY


And this is the error:

ANR2651E DEFINE SCHEDULE: Invalid combination of one or more of the following parameters: cmd, type, action, objects, options.
ANS8001I Return code 3.


Any sugestion?
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 41857070
ACT ("ACTION") is not allowed for administrative schedules.
What you want to specify is ACTIVE=YES which cannot be abbreviated. Sorry that I overlooked this in your and my postings (again, a copy-and-paste  thing!)
0
 

Author Comment

by:Santiago videla
ID: 41857073
Wool,
           No problem! Please can you copy here the right sintax for the complete command please?
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 41857099
Here you go:

def sched  BASEBKPFULL  T=A  CMD="RUN BASEBKPFULL" ACTIVE=yes   Desc="Full Backup TSM Database using BASEBKPFULL script" Per=1 Peru=DAYS   STARTTIME=15:00:00 Dur=10 duru=minutes DAYOFWEEK=ANY
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

By default, Carbonite Server Backup manages your encryption key for you using Advanced Encryption Standard (AES) 128-bit encryption. If you choose to manage your private encryption key, your backups will be encrypted using AES 256-bit encryption.
A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question