My Oracle Support Banner

EM 12c: Running any Enterprise Manager 12c Cloud Control emcli Action after Login Fails with Message: Error: Session expired. Run emcli login to establish a session. (Doc ID 1300112.1)

Last updated on NOVEMBER 16, 2022

Applies to:

Enterprise Manager Base Platform - Version 12.1.0.1.0 to 12.1.0.2.0 [Release 12.1]
Information in this document applies to any platform.

Symptoms

emcli (enterprise manager command line interface) setup is successful:

./emcli setup -noautologin -username=<SYSMAN_USER> -url=https://<OMS_HOSTNAME>:<PORT>/em/
Emcli setup successful


Subsequent emcli commands fail:

./emcli get_groups
Error: Session expired. Run emcli login to establish a session.

 

The emcli.log shows:

 

Note that it is possible to log in using:

emcli login -username=<USERNAME>

but running any command, including "emcli sync", will still result in the message: Error: Session expired. Run emcli login to establish a session.

 

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.