Deployment Automation
Moderators: chulett, rschirm, roy
Deployment Automation
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
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
What do you want?
Creating a project from command line:
eg
Deleting a project from command line:
eg
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 Evil :twisted:](./images/smilies/icon_twisted.gif)
Code: Select all
dsadmin -createproject ProjectName [-location ProjectLocation]
Code: Select all
[color=darkred]dsadmin -createproject Test -location /home/dsdev/Test[/color]
Code: Select all
dsadmin -deleteproject ProjectName
Code: Select all
[color=darkred]dsadmin -deleteproject Test[/color]
![Twisted Evil :twisted:](./images/smilies/icon_twisted.gif)
Last edited by rameshrr3 on Thu Mar 01, 2007 8:37 am, edited 1 time in total.
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.
-advancedruntime
-customdeployment
And others, so now I'm curious to read about them.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
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
Location $DSHome/DSEngine/bin
Delete Project:./dsadmin -deleteproject ProjectTest
Start Project:
./dsadmin -createproject ProjectTest -location /opt/WebSphere/AppServer/Ascential/DataStage/Projects/ProjectTest
MK