RE: OEM 12c new install emcli question
Date: Thu, 12 Nov 2015 13:10:30 -0800 (PST)
Message-ID: <e0bbf5ab-9b1e-4c4f-b4f8-170a718d0863_at_default>
If I remember right, it’s automatically installed, but not setup. Setup still requires entering URL and username. So the steps of downloading and deploying the client on the OMS are done for you.
http://docs.oracle.com/cd/E24628_01/em.121/e17786/deploy.htm#EMCLI117��
From: Chris Taylor [mailto:christopherdtaylor1994_at_gmail.com]
Sent: Thursday, November 12, 2015 3:07 PM
To: Courtney Llamas
Cc: Peter Sharman; oracle-l_at_freelists.org
Subject: Re: OEM 12c new install emcli question
Yay that part works!
So, why is there not a step in the Install Guide for OEM 12c to tell you that you need to setup emcli before you can use those commands? If there is, I missed it (which is entirely possible).
Chris
On Thu, Nov 12, 2015 at 1:40 PM, Courtney Llamas <HYPERLINK "mailto:courtney.llamas_at_oracle.com" \ncourtney.llamas_at_oracle.com> wrote:
It sounds like your emcli URL is not setup. http://docs.oracle.com/cd/E24628_01/em.121/e17786/deploy.htm#EMCLI127
./emcli setup -url=http://omsmachine.example.com:em_port/em
-username=em_user
Adding –trustall may be necessary…
When running help followed by the verb, you’ll get extended information, such as follows:
./emcli help get_ca_info
Syntax
Standard Mode
emcli get_ca_info
[-ca_id="ca_id"]
[-details]
[-separator="separator:attribute_name:character"]
Interactive or Script Mode
get_ca_info(
[ca_id="ca_id"]
[,details=True/False]
[,separator="separator:attribute_name:character"]
)
Description
Displays information about the Certificate Authorities.
and the Agent names whose certificates are issued by the CA(s) when -details is specified.
Options
-ca_id
Certificate Authority ID for which the information is to be displayed
-details
For each CA, display the list of Agent names whose certificates are issued by it
-separator
By default multi-value input attributes use the semicolon ( ; ) character as separator.Specifying this option overrides the default separator value.
Example: separator="<attribute_name=sep_char>"
where attribute_name is name of the attribute for which you want to override separator character and sep_char is new separator character
Example: separator="att=#"
Exit Codes
0 On sucess
Non-zero value means verb processing was not successful.
Examples
emcli get_ca_info -ca_id="1;2" -details
Since
11.1.0.1.0.0 version.
Output of get_ca_info should look similar to below:
./emcli get_ca_info
Info about CA with ID: 1
CA is configured
Signature algorithm : sha512
Key strength : 1024
DN: CN=HYPERLINK "http://xxxxx.oracle.com" \nxxxxx.oracle.com, C=US, ST=CA, L=EnterpriseManager on HYPERLINK "http://xxxx.oracle.com" \nxxxx.oracle.com, OU=EnterpriseManager on HYPERLINK "http://xxxx.oracle.com" \nxxxx.oracle.com, O=EnterpriseManager on HYPERLINK "http://xxxx.oracle.com" \nxxxx.oracle.com
Serial# : -1892967683925988465
Valid From: Tue Nov 03 08:08:05 PST 2015
Valid Till: Sat Nov 01 08:08:05 PDT 2025
Number of Agents registered with CA ID 1 is 1
From: Peter Sharman
Sent: Thursday, November 12, 2015 1:29 PM
To: Courtney Llamas; HYPERLINK "mailto:christopherdtaylor1994_at_gmail.com" \nchristopherdtaylor1994_at_gmail.com
Cc: HYPERLINK "mailto:oracle-l_at_freelists.org" \noracle-l_at_freelists.org
Subject: RE: OEM 12c new install emcli question
If memory serves me correctly (which is more than usually dubious the day after surgery!) that emcli help output Chris posted was what you get before running emcli setup? My emcli help command returns a lot more than that on 12.1.0.5. But just to show the incredibly useful output on that particular verb:
bash-4.1$ emcli help | grep get_ca_info
get_ca_info -- Display the info about the Certificate Authorities
Told you it was useful! J
Pete
Oracle logo
Pete Sharman
Database Architect, DBaaS / DBLM
Enterprise Manager Product Suite
33 Benson Crescent CALWELL ACT 2905 AUSTRALIA
Phone: HYPERLINK "tel:+61262924095" \n+61262924095 | | Mobile: HYPERLINK "tel:%2B61414443449" \n+61414443449 Email: HYPERLINK "mailto:pete.sharman_at_oracle.com" \npete.sharman_at_oracle.com Twitter: _at_SharmanPete LinkedIn: HYPERLINK "http://au.linkedin.com/in/" \nau.linkedin.com/in/petesharman Website: HYPERLINK "http://petewhodidnottweet.com" \npetewhodidnottweet.com
_____
"Controlling developers is like herding cats."
Kevin Loney, Oracle DBA Handbook
"Oh no, it's not, it's much harder than that!"
Bruce Pihlamae, long term Oracle DBA
_____
From: Courtney Llamas
Sent: Friday, November 13, 2015 4:45 AM
To: HYPERLINK "mailto:christopherdtaylor1994_at_gmail.com" \nchristopherdtaylor1994_at_gmail.com
Cc: HYPERLINK "mailto:oracle-l_at_freelists.org" \noracle-l_at_freelists.org
Subject: Re: OEM 12c new install emcli question
Be sure to run
emcli sync
And then try
emcli help get_ca_info
Sent from my iPhone
On Nov 12, 2015, at 11:08 AM, Chris Taylor <HYPERLINK "mailto:christopherdtaylor1994_at_gmail.com" \nchristopherdtaylor1994_at_gmail.com> wrote:
I've installed OEM 12c (12.1.0.5) on a Linux x86-64 server and I'm going the OEM Cloud Control Security Guide now (http://docs.oracle.com/cd/E24628_01/doc.121/e36415/sec_features.htm#EMSEC13024)
For one of the emcli commands to check the certificates it says run this command:
emcli get_ca_info -ca_id="1;2" -details
However, I get the following error:
/oracle/oem/product/middleware/oms/bin/emcli get_ca_info -ca_id="1;2" -details Error: The command name "get_ca_info" is not a recognized command. Run the "help" command for a list of recognized commands. You may also need to run the "sync" command to synchronize with the current OMS.
So, I'm curious - is the emcli delivered with 12.1.0.5 different than the one referenced in the documentation?
Here's what I get if I type emcli help
/oracle/oem/product/middleware/oms/bin/emcli help Summary of commands:
argfile -- Execute emcli verbs from a file help -- Get help for emcli verbs (Usage: emcli help [verb_name]) invoke_ws -- Invoke EM web service. login -- Login to the EM Management Server (OMS) logout -- Logout from the EM Management Server setup -- Setup emcli to work with an EM Management Server status -- List emcli configuration details sync -- Synchronize with the EM Management Server version -- List emcli verb versions or the emcli client version
Help?
Chris
-- http://www.freelists.org/webpage/oracle-lReceived on Thu Nov 12 2015 - 22:10:30 CET