SUSE Support

Here When You Need Us

How to identify SCC directories with access tokens

This document (7017715) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 11
SUSE Linux Enterprise Server 12
Subscription Management Tool 11
Subscription Management Tool 12

Situation

For whatever reasons customer likes to browse SCC directories directly to fetch files via an 3rd party application. Since SCC works with a token based approach, access to the directories using the mirror credentials will not longer work. The following information is only intended to provide a way how the information can be retrieved to be used to identify the repository urls including their tokens to be used in a 3rd party application.

REMEMBER: The only supported solutions to fetch packages are:
  • direct registration
  • SMT
  • SUSE Manager

Resolution

On a SLES 12 SP1 with SMT installed:
  1. sle12smt:~ # smt-scc-sync --todir /tmp/export/
    Write to directory: /tmp/export/
    Downloading Product and Repository information
    Download  (100%)
    Downloading Subscription information
    Download  (100%)
    Downloading Order information
    Download  (100%)
    Flagging repositories which can be mirrored
    Download  (100%)

  2. sle12smt:~ # cat /tmp/export/organizations_repositories.json | python -m json.tool| grep -A 1 SLES12-SP1-Updates
            "description": "SLES12-SP1-Updates for sle-12-x86_64",
            "distro_target": "sle-12-x86_64",
    --
            "name": "SLES12-SP1-Updates",
            "url": "https://updates.suse.com/SUSE/Updates/SLE-SERVER/12-SP1/x86_64/update/?<$TOKENSTRING>"
For SLES 11 based SMT systems the organizations_repositories.json file may need to be copied off to a different system where the json.tool is available.

Also keep in mind, the tokens are different for each repository.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7017715
  • Creation Date: 13-Jun-2016
  • Modified Date:03-Mar-2020
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.