Rabu, 30 Oktober 2013

Agent is Unreachable (REASON = unable to connect to http server at https://agent_name:3872/emd/main/. [peer not authenticated]) but the host is reachable



Problem : agent tidak mau di startup
Penyelesaian :

1 Copy AGENT_BASE/core/{version}/jdk/jre/lib/security/java.security to AGENT_BASE/agent_inst/sysman/config/ location.

2 Remove security.provider.1=sun.security.pkcs11.SunPKCS11 (indicated in bold in the example listed below) from agent_inst/sysman/config/java.security
Example: after copying java.security
#
# List of providers and their preference orders (see above):
#
security.provider.1=sun.security.pkcs11.SunPKCS11${java.home}/lib/security/sunpkcs11-solaris.cfg
security.provider.2=sun.security.provider.Sun
security.provider.3=sun.security.rsa.SunRsaSign
security.provider.4=com.sun.net.ssl.internal.ssl.Provider
security.provider.5=com.sun.crypto.provider.SunJCE
security.provider.6=sun.security.jgss.SunProvider
security.provider.7=com.sun.security.sasl.Provider
security.provider.8=org.jcp.xml.dsig.internal.dom.XMLDSigRI
security.provider.9=sun.security.smartcardio.SunPCSC

3 Adjust the order of the remaining providers (the providers should start with .1, .2 and so on)
Example: after adjusting the order
#
# List of providers and their preference orders (see above):
#
security.provider.1=sun.security.provider.Sun
security.provider.2=sun.security.rsa.SunRsaSign
security.provider.3=com.sun.net.ssl.internal.ssl.Provider
security.provider.4=com.sun.crypto.provider.SunJCE
security.provider.5=sun.security.jgss.SunProvider
security.provider.6=com.sun.security.sasl.Provider
security.provider.7=org.jcp.xml.dsig.internal.dom.XMLDSigRI
security.provider.8=sun.security.smartcardio.SunPCSC

4 Restart the agent
$cd AGENT_INST/bin
$./emctl start agent
Starting agent ............. failed.
HTTP Listener failed at Startup
Possible port conflict on port(3872): Retrying the operation...
Failed to start the agent after 1 attempts.  Please check that the port(3872) is available.
Consult emctl.log and emagent.nohup in:

Kill prosses yang masih berjalan pada em12c, caranya
$ ps -ef|grep agent
$ kill -9 id process agent em12c yang berjalan
Coba hidupkan kembali agent
$ ./emctl start agent
$./emctl status agent
$./emctl upload agent