Import Media Tool syntax and options

The following section provides the syntax and command line options for the Import Media tool.

To start the tool, log onto the Software Repository server (Slice Component bundle host) and enter:


import_media [options] [network path]

The following networks paths are valid:

  • NFS:

    nfs://<NFS server>/<exported path>

  • Windows media hosted on an SA SMB server share:

    smb://<SMB Server>/OSMEDIA/<path>@@MediaServer@/OS Media

    The username/password must be preceded by “@@” and ended by “@”. For example:

    smb://user4312.example.com\thsu_usr:smith123!@@MediaServer@/OS Media

  • Window media in CIFS server share:

    cifs://<CIFS Server>/<share>/<path>

    If the path contains spaces or shell metacharacters, it must be placed in quotes so that the shell passes it to import_media as a single argument.

    The following table lists the command line options available for the import media command.

Import Media Tool Command Line options

Import Media Tool Option

Description

--help

Display this help.

--folder

Override Folder location. Default is:
“/Package Repository/OS Media/<Platform Name>“.

--medianame=<displayname>

Override automatically-generated display name. Note: Use '_' to escape spaces in the name.

--removeMRL=<mrlid> Remove existing Media Resource Locator from SA specified by mrlid.
--listMRLs List Media Resource Locators available in SA.

-hpsa-username

Username for authenticating to SA.

If you do not supply -hpsa-username on the command line, you are prompted to enter it. If you do not have a valid SA user name and password, contact your SA administrator.

-hpsa-password

Password for the SA username. Warning: This option is not recommended, since passing passwords as command line options is insecure. When this option is omitted, the user is prompted for the password securely.

--mrl<mrl>

Override automatic OS Media path generation.

--mrl=//MEDIA/PUB/WINNT/SERVER/I386

--mrl=nfs://media/export/media/redhat/7.2

--smbuser=<user>

User for SMB access. Default is “root”.

--smbpasswd=<password>

Use this password for SMB access. Note: This appears in cleartext on the command line. Warning: This option is not recommended, since passing passwords as command line options is insecure. When this option is omitted, the user is prompted for the password securely.

--logfile=<logfile>

Override log file location. Default is:

/var/log/opsware/mm_wordbot/import_media.log

--wimimage

The path supplied refers to a (WIM) image. Be sure to also supply --platform=<platform>, since the target platform cannot be autodetected.

--platform=<platform>

Override automatic platform detection. Must match an existing SA platform defined in the Model Repository.

--progress=[yes]

Toggle display of progress (default is yes). For example:

--progress=no

--resolve-symlinks=[yes]

Toggle resolution of symlinks (default is yes).

--upload = [yes]

Uploads all packages to the Software Repository so that OS Provisioning can install them after initial provisioning (default is no).