Managing Oracle OEM Gold Images for Agent Standardization
Oracle Enterprise Manager (OEM) provides the Gold Image feature to simplify large-scale agent management and standardization. Using Gold Images, administrators can maintain a consistent agent configuration, plugin set, and patch level across multiple servers.
This feature is available in OEM 13c and was also present in earlier OEM releases with similar functionality.
In this article, we will walk through the process of creating, managing, and deploying a Gold Agent Image using emcli.
Why Use Gold Images?
Gold Images help standardize OEM agents across environments by allowing administrators to:
- Maintain consistent plugin versions
- Simplify agent patching and upgrades
- Reduce manual configuration drift
- Automate large-scale agent deployments
- Ensure uniform monitoring behavior
Instead of patching every agent individually, administrators can prepare one reference agent and use it as the baseline for all other agents.
Step 1: Login to EMCLI and Synchronize
Before performing any Gold Image operations, log in to emcli and synchronize it with the OEM repository.
emcli login -username=<oem username>
emcli sync
The sync operation ensures that the local EMCLI metadata is updated with the OEM repository.
Step 2: Create the Gold Agent Image
The next step is to create the Gold Image along with its image version.
Before doing this, prepare a reference agent that will act as the source or master copy. This source agent should already contain the required plugins, patches, and configurations that you want all target agents to inherit.
Once the source agent is ready, execute the following command:
emcli create_gold_agent_image \
-image_name="<image name>" \
-version_name="<version name>" \
-source_agent="<source agent with port>" \
-gold_image_description="<Description>"
Example:
emcli create_gold_agent_image \
-image_name="Linux_Agent_Gold_Image" \
-version_name="v1" \
-source_agent="host01.example.com:3872" \
-gold_image_description="Baseline OEM agent image for Linux servers"
Step 3: Promote the Gold Image Version
After creating the image version, it must be promoted to Current status before it can be used for agent upgrades.
emcli promote_gold_agent_image \
-version_name=<version name> \
-maturity=Current
Example:
emcli promote_gold_agent_image \
-version_name=v1 \
-maturity=Current
Only Gold Image versions marked as Current are eligible for deployment and upgrades.
Step 4: Subscribe Agents to the Gold Image
Once the image is ready, subscribe the target agents that should be managed using this Gold Image.
emcli subscribe_agents \
-image_name="<Image Name>" \
-agents="agent1,agent2,..."
Example:
emcli subscribe_agents \
-image_name="Linux_Agent_Gold_Image" \
-agents="server01:3872,server02:3872"
After subscription, these agents become associated with the Gold Image lifecycle.
Step 5: Upgrade Agents Using the Gold Image
Now the subscribed agents can be upgraded using the Gold Image version.
emcli update_agents \
-version_name="<version name>" \
-agents="agent1,agent2,..." \
-stage_location="<staging location>"
Example:
emcli update_agents \
-version_name="v1" \
-agents="server01:3872,server02:3872" \
-stage_location="/u01/oem_stage"
Important Recommendation
Avoid using /tmp as the staging location.
Gold Image files can become quite large, and filling up /tmp may lead to unexpected server issues or outages. Always use a filesystem with sufficient free space.
Useful EMCLI Commands for Gold Image Management
Below are some additional commands that are helpful while managing Gold Images.
List Available Gold Images
emcli list_gold_agent_images
List Gold Image Versions
emcli list_gold_agent_imageversions \
-image_name=<image name>
List Agents Subscribed to a Gold Image
emcli list_gold_image_subscribed_agent \
-image_name=<image name>
List Agents Eligible for Upgrade
emcli get_updatable_agents \
-version_name="<version name>"
List Agents That Cannot Be Upgraded
emcli get_not_updatable_agents \
-version_name="<version name>"
List Agents Running on a Specific Gold Image Version
emcli list_agents_on_gold_image \
-version="<version name>"
Final Thoughts
Gold Images in Oracle OEM provide an efficient and scalable way to standardize agent deployments across enterprise environments.
By maintaining a well-prepared source agent and managing upgrades centrally through Gold Images, administrators can significantly reduce operational overhead and improve consistency across monitored systems.
For larger environments managing hundreds of OEM agents, this approach becomes especially valuable for lifecycle management, compliance, and automation.
Comments
Post a Comment