Solved

how to run a TSM script twice a day?

Posted on 2016-10-20
9
46 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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Symantec Ghost is the number one software used for mass image deployment in enterprises. There are many others tools, including free and open source, but Ghost by far is number one. Sysprep is a utility developed by Microsoft to facilitate the ma…
VM backup deduplication is a method of reducing the amount of storage space needed to save VM backups. In most organizations, VMs contain many duplicate copies of data, such as VMs deployed from the same template, VMs with the same OS, or VMs that h…
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…

930 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

13 Experts available now in Live!

Get 1:1 Help Now