Cannot get all the streams by command line
I have access right to the streams, I am able to get those streams by Eclipse, but when I run command to get the stream list, I got different result, cannot get all the stream list, is there any way to set up the access right of command? do I need to install license in the command client side?
Accepted answer
samuel wang,
And you are positive that the cached credentials you have for the -r argument are the same ones you are using in Eclipse? You may want to logout of those credentials and perform a 'scm login' on them again just to make sure.
I can't reproduce your issue, everything works as expected for me when I use the same user in Eclipse as the cached repository credentials on the command-line.
I suppose at this point I would focus on a specific project to figure out the issue. Choose one of the Project Areas where you see all of its streams from Eclipse but not on the command-line. When you use your command pass that '--projectarea xxx' argument to isolate which streams you do and do not see from the CLI. Whichever one you do not see from the CLI, open it up on Eclipse and check the Visibility/Owned-By status of the stream compared to another that is visible from the CLI just to see if anything stands out.
And you are positive that the cached credentials you have for the -r argument are the same ones you are using in Eclipse? You may want to logout of those credentials and perform a 'scm login' on them again just to make sure.
I can't reproduce your issue, everything works as expected for me when I use the same user in Eclipse as the cached repository credentials on the command-line.
I suppose at this point I would focus on a specific project to figure out the issue. Choose one of the Project Areas where you see all of its streams from Eclipse but not on the command-line. When you use your command pass that '--projectarea xxx' argument to isolate which streams you do and do not see from the CLI. Whichever one you do not see from the CLI, open it up on Eclipse and check the Visibility/Owned-By status of the stream compared to another that is visible from the CLI just to see if anything stands out.
Comments
I closed Eclipse, logged in IE browser, I can see all the streams from the browser, but I cannot see by command line, I am sure the credential is correct, I also tried with:
lscm -u y list stream -m 1000 -r xxx -u xxx -P xxx, but still cannot see all the streams.
from the browser, can I see those streams which I have no access right?
I can get all the streams by using the parameter of projectarea, thanks.
One other answer
samuel wang,
What command are you using? Make sure you're giving it a --maximum that is high enough, by default it returns only the first 10 streams.
Running 'scm.exe --non-interactive --show-uuid y list streams --maximum 99999999 -r MY_CREDS' successfully returns me all the streams in every project area that is visible to my my credentials for MY_CREDS.
What command are you using? Make sure you're giving it a --maximum that is high enough, by default it returns only the first 10 streams.
Running 'scm.exe --non-interactive --show-uuid y list streams --maximum 99999999 -r MY_CREDS' successfully returns me all the streams in every project area that is visible to my my credentials for MY_CREDS.