Protect or Unprotect a project in DS 8.1

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
ssbhas
Premium Member
Premium Member
Posts: 8
Joined: Thu Jul 21, 2005 11:02 pm

Protect or Unprotect a project in DS 8.1

Post by ssbhas »

Protect or Unprotect a project in DS 8.1 - Is there a way to script this task so that we can avoid the usage of the Administrator client to do this?

What I am trying to do is write a small script that could be run by dsadm or root when a project needs to be protected or unprotected.
The project name and protect/unprotect switch will be passed to the script as parameters.

Is this do-able? If yes, whats the Unix command to protect/un-protect a project?

Appreciate your help.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

See the last option...

Code: Select all

C:\Programme\IBM\InformationServer\Server\DSEngine\bin>dsadmin /?
Invalid/unknown primary command switch.

Command Syntax:
        dsadmin [-file <file> <domain> <server> | -domain <domain> -user <user> -
password <password> -server <DataStage server>]
                        <primary command> [<arguments>]

Valid primary command options are:
        -createproject
        -deleteproject
        -oshvisible
        -enablercp
        -enablejobadmin
        -envadd
        -envdelete
        -envset
        -advancedruntime
        -basedirectory
        -deploymentdirectory
        -customdeployment
        -listprojects
        -listproperties
        -listenv
        -enablegeneratexml
        -protectproject

Status code = -9999
Last edited by ArndW on Thu Aug 19, 2010 9:10 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 »

So... that makes me wonder how to do the "un" part. :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

I thought the same.. mayhaps they neglected to add the help option for unprotect but I don't feel like protected some poor project that I later can't unprotect anymore :)
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

4.5 year old post, but was incomplete...

The -protectproject option has a TRUE or FALSE argument required.

Code: Select all

$DSHOME/bin/dsadmin -protectproject

Invalid arguments: dsadmin -protectproject TRUE | FALSE <project name>
Choose a job you love, and you will never have to work a day in your life. - Confucius
Post Reply