It's all about the answers!

Ask a question

lscm Command


Leandro Leal (14624345) | asked Sep 27 '11, 1:45 p.m.
edited Jun 04 '12, 10:52 a.m. by Spencer Murata (2.3k115971)
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

Accepted answer


permanent link
Spencer Murata (2.3k115971) | answered Jun 04 '12, 10:52 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
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

6 other answers



permanent link
Brent Ulbricht (2.5k11) | answered Sep 28 '11, 12:33 p.m.
JAZZ DEVELOPER
edited Jun 04 '12, 10:53 a.m. by Spencer Murata (2.3k115971)
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

permanent link
Claudio Neves (4133) | answered Feb 16 '12, 12:35 p.m.
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

permanent link
Brent Ulbricht (2.5k11) | answered Sep 27 '11, 2:20 p.m.
JAZZ DEVELOPER
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

permanent link
Leandro Leal (14624345) | answered Sep 27 '11, 4:10 p.m.
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

permanent link
Leandro Leal (14624345) | answered Sep 29 '11, 9:22 a.m.
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!!

permanent link
Jakub Rzeznik (1632) | answered Mar 11 '12, 2:12 p.m.
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

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.