Deployment Automation

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
Munish
Participant
Posts: 89
Joined: Sun Nov 19, 2006 10:34 pm

Deployment Automation

Post by Munish »

Hi There,

We are trying to automate the deployment project where the plan is to script everything which could be run from Command Line (UNIX).

Can anyone throw some light on

1. Template of script for creating a new project (Right now we are using Administrator).

2. Deleting the pre-existing project with same name. We need it for SVT and Testing where we may need to delete and recreate the project several times. (Currently we are using Administrator for the same).

Thanks and regards,

Munish
MK
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

There's no 'script' to remove or create a new project. And I'm surprised you have a need to delete and recreate test projects 'several times'. :?

My advice - stick with the Administrator.
-craig

"You can never have too many knives" -- Logan Nine Fingers
rameshrr3
Premium Member
Premium Member
Posts: 609
Joined: Mon May 10, 2004 3:32 am
Location: BRENTWOOD, TN

What do you want?

Post by rameshrr3 »

Creating a project from command line:

Code: Select all

dsadmin -createproject ProjectName [-location ProjectLocation]
eg

Code: Select all

[color=darkred]dsadmin -createproject Test -location /home/dsdev/Test[/color]
Deleting a project from command line:

Code: Select all

dsadmin -deleteproject ProjectName
eg

Code: Select all

[color=darkred]dsadmin -deleteproject Test[/color]
The above commands should ideally work from your OS (Unix/ windows) command line if you have necessary permissions (admin user priveleges in datastage)and your 'dsenv' is sourced. As for the scripting and automation part : well you have to check with someone good at unix shell scripting. :twisted:
Last edited by rameshrr3 on Thu Mar 01, 2007 8:37 am, edited 1 time in total.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Interesting! Not something I was aware of, probably as I've never had a need to pursue this approach. Any idea where this is documented? There are other options here, some of which sound potentially interesting:

-advancedruntime
-customdeployment

And others, so now I'm curious to read about them.
-craig

"You can never have too many knives" -- Logan Nine Fingers
rameshrr3
Premium Member
Premium Member
Posts: 609
Joined: Mon May 10, 2004 3:32 am
Location: BRENTWOOD, TN

Post by rameshrr3 »

Oh Yeah, i came across these commands pretty recently, probably after reading Vince's blog on Datastage certification, and lo, the secrets of command line interface are revealed in server job developers guide from page 693 of 776 in the pdf document.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

:lol: Guess I need to revisit that chapter. Usually I'm only there to visit with the 'dsjob' command. Thanks.
-craig

"You can never have too many knives" -- Logan Nine Fingers
crouse
Charter Member
Charter Member
Posts: 204
Joined: Sun Oct 05, 2003 12:59 pm
Contact:

Post by crouse »

Mr. Hulett,

Don't be too hard on yourself, it looks like it didn't make it into the docs until release 7.5.1a or 7.5.2

-Craig
Craig Rouse
Griffin Resouces, Inc
www.griffinresources.com
Munish
Participant
Posts: 89
Joined: Sun Nov 19, 2006 10:34 pm

Post by Munish »

Thanks Guys,
You all are brilliant.
Closing the thread.
Regards,
Munish
MK
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

For advanced runtime options open any parallel job, open its job properties and find the Execution tab. Then click Help.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

ray.wurlod wrote:For advanced runtime options open any parallel job, open its job properties and find the Execution tab. Then click Help.
Wish I could... no got.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Sure you do. razor.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Munish
Participant
Posts: 89
Joined: Sun Nov 19, 2006 10:34 pm

Post by Munish »

Just to share that it worked fine, I have to make slight modifications to syntax (./ before dsadmin command) (may be Unix specific, not sure though).

Location $DSHome/DSEngine/bin

Delete Project:./dsadmin -deleteproject ProjectTest

Start Project:
./dsadmin -createproject ProjectTest -location /opt/WebSphere/AppServer/Ascential/DataStage/Projects/ProjectTest
MK
Post Reply