Operating Siebel Through Command Line Interface: Author(s)
Operating Siebel Through Command Line Interface: Author(s)
Author(s)
Ashish Malhotra
Radhika Bhasin
DECLARATION
We hereby declare that this document is based on our personal experiences. To the best of our
knowledge, this document does not contain any material that infringes the copyrights of any
other individual or organization including the customers of Infosys.
Ashish Malhotra
Radhika Bhasin
Project Details
Projects involved: NSNCRMUK
H/W Platform: UNIX
S/W Environment: Siebel 7.7
Appln. Type: CRM
Project Type: Implementation
CONTENTS
INTRODUCTION..............................................................................................................1
COMMANDS TO LOG INTO SERVER.......................................................................................2
To start the server manager....................................................................................2
COMMANDS..................................................................................................................2
To list the servers on server manager.......................................................................2
To set a particular Siebel Server, if there are more than one Siebel server....................2
To list all the components on a particular server........................................................2
List all environment variables..................................................................................2
List a particular environment variable.......................................................................2
List all tasks to the targeted/ all Siebel Server(s).......................................................2
List all tasks to a specific Siebel Server(s).................................................................2
List a specific task..................................................................................................2
Stop/ kill a specific task..........................................................................................2
Difference between stop and kill..............................................................................2
COMMAND TO GENERATE/ EXTRACT NEW DATABASE..................................................................2
Task to generate new database...............................................................................2
Task to extract new database only...........................................................................2
Task to extract new database and Full Get................................................................2
COMMAND TO RUN AN EIM TASK........................................................................................2
COMMAND TO GENERATE DATABASE TRIGGERS.........................................................................2
Page 1 of 10 6/29/2022
COMMAND TO START WORKFLOW MONITOR AGENT (WORKMON)...................................................2
COMMAND TO INVOKE WORKFLOWS.....................................................................................2
Starting and Shutting down Siebel/ Gateway/ Web server through command line................2
Introduction
When Siebel and Gateway servers are installed on AIX/ UNIX box, we do not have a GUI
interface to run various tasks/ commands. So we telnet/ use tools (putty) to run the
commands and tasks to run workflows/ schedule jobs/ EIM tasks etc.Some basic commands
are listed in this document which have been used by us in our project:
Page 2 of 10 6/29/2022
srvrmgr /e siebeldev /g GateServ01 /s siebserv01 /u sadmin /p *****
After Siebel server manager has started with a message – “Connected to 1 server(s) out of
a total of 1 server(s) in the enterprise”, following prompt appears:
srvrmgr:siebserv01>
Commands
Page 3 of 10 6/29/2022
To set a particular Siebel Server, if there are more than one Siebel server
NOTE: this command will work if we do not specify a Siebel server during the
srvrmgr command
srvrmgr:siebserv01>set server SiebelServer
Or
srvrmgr:siebserv01>set server SiebServ01
And thereafter all the commands are targeted on that particular Siebel server. To disconnect
from the server we use unset command.
Page 4 of 10 6/29/2022
List a particular environment variable
srvrmgr:siebserv01>show <VariableName>
Or
srvrmgr:siebserv01>show header
O/P as below:
Page 5 of 10 6/29/2022
List a specific task
srvrmgr:siebserv01>list task <TaskId> (given by column TK_TASKID in the above
screenshot)
Or
srvrmgr:siebserv01>list task 16412
O/P as below:
Page 6 of 10 6/29/2022
srvrmgr:siebserv01>kill task TaskId for server SiebServ01
This command will kill the task specified in TaskId for SiebServ01 server.
Kill command signals the Siebel Server to use operating system control to terminate the
task. Kill command means selecting Stop task from Menu button three times in succession
on a running task.
The flags are activated to log transactions and the values may vary.
Setting the Error Flags parameter to 1 produces a detailed explanation of rows that
were not successfully processed.
Setting the SQL Flags parameter to 8 creates a log of all SQL statements that make
up the EIM task.
Trace flags contain logs of various EIM operations. Setting Trace Flag=1 provides a
summary (after each batch) of the elapsed time in EIM steps.
Page 7 of 10 6/29/2022
srvrmgr:siebserv01>run task for comp GenTrig with
EXEC=True,Remove=True,PrivUser=siebel,PrivUserPass=<Password>,AlertLevel=2,
ErrorFlags=1, TraceFlags=1, SQLFlags=8
Starting and Shutting down Siebel/ Gateway/ Web server through command line
The procedure to Start/ Recycle services on AIX box is:
Page 8 of 10 6/29/2022
1st command list_server all: will give the last time Siebel server was started/
stopped.
2nd command start_server all: will start the Siebel server.
3rd command stop_server all: will stop the Siebel server.
1st command list_ns: will give the last time Gateway server was started/ stopped.
2nd command start_ns: will start the Gateway server.
3rd command stop_ns: will stop the Gateway server.
Page 9 of 10 6/29/2022
4. For Web Server:
Change directory to cd /usr/IBMIHS/bin to move to directory:
ServerName:/usr/IBMIHS/bin >
Information about webserver installation path (:/usr/IBMIHS/bin) can be fetched from
“eappweb.config.log” file.
Wherever the web server is installed, this log file can be found with the name,
“eappweb.config.log”.
For e.g. in our case it can be found in /siebel/eappweb/
Type ls –l *st* - will give output as:
Since we can see above that the process owner is root and root needs special
permissions, so to execute these files we need special permissions which only root user
has. To login to ROOT use following commands:
Using ROOT user, one should never traverse to any of the Siebel Installation
folders.After the start / stop of Web server, we should EXIT from using the root(su)
user.
REFERENCES
Siebel Bookshelf
Page 10 of 10 6/29/2022