Page Properties |
---|
|
Namespace | datastage |
---|
Command | cleanup-projects |
---|
Plugin Name | datastage |
---|
Plugin File | dm-dsadmin-plugin.jar |
---|
Credentials | IS/DS |
---|
|
...
Purpose
Deletes redundant DataStage projects matching a supplied pattern.
Syntax
...
Include Page |
---|
| DataStage Cleanup-Projects Command | DataStage Cleanup-Projects Commanddatastage cleanup-projects command syntax |
---|
| datastage cleanup-projects command syntax |
---|
|
Example
Code Block |
---|
|
datastage$> cleanup-projectsmettleci datastage Usage: cleanup-projects [options]
\
Options:
* -domain
Services Tier (required)
* -password
Password (required)
* -pattern
Search pattern for existing projects, sorted in natural order
(required)
-domain my-services.datamigrators.io:59445 \
-username isadmin \
-retainpassword Number of projects matching the search pattern to be retained,
counting backwards from the end (optional)
Default: 0
* -server
Engine Tier (required)
* -username
User Name (required)
eg:
$> command-shell.sh datastage cleanup-projects -domain test2-svcs.datamigrators.io:59445 -username isadmin -password isadminpwd -server test2-engn.datamigrators.io -isadminpwd \
-server my-engine.datamigrators.io \
-pattern Test[0-9] \
-retain 1
Listing projects:
- ANALYZERPROJECT
- DataClick
- dfd_test
- dstage1
- Test1
- matches pattern
- Test2
- matches pattern
- Test4
- matches pattern
- SWPensionStrategy
- wwi_prod
Cleaning up old projects, retaining 1 most recent projects
* Delete 'test2-engn.datamigrators.io/Test4' - SKIPPED
Deleting project: SNTest2
* Delete 'test2-engn.datamigrators.io/Test2' - COMPLETED
Deleting project: SNTest1
* Delete 'test2-engn.datamigrators.io/Test1' - COMPLETED
|
...