[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

how to run a TSM script twice a day?

Posted on 2016-10-20
9
Medium Priority
?
77 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
[X]
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
  • 5
  • 4
9 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 2000 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
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 

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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
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…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
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…

656 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