OEM 13c - Managing agent with Gold Image using command Line

This blogpost will list down steps to manage and create an gold image with OEM 13(available in previous version of OEM versions as well). 


Step1: Login to OEM emcli and perform the sync with repository

emcli login -username=<oem username>

emcli sync


Step2: Next step is to create the gold image and a image version. Before this we have to prepare an agent which needed to be used as a gold copy and rest all agents will use same version of plugins. We assume with in this blog source agent is already prepared.

emcli create_gold_agent_image -image_name="<image name>" -version_name="<version name>" -source_agent="<source agent with port"> -gold_image_description="<Description>"


Step3: Once gold images and it's version is created and we decided to use it. The version needs to be marked as current and then only we can use it for agent upgrades.

emcli promote_gold_agent_image -version_name=<version name> -maturity=Current


Step4: Next step is to subscribe the agent which needs to be managed through this gold image and upgrade similar to it's source agent.

emcli subscribe_agents -image_name="<Image Name>" -agents="agent1,agent2,..."


Step5: Once agent is subscribed it's now ready to be upgrade using following verb

emcli update_agents -version_name="<version name>" -agents="agent1,agent2,..." -stage_location="<staging location>

Make sure you don't use /tmp as staging location as this file size can be big and if /tmp for the machine is filled, it can cause outage on your server.


This concludes the steps to create an gold image and updates the agents to it. There are some important commands to list down various properties:

emcli list_gold_agent_images (List gold image)

emcli list_gold_agent_imageversions -image_name=<image name> (List of gold image versions)

emcli list_gold_image_subscribed_agent -image_name=<image name>

emcli get_updatable_agents -version_name="<version name>"

emcli get_not_updatable_agents -version_name="<version name>"

emcli list_agents_on_gold_image -version="<version name>"


Comments

Popular posts from this blog

How to Solve - "WAIT FOR EMON PROCESS NTFNS"

Query Regression - "OR" Transformation Oracle 19c

ORA - 12537: TNS: connection closed