It's all about the answers!

Ask a question

RTC command line interface / integration with Siebel


Matt Morgan (61) | asked Sep 15 '09, 11:53 a.m.
retagged Dec 03 '13, 3:49 p.m. by David Lafreniere (4.8k7)
Hi all,

We're considering integrating RTC with Siebel; Siebel works with SCM's via a command line/DOS batch file - managing object locking and checkin/out itself, just providing a hook via the batch file into a source control tool during checkin.

As such, in order for an SCM to work with Siebel the application needs to have a command line interface which Siebel can call when checking items in, these items are just text files, which then get stored in the source control app. RTC looks like a great tool, but I can't find any reference to a command line tool (except to IBM i which I think is a mainframe app?). Does anyone know if there's an option of running RTC from the command line in a Windows environment?

Thanks,
Matt

Comments
ASHEESH PRAJAPATI commented Feb 02 '11, 10:13 p.m. | edited Oct 12 '15, 9:54 p.m.

Hello

I am evaluating integrating RTC with Siebel and looking for ideas on what will be the best way to integrate Siebel Checkin/out using SCM CLI.

I like to keep the things simple for development team to minimize the impact and hoping to achieve the automation that provide direct check-out (lock/download ) and check-in/deliver to stream in a similar fashion that happens from webclient (i.e. no need to worry about Repository Workspace).

Wondering if you can help.

Thank you
Asheesh

5 answers



permanent link
Andrew Hoo (1.0k1) | answered Sep 16 '09, 11:10 a.m.
JAZZ DEVELOPER
edited Oct 12 '15, 9:46 p.m. by Geoffrey Clemm (30.1k33035)
The SCM command line is located at:

/jazz/scmtools/eclipse

The help doc is here:
http://publib.boulder.ibm.com/infocenter/rtc/v2r0m0/topic/com.ibm.team.scm.doc/topics/c_scm_cli.html


Comments
Matt Morgan commented Sep 21 '09, 9:43 a.m. | edited Oct 12 '15, 1:52 p.m.

Perfect, thanks Andrew.
Matt


Greg Hodgkinson commented Sep 07 '10, 10:41 a.m. | edited Oct 12 '15, 9:45 p.m.

Matt, did you have any success with this integration?


Ahsan Asghar commented Dec 09 '10, 5:32 a.m. | edited Oct 12 '15, 9:46 p.m.
Matt, did you have any success with this integration?



I am also interested to know if RTC is successfully integrated with Siebel, for SCM.

Please let us know if it was a success. If yes, it would be great if you can put some tips over here.

Thanks,
Ahsan


Jorge Afonso commented Dec 20 '10, 10:12 a.m. | edited Oct 12 '15, 9:47 p.m.
Matt, did you have any success with this integration?



Hi,

Where do I insert that path variable ? In a config file which RTC picks up when starting up ?

Thanks in advance


permanent link
Robert Elliott (101116) | answered Feb 05 '11, 11:47 a.m.
I have created a full-function batch file integrating Siebel with RTC; it provides for file or directory checkins, adding comments, associating workitems, etc. It allows certain constants to be set while prompting for other values as necessary - dependent on the flags you set within the batch file itself. It also works around the lack of a checkout concept within RTC, the automatic deletion of the sif files by Siebel, and allows you to maintain a history.

To do all that, it relies on some advanced batch file techniques which were a joy to troubleshoot along with discovering the various "gotchas" both Siebel and RTC surprised me with. (Hint of sarcasm)

I hope to demonstrate it as part of Innovate 2011 and elaborate how it is easily used (at great benefit) even when Siebel is not involved - as a standalone utility.

Comments
Alex Bowes commented Apr 16 '12, 7:54 p.m. | edited Oct 12 '15, 9:49 p.m.

Hello Robert,

I am currently attempting to integrate SiebelTools with RTC.
It sounds like you have already done what we are trying to achieve.
Are you able to share your batch file on this forum?

Kind regards,

Alex


vijay bokde commented Mar 18 '13, 5:04 a.m. | edited Oct 12 '15, 9:49 p.m.

Hi Robert,
It would be very kind if you could share the batch file you made for integrating Siebel with RTC.

Vijay


Aziz Alsharafi commented Oct 23 '13, 4:40 a.m. | edited Oct 12 '15, 9:49 p.m.

Hi,

Can you please share the batch file done for Siebel and RTC with me as well.

Thanks


Kevin Lou commented Nov 13 '13, 10:54 a.m.

 Hi Robert, 
Is that possible for you to share the batch file you made for integrating Siebel with RTC?


Thanks,
Kev


PRASANTA CHAUDHURI commented Mar 12 '14, 3:26 a.m. | edited Oct 12 '15, 9:52 p.m.

Hello ,

I am looking for this Integration urgently
Can anyone help me to send the Full working Script for Siebel and RTC ( In my case RTC Version is 4.0.3) Integration with the document how to install .
 .
Please send to -- praschau@in.ibm.com

Thanks

PKC
(Prasanta Kumar Chaudhuri)


Talal Ul Haq commented Mar 06 '15, 7:25 a.m. | edited Oct 12 '15, 9:50 p.m.

 Hi Robert,


Is there a chance you can share the batch file you created for Siebel - RTC integration with me? 

Thanks
Talal Ul Haq 


Kurtulus YILDIRIM commented Mar 30 '15, 1:34 p.m. | edited Oct 12 '15, 9:50 p.m.

Hi Robert,
Could you please share it with me as well? kurtulus@tr.ibm.com
Thank you in advance.


Tim Collier commented Oct 12 '15, 9:44 a.m. | edited Oct 12 '15, 9:51 p.m.

 Hi Robert,


