export_update

Exports a Self Update archive file from Enterprise Manager to the specified location.

Format

emcli export_update 
        -id="internal id" 
        -dir="dir" 
        -omslocal 
emcli export_update 
        -id="internal id" 
        -dir="dir" 
        -host="hostname" 
        [-credential_set_name="setname"] | -credential_name="name" 
          -credential_owner="owner" 

[ ]  indicates that the parameter is optional

Options

  • id

    Internal identification for the update to be exported.

  • dir

    Complete path of the directory where the update is to be exported.

  • omslocal

    Flag specifying that the directory is accessible from the OMS.

  • host

    Target name for a host target where the update is to be exported.

  • 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 option along with the credential_owner option.

  • 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 exports the update archive file to /u01/common/ on host host1.example.com. The host must be the 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 push the remote file.

emcli export_update 
        -id="914E3E0F9DB98DECE040E80A2C5233EB" 
        -dir="/u01/common/" 
        -host="host1.example.com" 
        -credential_set_name="HostCredsNormal" 

Example 2

This example exports the update archive file to /u01/common/ on host host1.example.com. The host must be the managed host target in Enterprise Manager, and the Management Agent on this host must be up and running. The named credentials "host1_creds" owned by user "admin1" are used to push the remote file.

emcli export_update 
        -id="914E3E0F9DB98DECE040E80A2C5233EB" 
        -dir="/u01/common/" 
        -host="host1.example.com" 
        -credential_name="host1_creds" 
        -credential_owner="admin1"