Re: OEM 12c new install emcli question

From: Chris Taylor <christopherdtaylor1994_at_gmail.com>
Date: Thu, 12 Nov 2015 15:06:52 -0600
Message-ID: <CAP79kiSLEwjZpqjuf-We5OKkkK8NE3qxf4gbuWzDkFKTsTYR8g_at_mail.gmail.com>



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 <courtney.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=xxxxx.oracle.com, C=US, ST=CA, L=EnterpriseManager on
> xxxx.oracle.com, OU=EnterpriseManager on xxxx.oracle.com,
> O=EnterpriseManager on xxxx.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; christopherdtaylor1994_at_gmail.com
> *Cc:* oracle-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
>
> [image: Oracle logo]
>
> Pete Sharman
> Database Architect, DBaaS / DBLM
> Enterprise Manager Product Suite
> 33 Benson Crescent CALWELL ACT 2905 AUSTRALIA
>
> Phone: +61262924095 | | Mobile: *+61414443449 <%2B61414443449>*
> Email: pete.sharman_at_oracle.com Twitter: _at_SharmanPete LinkedIn:
> au.linkedin.com/in/petesharman
> Website: petewhodidnottweet.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:* christopherdtaylor1994_at_gmail.com
> *Cc:* oracle-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 <
> christopherdtaylor1994_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-l


image001.jpg
Received on Thu Nov 12 2015 - 22:06:52 CET

Original text of this message