Even a 2-3 year old idea is still useful.  Can you share the Siebel script please?

Tim

showing 5 of 8 show 3 more comments

permanent link
Kevin Lou (312125) | answered Nov 13 '13, 10:51 a.m.
 I am trying to write a batch file to integrate the Siebel with RTC using SCM CLI. Here is how I think it should work:
For action checkout: 
 1. scm accept
 2. scm load
 3. scm lock acquire
For action checkin:
 1. scm checkin (need to get the changeset uuid from the command output. Step 2 and 3 need this uuid.)
 2. scm comment
 3. scm changeset associate
 4. scm deliver
 5. scm lock release

I hope this will work for the Siebel development. 

permanent link
suresh mekala (1) | answered Dec 02 '15, 12:29 p.m.
 I have done this integration successfully with an insurance company, contact me if you need help.

Siebel provides batch file by name srcctrl.bat file.in this file, add SCM command line to check in the files into RTC repo.
This has to be done on all user machines working with Siebel.

Suresh.
smekala@himainc.com

permanent link
suresh mekala (1) | answered Dec 02 '15, 1:36 p.m.
 Here is the script for all you out there, enjoy :-)

NOTE: lscm should be in developers machine path and reside on their machine, or put it on a shared drive and set it in their path.


@echo off
 
set SOFTWARE=lscm
set CHECKIN=%SOFTWARE% checkin
set CHECKOUT=%SOFTWARE% accept -v
set ADD=%SOFTWARE% checkin
set DELIVER=%SOFTWARE% deliver --overwrite-uncommitted
 
 
rem ==================================================================
rem =============== User defined parameters ================================
rem ==================================================================
PATH=RTC PATH to SCM Commands
set RTC_URL=https://svhvms006.himainc.com:9443/ccm/
rem RTC_REPOS=do-not-use
set SRC_USR=RTC userid-uid
set SRC_PSWD=yourpassword
set LOGFILE=D:\development\projects\rtcsiebel.log
set WORKING_DIR=RTC Workspace
rem LOGFILE SHOULD NOT HAVE SPACES IN ITS PATH
rem ==================================================================
rem ==================================================================



 
set OPTIONS=--username %SRC_USR% --password %SRC_PSWD% -v
set COMMENT=-F
set FILE=
 
echo %* >> %LOGFILE%
echo =======================Srcctrl.bat========================== >> %LOGFILE%
 
set ACTION=%1
shift
set DIR=%1
shift
set COMMENT=%COMMENT% %1
set COMMENT_FILE=%1
shift
set FILE=%1
 
SET DIR_NO_QUOTE=###%DIR%###
SET DIR_NO_QUOTE=%DIR_NO_QUOTE:"###=%
SET DIR_NO_QUOTE=%DIR_NO_QUOTE:###"=%
SET DIR_NO_QUOTE=%DIR_NO_QUOTE:###=%
 
if errorlevel 100 goto END
 
if %ACTION%==checkout goto CHECK_OUT
if %ACTION%==checkin goto CHECK_IN
 
:CHECK_OUT
echo ============Check out file %FILE% from Source Control System============ >> %LOGFILE%
 
echo Change local directory to %DIR% >> %LOGFILE%
chdir %DIR% >> %LOGFILE% 2>&1
 
echo Start checking out %FILE% from Source Control System >> %LOGFILE%
echo %CHECKOUT% %RTC_URL%/ %OPTIONS% "%WORKING_DIR%\%rtc_REPOS%" >> %LOGFILE%
lscm accept -v >> %LOGFILE% 2>&1
 
goto END
 
:CHECK_IN
echo ============Check in file %FILE% into Source Control System============ >> %LOGFILE%
 
echo Change local directory to %WORKING_DIR%\%RTC_REPOS% >> %LOGFILE%
chdir %WORKING_DIR% >> %LOGFILE% 2>&1
 
if exist %FILE% goto FILE_EXIST >> %LOGFILE% 2>&1
 
echo Copying %FILE% to local Working Copy Folder: %WORKING_DIR% >> %LOGFILE%
copy "%DIR_NO_QUOTE%%FILE%" "%WORKING_DIR%\%FILE%"
 >> %LOGFILE% 2>&1
 
echo Add %FILE% in case it doesn't exist in Source Control System >> %LOGFILE%
echo %ADD% %WORKING_DIR%\%rtc_REPOS%\%FILE% %OPTIONS% >> %LOGFILE%
%ADD% %WORKING_DIR%\%FILE% >> %LOGFILE% 2>&1
 
goto COMMIT
 
:FILE_EXIST
 
echo Copying %FILE% to local Working Copy Folder: %WORKING_DIR% >> %LOGFILE%
echo copy "%DIR_NO_QUOTE%%FILE%" "%WORKING_DIR%\%FILE%" >> %LOGFILE%
copy "%DIR_NO_QUOTE%%FILE%" "%WORKING_DIR%\%FILE%" >> %LOGFILE% 2>&1
 
:COMMIT
echo Check in %WORKING_DIR%\%FILE% into Source Control System >> %LOGFILE%
echo %CHECKIN% %WORKING_DIR%\%FILE% >> %LOGFILE%
echo ***** COMMENT_FILE ***** >> %LOGFILE%
type %COMMENT_FILE% >> %LOGFILE% 2>&1
echo . >> %LOGFILE%
echo ************************ >> %LOGFILE%
%CHECKIN% %WORKING_DIR%\%FILE% >> %LOGFILE% 2>&1
 
goto END
 
:END
echo ===================End Of Srcctrl.bat====================== >> %LOGFILE%

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.