export_swlib_cache_files

Exports Software Library entity files from a compressed file to a file system location on a host target.

Format

emcli export_swlib_cache_files
      -dest_dir_path="dest_dir_path"
      -zip_file_name="zip_file_name"
      -dest_host_name="dest_host_name"
      -urn_file_entry="urn_file_entry"
      -dest_host_tmp_dir="dest_host_tmp_dir"
      -credential_set_name="setname"] | [-credential_name="name" -credential_owner="owner"]

Parameters

  • dest_dir_path

    Location on the host where the compressed file is created.

  • zip_file_name

    Name of the compressed file created.

  • dest_host_name

    Name of the host target on which the compressed file is created.

  • urn_file_entry_file

    File on the emcli client host which contains identifier of the entity revision followed by # followed by file name. If the identifier is not followed by #, all file entries of the entity revision will be exported.

  • dest_host_tmp_dir

    Directory on the destination host in which temporary files are created for export.

  • credential_set_name

    The set name of the preferred credential stored in the Management Repository for the host target. It can be one of the following:

    • HostCredsNormal - default unprivileged credential set

    • HostCredsPriv - privileged credential set

  • credential_name

    Named credential stored in the Management Repository. This option must be specified along with the -credential_owner option.

  • credential_owner

    Owner of a named credential stored in the Management Repository. This option must be specified along with the -credential_name option.

Example

Creates a zip file /u01/export_loc/exportedfile.zip on the host export.us.acme.com which has file modules/zipUtil.pm from entity with id oracle:defaultService:em:provisioning:1:cmp:COMP_Component:SUB_Generic:B1B1880C6A8C62AAE0548C42832D14:0.1 using the named credential 'MyAcmeCreds' owned by 'ACME_USER'. Temporary files will be created in the / temp directory of the host export.us.acem.com.

emcli export_swlib_cache_files
      -dest_dir_path="/u01/export_loc"
      -zip_file_name="exportedfile.zip"
      -dest_host_name="export.us.acme.com"
      -urn_file_entry_file="/u01/export_urnfile"
      -dest_host_tmp_dir="/tmp"
      -credential_name="MyAcmeCreds"
      -credential_owner="ACME_USER"