Database Reference
In-Depth Information
Listing 3-5.
Output of EM CLI setup in command-line mode
[oracle ~]$ emcli status
Oracle Enterprise Manager 12c EMCLI12.1.0.3.0.
Copyright (c) 1996, 2013 Oracle Corporation and/or its affiliates. All rights reserved.
Instance Home : /u01/app/oracle/product/12.1.0/gc_inst/em/EMGC_OMS1/sysman/
emcli/setup/.emcli
Verb Jars Home : null
Status : Configured
EMCLI Home : /u01/app/oracle/product/12.1.0/mw_1/oms/bin
EMCLI Version : 12.1.0.3.0
Java Home : /u01/app/oracle/product/12.1.0/mw_1/jdk16/jdk/jre
Java Version : 1.6.0_43
Log file : /u01/app/oracle/product/12.1.0/gc_inst/em/EMGC_OMS1/sysman/
emcli/setup/.emcli/.emcli.log
EM URL :
https://oem.example.com:7802/em
EM user : SYSMAN
Auto login : false
Trust all certificates : true
After installing EM CLI on a system other than the OMS server, it must be explicitly configured before it will
function with an Enterprise Manager installation. Executing the
setup
command against an EM CLI installation that
has not yet been configured returns an error, as shown in Listing 3-6.
Listing 3-6.
An EM CLI installation that has not yet been set up
[oracle ~]$ emcli setup
Oracle Enterprise Manager 12c 3.
Copyright (c) 1996, 2013 Oracle Corporation and/or its affiliates. All rights reserved.
No current OMS
The configuration is done with the
setup
verb followed by a number of parameters. The
url
parameter is the
same as the address used in the browser to login to Enterprise Manager. The
dir
parameter specifies the directory in
which to install the client. The
username
parameter indicates which username the client will use for connecting. This
noautologin
parameter determines that a user name and password will need to be provided in order to gain access to
the OMS before an EM CLI session can be established. The
trustall
parameter indicates that certificates on the OMS
will be trusted automatically. The following
dir
parameter in the EM CLI setup command is using shell expansion to
indicate that the installation directory is the current working directory:
[oracle ~]$ emcli -url=https://<hostname of grid server>:1159/em -dir=$(pwd)
-username=<username> -noautologin -trustall
Running the
setup
command in interactive mode reveals that neither the URL nor the user has been defined. This
is because these parameters must be set each time for both interactive and scripting modes, as shown in Listing 3-7.
Search WWH ::
Custom Search