Release : Oracle EM 12c Release 4 (12.1.0.4)

Problem :

Running emcli setup command gives session expired error message.
for e.g :

[oraemagent@progcsrv01 ~]$ emcli setup -url=https://progcsrv01.ods.local:7802/em -username=sysman -dir=/u01/oracle -trustall -noautologin -password=xxxx
Oracle Enterprise Manager 12c Release 4.
Copyright (c) 1996, 2014 Oracle Corporation and/or its affiliates. All rights reserved.
Error: Session expired. Run emcli login to establish a session.
Cause :

The command “emcli setup” fails because the domain name ends with “.local”.

Solution

Run the setup command without using FQDN.

[oraemagent@progcsrv01 ~]$ emcli setup -url=https://progcsrv01:7802/em -username=sysman -dir=/u01/oracle -trustall
Oracle Enterprise Manager 12c Release 4.
Copyright (c) 1996, 2014 Oracle Corporation and/or its affiliates. All rights reserved.
Enter password
Emcli setup successful

Check the status

[oraemagent@progcsrv01 ~]$ emcli status
Oracle Enterprise Manager 12c Release 4 EM CLI.
Copyright (c) 1996, 2014 Oracle Corporation and/or its affiliates. All rights reserved.

Instance Home : /u01/oracle/.emcli
Verb Jars Home : /u01/oracle/oemapps/oms/bin/bindings/12.1.0.4.0/.emcli
Status : Configured
EM CLI Home : /u01/oracle/oemapps/oms/bin
EM CLI Version : 12.1.0.4.0
Java Home : /u01/oracle/oemapps/jdk16/jdk/jre
Java Version : 1.6.0_43
Log file : /u01/oracle/.emcli/.emcli.log
EM URL : https://progcsrv01:7802/em
EM user : sysman
Auto login : false
Trust all certificates : true
Tagged with →  
Share →
0 comments
Skip to toolbar