SEVERE:emctl secure agent command has failed with status=1

Background:

I successfully installed a fresh Oracle Enterprise Manager 13c (13.5) on a Windows server.

Then, I used the silent install method to deploy a new OEM agent version 13.5 on a target Windows server.
Agent deployment went successfully (Installation, patching, configuration, …), but I received the following error at the last step:

SEVERE:emctl secure agent command has failed with status=1
Agent configuration has failed

Although of this error, I was able to start the agent successfully on the target server.

But Agent is not able to communicate or upload data to the OEM server as indicated above, due to the initial deployment error.

To fix the deployment error “emctl secure agent command has failed with status=1“, follow the following steps:
– Login to the OEM console with sysman or any administrator
– Navigate to Setup –> Security –> Registration Passwords
– Click on “Add Registration Password”
– Create a new Persistent password that can be used for multiple agents.

Now, move to the target server, and execute the following steps:
emctl secure agent
Enter the password that you created above in the OEM console.

Now the new target should be visible from the OEM console (Targets ==> Hosts), if not then execute the following steps on the target server:
emctl uploademctl config
agent addinternaltargets

Now, the new target should be visible from the OEM console (Targets ==> Hosts).

When you deploy additional agents, just use the same password that you defined in the OEM console, and you will not get this error again.

Thanks
Ahmed

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s