Using the Command Line to Export Workspaces to an Archive
The following procedures show how to export whole Workspace objects or any particular object under a Workspace, which are Workspace-enabled, to an archive (SIF file) using siebdevcli from the command line. Note that siebdevcli is supported on both the server (Windows and UNIX platforms) and client.
To export whole Workspaces to an archive using the siebdevcli command
-
Open a command line and then navigate to the
SIEBEL_HOME\BIN
folder. -
Use the following command to run the siebdevcli.exe file:
siebdevcli /c config_file /l language_code /u user_name /p password /d odbc_datasource /WorkspaceExport /Repository "Siebel Repository" /Workspacename Workspace_name /f object_export_file /ToVersion 1111
The following example exports the modified objects that belong to MAIN and writes the file provided in the
/ExportFile
parameter.siebdevcli /c tools.cfg /l ENU /u sadmin /p ******** /d oradev109 /WorkspaceExport /Repository "Siebel Repository" /Workspacename "MAIN" /f wsexport.sif /ToVersion 9
The following table describes some of the parameters that you can use with the siebdevcli command line.
Parameter Optional Description /WorkspaceExport
Yes
Exports a whole Workspace.
This parameter is only required when running siebdevcli in Workspace Export Mode (that is, when doing a Workspace export). This option is not required if running Import Repository Mode.
/Repository
or/y
No
The name of the repository.
/WorkspaceName
No
The name of the Workspace.
/ExportFile
or/f
No
The name of the SIF file.
/ToVersion
Yes
The end version. The default is 99999.
To export objects under a Workspace to an archive using the siebdevcli command
-
Open a command line and then navigate to the
SIEBEL_HOME\BIN
folder. -
Use the following command to run the siebdevcli.exe file:
siebdevcli /c config_file /l language_code /u user_name /p password /d odbc_datasource /WSObjectExport /Repository "Siebel Repository" /Workspacename Workspace_name /i object_input_file /l log_file_name
The following example exports the objects that the
infile.txt
input file specifies. It logs results to theexport.log
file:siebdevcli /c wsexport.cfg /l ENU /u SADMIN /p ******** /d oradev109 /WSObjectExport /y "Siebel Repository" /Workspacename "dev_sadmin_ws" /i infile.txt /l export.log
The following table describes some of the parameters that you can use with the siebdevcli command line.
Parameter Optional Description /WorkspaceExport
No
Exports whole objects.
This parameter is only required when running siebdevcli in Workspace Export Mode (that is, when doing a Workspace export). This option is not required if running Import Repository Mode at the same time.
/Repository
or/y
No
The name of the repository.
/WorkspaceName
No
The name of the Workspace.
/InputFile
or/i
No
The name of the input file.
/LogFile
or/l
No
The name of the log file.