sync
Synchronizes the EM CLI client with an OMS. After synchronization, all verbs and associated command-line help available to this OMS become available at the EM CLI client. Synchronization occurs automatically during a call to setup.
There are two ways to perform sync:
-
With parameters
-
Without parameters
sync connects to the same OMS against which it has been set up and downloads the latest jar files.
Standard Mode
emcli sync [-url="http[s]://host:port/em"] [-username=<EM_username>] [-password=<EM_user's_password>] [-trustall] [-novalidate] [ ] indicates that the parameter is optional.
Options
-
url
URL of the Enterprise Manager OMS. Both http and https are supported, but https is recommend for security purposes.
-
username
User name to be used by all subsequent EM CLI commands when contacting the OMS.
-
password
Enterprise Manager user's password. If you do not specify this option, you are interactively prompted for the password. Providing a password on the command line is insecure and should be avoided.
-
trustall
Automatically accepts any server certificate from the OMS, which results in lower security. Also indicates that the setup directory is local and trusted. Either pass this option or the set environment variable EMCLI_CERT_LOC, which has the certificate keystore file. If the file is not present, the system stores the certificate at this location.
-
novalidate
Does not authenticate the Enterprise Manager user name against the OMS. Assumes that the given username is valid.
Examples
This example synchronizes the EM CLI client with the OMS by connecting as Enterprise Manager user john_doe. The user is prompted for the password interactively.
emcli sync -url="https://mymachine.example.com" -username=john_doe -trustall -novalidate