download_file

Download a file or files (tar) from a remote target host.

Format

emcli download_file

Options

  • -host_target_name

    Name of the remote target host.

  • -host_user

    Username of the remote target host.

  • -host_password

    Password of the remote target host.

  • -cred_set

    Credential Set of the remote target host.

  • -cred_name

    Credential Name of the remote target host.

  • -cred_owner

    Credential Owner of the remote target host.

  • -file

    Path to a file to be downloaded from a remote target host.

  • -files_to_tar

    Path to multiple files separated by space ' ' to be tar gzipped and downloaded from a remote target host.

Examples

Example 1

Downloads a file from a remote target host using default preferred credentials set.

emcli download_file -host_target_name="slc09zpy.sample.com"
    -file="/ade/a.txt"

Example 2

Downloads a file from a remote target host using specified preferred credentials set.

emcli download_file -host_target_name="slc09zpy.sample.com" -cred_set="hostCred" -file="/ade/a.txt"

Example 3

Downloads a file from a remote target host using named credentials.

emcli download_file -host_target_name="slc09zpy.us.oracle.com" -cred_name="SYSMAN_SLC09ZPY" -file="/ade/a.txt"

Example 4

Downloads a file from a remote target host using named credentials and credentials owner.

emcli download_file -host_target_name="slc09zpy.us.oracle.com" -cred_name="SYSMAN_SLC09ZPY" -cred_owner="SYSMAN" -file="/ade/a.txt"

Example 5

Downloads a file from a remote target host using type-in new overridden credentials.

emcli download_file -host_target_name="slc09zpy.us.oracle.com" -host_user="guest" -file="/ade/a.txt"

Example 6

Downloads multiple files from a remote target host.

emcli download_file -host_target_name="slc09zpy.us.oracle.com" -cred_name="SYSMAN_SLC09ZPY" -files_to_targz="/ade/a.txt /ade/b.txt"