Solved

how to run a TSM script twice a day?

Posted on 2016-10-20
9
37 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
 

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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
HP SAN CMC upgrade 7 62
SharePoint and OneDrive 1 63
Synology: shared folder in a shared folder 1 40
shadow copies 7 15
This article is an update and follow-up of my previous article:   Storage 101: common concepts in the IT enterprise storage This time, I expand on more frequently used storage concepts.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now