Using mgr-sync
The mgr-sync tool is used at the command prompt.
It provides functions for using SUSE Manager that are not always available in the Web UI.
The primary use of mgr-sync is to connect to the SUSE Customer Center, retrieve product and package information, and prepare channels for synchronization with the SUSE Manager Server.
This tool is designed for use with a SUSE support subscription. It is not required for open source distributions, including openSUSE, CentOS, and Ubuntu.
The available commands and arguments for mgr-sync are listed in this table.
Use this syntax for mgr-sync commands:
mgr-sync [-h] [--version] [-v] [-s] [-d {1,2,3}] {list,add,refresh,delete}
| Command | Description | Example Use |
|---|---|---|
list |
List channels, organization credentials, or products |
|
add |
Add channels, organization credentials, or products |
|
refresh |
Refresh the local copy of products, channels, and subscriptions |
|
delete |
Delete existing SCC organization credentials from the local system |
|
sync |
Synchronize specified channel or ask for it when left blank |
|
To see the full list of options specific to a command, use this command:
mgr-sync <command> --help
| Option | Abbreviated option | Description | Example Use |
|---|---|---|---|
help |
|
Display the command usage and options |
|
version |
N/A |
Display the currently installed version of |
|
verbose |
|
Provide verbose output |
|
store-credentials |
|
Store credentials a local hidden file |
|
debug |
|
Log additional debugging information. Requires a level of 1, 2, 3. 3 provides the highest amnount of debugging information |
|
no-sync |
N/A |
Use with the |
|
Logs for mgr-sync are located in:
-
/var/log/rhn/mgr-sync.log -
/var/log/rhn/rhn_web_api.log