Archive

Archive for April, 2012

Download and install EM CLI 12c

April 16, 2012 Leave a comment

Requirements

Before installing EM CLI, you will need the following:

Java version 1.6.0_25 or greater

Workstation running Solaris, Linux, HPUX, Tru64, AIX, or Windows with NTFS (client installation)

Installing the EM CLI Client

Download the EM CLI Kit to your workstation.

https://<oms_url&gt;:7801/em/console/emcli/download

Set your JAVA_HOME environment variable and ensure that it is part of your PATH. You must be running Java 1.6.0_25 or greater. For example

setenv JAVA_HOME /usr/local/packages/j2sdk1.6.0_25
setenv PATH $JAVA_HOME/bin:$PATH

Install the EM CLI Client. You can install the client portion of EM CLI in any directory either on the same machine as the OMS or on any machine on your network (download the emclikit.jar to that machine).

java -jar emclikit.jar client -install_dir=<emcli client dir>

Execute “emcli help setup” from the EM CLI Client for instructions on how to use the “setup” verb to configure the client for a particular OMS.

EM CLI Client can be configured to work with multiple OMS by doing multiple setups. For example

Setup EM CLI client for OMS1 at location dir1
emcli setup -dir=<dir1> -url=<Url of OMS1> -user=<EM Username for OMS1>

Eg
./emcli setup -url=http://myworkstation.example.com:em_port/em -username=em_user

Setup EM CLI client for OMS2 at location dir2

emcli setup -dir=<dir2> -url=<Url of OMS2> -user=<EM Username for OMS2>

Set the environment variable EMCLI_STATE_DIR to point to the setup dir for the OMS1

setenv EMCLI_STATE_DIR <dir1>

Above will set EM CLI Client to work with OMS1
Set the environment variable EMCLI_STATE_DIR to point to the setup dir for the OMS2
setenv EMCLI_STATE_DIR <dir2>
Above will set EM CLI Client to work with OMS2

Advertisements
Categories: cloud control1 2c