import_update

Imports a Self Update archive file into Enterprise Manager. Upon successful import, the update is displayed on the Self Update Home in downloaded status for further action.

Format

emcli import_update
        -file="file"
        -omslocal
emcli import_update
        -file="file"
        -host="hostname"
        [-credential_set_name="setname"] | -credential_name="name"
        -credential_owner="owner"

[ ]  indicates that the parameter is optional

Options

  • file

    Complete path name of the update archive file.

  • omslocal

    Flag specifying that the file is accessible from the OMS.

  • host

    Target name for a host target where the file is available.

  • credential_set_name

    Set name of the preferred credential stored in the repository for the host target. Can be one of the following: HostCredsNormal — Default unprivileged credential set HostCredsPriv — Privileged credential set

  • credential_name

    Name of a named credential stored in the repository. You must specify this along with the credential_owner .

  • credential_owner

    Owner of a named credential stored in the repository. You must specify this option along with the credential_name option.

Examples

Example 1

This example imports the file update1.zip. The file must be present on the OMS host. In a multiple OMS setup, any OMS can process the request, so the file should be accessible from the OMS processing the request. This usually means that the file must be kept on a shared location accessible from all OMSes.

emcli import_update 
        -file="/u01/common/update1.zip" 
        -omslocal 

Example 2

This example imports the file update1.zip that is present on the host host1.example.com. The host must be a managed host target in Enterprise Manager, and the Management Agent on this host must be up and running. The preferred unprivileged credentials for host host1.example.com are used to retrieve the remote file.

emcli import_update 
        -file="/u01/common/update1.zip" 
        -host="host1.example.com" 
        -credential_set_name="HostCredsNormal"