Page 1 of 1

Protect or Unprotect a project in DS 8.1

Posted: Thu Aug 19, 2010 8:47 am
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.

Posted: Thu Aug 19, 2010 9:06 am
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

Posted: Thu Aug 19, 2010 9:09 am
by chulett
So... that makes me wonder how to do the "un" part. :?

Posted: Thu Aug 19, 2010 9:11 am
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 :)

Posted: Mon Feb 23, 2015 10:49 am
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>