Showing posts with label em cli. Show all posts
Showing posts with label em cli. Show all posts

Monday, September 3, 2012

EM CLI Client Setup for OEM 12c Cloud Control


How to setup EMCLI:

We have installed EM CLI client on our Management Host Server during Oracle Enterprise Manager 12c Cloud Control Configuration.  Below is the step by step process we followed for EM CLI Client installation:

Platform: Linux x86

Ø  Go to ecmli download page:
    
·    Below page will appear:


  
Ø  Download EM CLI Kit

    ·     Transfer the downloaded jar file (emclikit.jar) to Management Host server
·         We must have Java version 1.6.0_25 or greater to install emcli.

Ø  Set your JAVA_HOME and PATH environment:

     ·         # echo $JAVA_HOME
/usr/java/jre1.6.0_22

·         # echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/java/jre1.6.0_22/bin

#Make sure the JDK path is set as below

lrwxrwxrwx 1 root root         30 Sep  3 14:28 java -> /usr/java/jdk1.6.0_25/bin/java

 In the above case it is JDK 1.6...you may have a higher version also.




Ø  Install EM CLI client:
·         # mkdir /path/to/emcli

     # cd  /path/to/emcli/

 . # java -jar emclikit.jar client -install_dir=/path/to/emcli
·         # mkdir /path/to/oem12

    # cd /path/to/emcli

   #./emcli setup -dir=/path/to/oem12 -url=https://development2:7802/em/   -username=SYSMAN
Once you enter the above command, it will prompt you to put SYSMAN user password.



After certification chain settings we see message “Emcli setup successful”.

Ø  Set environment variable EMCLI_STATE_DIR to point to the setup directory for the OMS.
·          
      export  EMCLI_STATE_DIR=/path/to/oem12

Happy Reading... :)

Regards,
Saurabh