upload_catalog
Uploads the catalog file 'em_catalog.zip' to the software library and submits a Refresh From My Oracle Support job to process the file. You can download the catalog file 'em_catalog.zip' from https://updates.oracle.com/download/em_catalog.zip. You cannot run this command when Enterprise Manager is running in online mode. When Enterprise Manager runs in online mode, the catalog file is downloaded by the Refresh From My Oracle Support job daily.
Format
emcli upload_catalog -from_host="host_name" -file="absolute_path_of_catalog_file" [-cred_name="credential_name" [-cred_owner="credential_owner"]] [ ] indicates that the parameter is optional.
Options
-
from_host
Specifies the host where the catalog file 'em_catalog.zip' is located.
-
file
Specifies the absolute path of the catalog file 'em_catalog.zip' on the host specified for the -from_host option. The catalog file can be accessed by the Management Agent installed on the specified host.
-
cred_name
Specifies the named credentials that must be used to access the specified host. If you do not specify this option, the preferred normal credentials of the specified host will be used by default.
-
cred_owner
Specifies the owner of the named credentials that must be used to access the specified host. If you do not specify this option, the current login user is assumed to be the owner of the named credentials by default.
Examples
Example 1
The following example uploads the em_catalog.zip file, which is located at /scratch/em_catalog.zip on h1.example.com, to the software library:
emcli upload_catalog -file="/scratch/em_catalog.zip" -from_host=h1.example.com
Example 2
The following example uploads theem_catalog.zip, which is located at /scratch/em_catalog.zip on h1.example.com, to the software library, using the named credentials AIMECRED:
emcli upload_catalog -file="/scratch/em_catalog.zip" -from_host=h1.example.com -cred_name=AIMECRED