Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

lscm Command

good afternoon,

I'm using the command lscm in a step Build Forge but does not work. What to do to run the commands lscm?

This is my code:

SET PATH=C:\Archivos de programa\IBM\TeamConcert\scmtools\eclipse
lscm login -r https://serv:9443/ccm -u bforge -P bforge -c
lscm create workspace -r https://serv:9443/ccm -s Stream BuildSpace
lscm logout -r https://serv:9443/ccm

0 votes


Accepted answer

Permanent link
lscm will start a daemon process, and SCM is a one shot deal.  The daemon will load the SCM files and will reuse them on subsequent calls.  That is the reason it can act poorly in automated environments.  If you are using many commands together and decide to use lscm, make sure to clean up the daemon process at the end of the script.  That will make sure the environment is clean for the next run.
Spencer Murata selected this answer as the correct answer

0 votes


6 other answers

Permanent link
Hi,

Do you have to use lscm? I would recommend using the 'scm' tool instead (same directory). While I understand there are performance considerations for lscm, I have found that its behavior in some environments like Ant exec task and others is not always what is expected.

Brent Ulbricht
RTC Build Lead

1 vote


Permanent link
Hello,

Is the source for the lscm and scm tools available? We would like to better understand how exactly lscm works. It's not behaving well in our environment, with lots of lscm processes that never die. We would like to understand how the lscm daemon works, how it decides when to shutdown itself, for how long it waits for further commands before shuting down, etc.

Thanks,
Claudio Neves

1 vote


Permanent link
good afternoon,

I'm using the command lscm in a step Build Forge but does not work. What to do to run the commands lscm?

This is my code:

SET PATH=C:\Archivos de programa\IBM\TeamConcert\scmtools\eclipse
lscm login -r https://serv:9443/ccm -u bforge -P bforge -c
lscm create workspace -r https://serv:9443/ccm -s Stream BuildSpace
lscm logout -r https://serv:9443/ccm


Hi,

What output do you get (error, hang, other)?

Brent Ulbricht
RTC Build Lead

0 votes


Permanent link
good afternoon,

I'm using the command lscm in a step Build Forge but does not work. What to do to run the commands lscm?

This is my code:

SET PATH=C:\Archivos de programa\IBM\TeamConcert\scmtools\eclipse
lscm login -r https://serv:9443/ccm -u bforge -P bforge -c
lscm create workspace -r https://serv:9443/ccm -s Stream BuildSpace
lscm logout -r https://serv:9443/ccm


Hi,

What output do you get (error, hang, other)?

Brent Ulbricht
RTC Build Lead


this is the output of BF:

108 27/09/11 13:19 EXEC Entorno local establecido en 'Spanish_Spain.1252'
211 27/09/11 13:19 MKDIR Se ha creado .
212 27/09/11 13:19 RESULT 0 (0)
312 27/09/11 13:19 EXEC Entorno local establecido en 'Spanish_Spain.1252'
416 27/09/11 13:19 EXEC Realizando expansin de variable en lnea de mandatos
417 27/09/11 13:19 SCRIPT SET PATH=C:\Archivos de programa\IBM\TeamConcert\scmtools\eclipse
418 27/09/11 13:19 SCRIPT lscm login -r https://bodapps39:9443/ccm -u bforge -P bforge -c
419 27/09/11 13:19 SCRIPT lscm workspace delete BuildSpace -r https://bodapps39:9443/ccm
420 27/09/11 13:19 SCRIPT lscm create workspace -r https://bodapps39:9443/ccm -s Integracion_Reclamos BuildSpace
421 27/09/11 13:19 SCRIPT lscm load -r https://bodapps39:9443/ccm -d \\bodapps21\Desarrollo\BPMS_Fuentes BuildSpace Reclamo_Ultimu_SCM --force
422 27/09/11 13:19 SCRIPT lscm logout -r https://bodapps39:9443/ccm
423 27/09/11 13:19 EXEC inicio
424 27/09/11 13:19 EXEC Se ha iniciado la sesin en https://bodapps39:9443/ccm
425 27/09/11 13:19 EXEC fin
426 27/09/11 13:19 RESULT 0 (0)


If I use these steps using cmd.exe work but not run with BF, the sources arent downloaded from the stream

0 votes


Permanent link
Hi,

Do you have to use lscm? I would recommend using the 'scm' tool instead (same directory). While I understand there are performance considerations for lscm, I have found that its behavior in some environments like Ant exec task and others is not always what is expected.

Brent Ulbricht
RTC Build Lead


Very Thanks!!!! this work for me!!

0 votes


Permanent link
Hello,

Is the source for the lscm and scm tools available? We would like to better understand how exactly lscm works. It's not behaving well in our environment, with lots of lscm processes that never die. We would like to understand how the lscm daemon works, how it decides when to shutdown itself, for how long it waits for further commands before shuting down, etc.

Thanks,
Claudio Neves


Hi Claudio,
As far as I know lscm is intended as interactive tool where user sit in front of the console and controls the session. I have found that scm (having same capabilities) is much better for non-interactive uses (like automation e.g. Build Forge or unstable sessions that an be interrupted leaving stray sessions active).

Regards,
Jakub

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 1,203

Question asked: Sep 27 '11, 1:45 p.m.

Question was seen: 11,091 times

Last updated: Jun 04 '12, 10:53 a.m.

Confirmation Cancel Confirm