Configuring the SMT Importer

To run SMT Importer with a default configuration file, you have to create a configuration file at

/etc/opt/opsware/sles_import/smt_import.conf.

A configuration file template is available at /etc/opt/opsware/sles_import/smt_import.conf-sample.

To create a configuration file:

  1. cp /etc/opt/opsware/sles_import/smt_import.conf-sample /etc/opt/opsware/sles_import/smt_import.conf

  2. chmod u+w /etc/opt/opsware/sles_import/smt_import.conf
  3. Edit the /etc/opt/opsware/sles_import/smt_import.conf file:
    1. Provide values to the opsware_user and opsware_password fields for configuring the SA credentials.
    2. In the host option, provide the hostname/IP address of your SMT Server .

      Note If you have a custom port, you can append ':<port number>’ to the IP address or hostname. If the port number is not provided, the importer can use the default HTTPS port which is 443.

    3. In the User and Password options, provide the user name and password of your SMT Server.
    4. In the content_labels option, you can list the channels you want to import. If you are unsure what values are valid, you can save the configuration file and run the following command:

      /opt/opsware/sles_import/bin/smt_import --show_labels

      At this stage, the importer can access SA and your SMT Server to determine the default supported labels. Later, you can come back and fill in the content labels option with valid values.

      Content labels can also be specified in the command line, provided that all required options (that is, the SMT hostname, user, and password) are defined in the configuration file. If no label is provided in the command line or in the configuration file, then all default supported content labels will be imported.