It's all about the answers!

Ask a question

workspaces and snapshots found in gui, but not by lscm


Vince Thyng (13723653) | asked Feb 20 '14, 3:18 p.m.
edited Feb 22 '14, 7:37 a.m. by Jennifer Cianchetta-Riordan (2512)
I need help determining why a very limited number of workspaces and snapshots are listed by lscm list workspaces/snapshots, but the complete list is available in the eclipse gui.  v4.0.2, and tried with v4.0.4 scmtools, against a v4.0.4 server.  This is first time trying this.  So to be clear, I get 12 workspaces returned by lscm, but in the gui there are dozens or hundreds.

I have tried looking at the properties of the snapshots to identify a difference, but there is not much to them.  From reading some docs, I see that a snapshot can be associated with either a stream or a workspace.  I can not determine which that is when looking at the properties of the snapshot in the gui.  I have confirmed I am using the same credentials in both the gui and lscm, and I am a JazzAdmin, Admin for the project area, and a role with every privilege available.  I suspect there is something fundamental about either lscm or snapshots that I am not understanding.  Like with the lscm list users command, it only shows users without a user id.  I won't rant about how useless that is, but perhaps list snapshots is similar, only showing orphaned snapshots?



Comments
Vince Thyng commented Feb 20 '14, 3:45 p.m.

The fact that I can lscm compare and use the snapshot that I know is there leads me to believe that lscm list is only there to help identify deleted/orphaned objects.  So perhaps someone can just confirm that for me.


Sonia Dimitrov commented Feb 20 '14, 4:56 p.m.
JAZZ DEVELOPER

Hello Vince,

are you running the command with the "-m" option?  Running without will give you 10 results be default.

Sonia


Vince Thyng commented Feb 20 '14, 5:16 p.m.

I am running -m with a large number to return all snapshots on the server, and then I filter with grep to find what I am interested in, because the -n feature doesn't seem to actually filter, and I can't seem to get the snapshots I am interested in to be returned.

2 answers



permanent link
Jennifer Cianchetta-Riordan (2512) | answered Feb 22 '14, 7:36 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
For your reference, here is the documentation for the "list snapshot" command: http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0m6/index.jsp?topic=%2Fcom.ibm.team.scm.doc%2Ftopics%2Flist_snapshots.html

Comments
Vince Thyng commented Feb 24 '14, 2:42 p.m.

Thank you everyone for your responses.  Perhaps I simply don't understand what a prefix is.  We have been under the impression is was simply what the snapshot name started with.  When I run this command I get 10+ snapshots from the stream.
vthyng@mercury:~> lscm list snapshots -r cm-rtc-ccm ts-qa-mainflexmain
(3899) "ss-mfm-dev-14.2.0.0.36" Feb 24, 2014 10:46 AM
(3900) "ss-mfm-dev-14.2.0.0.35" Feb 24, 2014 9:20 AM
(3901) "ss-mfm-dev-14.2.0.0.33" Feb 21, 2014 5:05 PM
(3902) "ss-mfm-dev-14.2.0.0.34" Feb 21, 2014 4:59 PM
(3903) "ss-mfm-dev-14.2.0.0.33" Feb 21, 2014 4:43 PM
(3904) "ss-mfm-dev-14.2.0.0.32" Feb 21, 2014 4:22 PM
(3905) "ss-mfm-dev-14.2.0.0.31" Feb 21, 2014 4:14 PM

However when I run the command I believe should find all snapshots starting with a portion of what I just confirmed exists, I get no snapshots found:
vthyng@mercury:~> lscm list snapshots -r cm-rtc-ccm -n ss-mfm
No snapshots found.


Shashikant Padur commented Feb 24 '14, 11:05 p.m. | edited Feb 24 '14, 11:15 p.m.
JAZZ DEVELOPER

Vince,

Yes, prefix stands for starts with. I just tried it out and it works for me. I am using 4.0.6 but I don't think there was a change to that functionality after 4.0.4.
Can you try putting quotes around the snapshot prefix and rerun the command? "ss-mfm".


Vince Thyng commented Feb 26 '14, 2:43 p.m.

I am using v4.0.2 client libraries against a v4.0.4 server.  Still not getting results:
vthyng@mercury:~> lscm list snapshots -r cm-rtc-ccm -n "ss-mfm"
No snapshots found.
vthyng@mercury:~> scm list snapshots -r cm-rtc-ccm -n "ss-mfm"
No snapshots found.


Vince Thyng commented Feb 26 '14, 2:47 p.m.

In an attempt to get anything to return with the -n flag, I got this:
vthyng@mercury:~> lscm list snapshots -r cm-rtc-ccm -n "a"
(3921) "atlasreports_production_build_20121108-0327" Nov 8, 2012 3:27 AM
(3922) "atlasreports_production_build_20121012-0518" Oct 12, 2012 5:18 AM

vthyng@mercury:~> lscm list snapshots -r cm-rtc-ccm -n "s"
No snapshots found.


Vince Thyng commented Feb 26 '14, 5:38 p.m.

I installed the v4.0.4 scmtools as a test and that fixed it!  But this is still confusing because I can't say that the prefix feature doesn't work from a v4.0.2 client against v4.0.4 server since I was able to get some results with -n "a".


Vince Thyng commented Feb 26 '14, 5:43 p.m.

Also just tried v4.0.3 scmtools and it is not able to use the prefix flag against our v4.0.4 server.

showing 5 of 6 show 1 more comments

permanent link
Shashikant Padur (4.2k27) | answered Feb 20 '14, 10:32 p.m.
JAZZ DEVELOPER
Vince,
The -n option allows you to specify the prefix of the snapshot and does not allow for wildcard characters.
list snapshots -r <repoUri> : lists all the snapshots in the repository.
list snapshots -r <repoUri> -n <prefix> : lists all the snapshots in the repository that has the specified prefix.
list snapshots -r <repoUri> <workspace/stream> : lists all the snapshots associated with the workspace or stream.

If that is not the case, then it is a defect.

Comments
Vince Thyng commented Feb 24 '14, 2:43 p.m.

What is a prefix?  Please see my responses to Jennifer's answer for details.

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.