Hammer command (or other means) to get channelid
I'm familiar with the command:
myorg="org name goes here"
hammer --csv repository list --organization "$myorg"
And it returns output such as...
57,Red Hat Satellite Tools 6.2 for RHEL 7 Workstation RPMs x86_64,Red Hat Enterprise Linux Workstation,yum,https://cdn.redhat.com/content/dist/rhel/workstation/7/7Workstation/x86_64/sat-tools/6.2/os
29,Red Hat Satellite Tools 6.2 for RHEL 7 Server RPMs x86_64,Red Hat Enterprise Linux Server,yum,https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/sat-tools/6.2/os
108,Red Hat Satellite Tools 6.2 for RHEL 6 Server RPMs x86_64,Red Hat Enterprise Linux Server,yum,https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/sat-tools/6.2/os
109,Red Hat Satellite Tools 6.2 for RHEL 6 Server RPMs i386,Red Hat Enterprise Linux Server,yum,https://cdn.redhat.com/content/dist/rhel/server/6/6Server/i386/sat-tools/6.2/os
60,Red Hat Satellite Capsule 6.2 for RHEL 7 Server RPMs x86_64,Red Hat Satellite Capsule,yum,https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/sat-capsule/6.2/os
61,Red Hat Satellite Capsule 6.2 for RHEL 6 Server RPMs x86_64,Red Hat Satellite Capsule,yum,https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/sat-capsule/6.2/os
389,Red Hat Satellite 6.3 - Puppet 4 for RHEL 7 Server RPMs x86_64,Red Hat Satellite,yum,https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/satellite/6.3-puppet4/os
388,Red Hat Satellite 6.3 for RHEL 7 Server RPMs x86_64,Red Hat Satellite,yum,https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/satellite/6.3/os
59,Red Hat Satellite 6.2 for RHEL 7 Server RPMs x86_64,Red Hat Satellite,yum,https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/satellite/6.2/os
58,Red Hat Satellite 6.2 for RHEL 6 Server RPMs x86_64,Red Hat Satellite,yum,https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/satellite/6.2/os
However, if I want to do a reposync, I need the channel id such as:
reposync --gpgcheck -l --repoid=rhel-server-rhscl-7-rpms --download_path=/path/to/the/download/
The repoid in question in this case is "rhel-server-rhscl-7-rpms"
So on one side, I can get most of the information with the hammer --csv repository list --organization "$myorg"
command, however, the output doesn't have the repoid name in the second block I have above.
What command can I use to get the name such as "rhel-server-rhscl-7-rpms"
(for example).
Where this is more useful is when a new channel is released, because I know I can get some of the channel names from things my satellite has synchronized, but if I've never synchronized a new channel (such as satellite 6.3), then I wouldn't just be able to fish in my own filesystem for the name since I hadn't downloaded it yet.
My question is how to get repoids such as " "rhel-server-rhscl-7-rpms" for all the channels.
Appreciate any assistance.
-RJ