It's all about the answers!

Ask a question

rtc cli scm list stream/snapshot gives different ID numbers each run


chi wang (155) | asked Feb 25 '18, 10:59 p.m.

 Hi all,


I am using the RTC SCM CLI utility to run the scm list streams and scm list snapshot commands. I am able to get a list of output but the IDs stated keep changing everytime I run the command.
For example:
1st run gives (1234) "Stream1" MainProjectArea
2nd run gives (2345) "Stream1" MainProjectArea

Is this expected behavior? If not then how can I troubleshoot this problem?

Thanks!


Accepted answer


permanent link
Don Yang (7.7k21114139) | answered Feb 26 '18, 3:22 a.m.

This can be expected.
If you refer to
https://jazz.net/help-dev/clm/index.jsp?re=1&topic=/com.ibm.team.scm.doc/topics/list_streams.html&scope=null

[UUID and Alias section] says:
Aliases are unique to a sandbox. You cannot share them with other team members. You cannot list them. They are not persistent over long spans of time (any alias can be re-used to refer to another object after the set of unused aliases has been exhausted).

So in your case, alias can change every time. If you mean to show UUID, you can try

scm -a n -u y list streams

which will return uuid only for each stream and it should be consistent.

chi wang selected this answer as the correct answer

Comments
chi wang commented Feb 26 '18, 6:37 a.m.

 Thanks a lot, this was exactly what I was looking for but couldn't find this answer in my search. You helped me loads!

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.