EMCLI Commands Fail After Successful Setup and Login (Doc ID 1356017.1)

Last updated on DECEMBER 01, 2016

Applies to:

Enterprise Manager Base Platform - Version 11.1.0.1 to 11.1.0.1 [Release 11.1]
Information in this document applies to any platform.

Symptoms

emcli setup command seems to work without errors, but subsequent commands fail with:


$ ./emcli login -username="sysman" -password="xxxxxxxx"
Login successful

$ ./emcli logout
Error: Already logged out



You may also see symptoms such as:


./emcli login -username="sysman" -password="xxxxx"
Login successful

$ ./emcli set_standby_agent -src_agent="rac1.domain.com:3872" -dest_agent="rac2.domain.com:3872" -target_name="EH Storage Server 1" -target_type="oracle_cell"
Error: Session expired. Run emcli login to establish a session.



EMCLI log file shows:

INFO: SETUP: localdir=null, omsurl=https://OMS.SERVER.DOMAIN:7799/em, username=sysman, trustall=false, validate=true, ssousername=null, autologin=false, certvalidate=true
Aug 29, 2011 7:57:59 AM oracle.sysman.emCLI.verb.LoginVerb execute
SEVERE:
oracle.sysman.emCLI.omsbrowser.HttpConnectionException:
at oracle.sysman.emCLI.omsbrowser.OMSBrowser.getPageInternal(OMSBrowser.java:701)
at oracle.sysman.emCLI.omsbrowser.OMSBrowser.getPage(OMSBrowser.java:678)
at oracle.sysman.emCLI.verb.LoginVerb.doLogin(LoginVerb.java:502)
at oracle.sysman.emCLI.verb.LoginVerb.execute(LoginVerb.java:351)
at oracle.sysman.emCLI.CLIController.execute(CLIController.java:508)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.sysman.emCLI.CLIController.go(CLIController.java:310)
at oracle.sysman.emCLI.CLIController.main(CLIController.java:148)
Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1611)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:187)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:181)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1035)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:124)
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:516)
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:454)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:884)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1112)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1139)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1123)
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:434)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:166)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1049)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234)
at oracle.sysman.emCLI.omsbrowser.OMSBrowser.testURL(OMSBrowser.java:1335)
at oracle.sysman.emCLI.omsbrowser.OMSBrowser.getPageInternal(OMSBrowser.java:694)
... 10 more
Caused by: java.security.cert.CertificateException
at oracle.sysman.emCLI.omsbrowser.OMSBrowser$MyX509TrustManager.checkServerTrusted(OMSBrowser.java:1084)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1027)
... 23 more

Changes

Unknown.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms