Managing your Cradle server via Command Line
Quite often you may find that the server machine you install the CDS and CWS on may not have a graphic user interface, in this case you can manage your Cradle server via a command line
How to Install a Security Code
The c_config command allows you to update a Cradle Security Code
Format
c_config -i code
Example
c-config -i BWEr-DSWe...
How to Start/Stop/Restart the Cradle Database Servers
The c_start command allows you to start, stop, restart or test the Cradle Database Server (CDS) and/or Cradle Web Server (CWS).
Format
c_start {start | stop | restart | test} {cds | cws | all}
Example
c_start start cds
Variations
Command | Result |
---|---|
c_start start | start cds + cws |
c_start start cds | start cds only |
c_start start cws | start cws only |
c_start start all | start cds + cws |
c_start stop | stop cds + cws |
c_start stop cds | stop cds only |
c_start stop cws | stop cws only |
c_start stop all | stop cds + cws |
c_start restart | restart cds + cws |
c_start restart cds | restart cds only |
c_start restart cws | restart cws only |
c_start restart all | restart cds + cws |
c_start test | give process numb of cds + cws |
c_start test cds | only give process numb of cds |
c_start test cws | only give process numb of cws |
c_start test all | give process numb of cds + cws |
How to Manage Cradle Projects
The c_prj command is used to create, delete, lock and unlock Cradle projects.
Format
c_prj.exe [-create -code <projcode> -title <project title> -path <project location> [-pid <project PID>] [-schema <schema name>]] [-delete -code <projcode> -password <MANAGER password> [-method {all | pdb | reg_only}]] [-lock -auth <user>,<password>,<projcode> [-allow_user <user>]] [-unlock -auth <user>,<password>,<projcode>]
Examples
c_prj.exe -create -code TEST -title "Test Project" -path /home/apps/temp/projects/test -pid TEST01 -schema empty
Will create a project with a project code of TEST, a title of Test Project in the /home/apps/temp/projects location with a PID of TEST01 using the empty schema.
c_prj.exe -delete -code TEST -password MANAGER PASSWORD -method all
Will delete the TEST project along with the registry entry, database files and directories.