Mar 20, 2018

List and deploy/install all plugins in OEM 13c using emctl & emcli

To List all the Plugin:

Command to verify the database plugin details:
Connect to Target and then run the below command:
$ cd <agent-inst>/bin 
$./emctl listplugins agent -type all 

To identify the Plug-in deployed on OMS:

On EM CLI, log in to EMCLI, and enter the following command. The command displays a list of all the plug-ins deployed on the OMS.

$emcli login -username=<EM_Username>
$emcli list_plugins_on_server

To identify and view all the Plug-ins deployed on Management Agent:

On EM CLI, enter the following command:
$emcli list_plugins_on_agent [agent_names="agent1,agent2,agent3..." [-all] [-include_discovery]

e.g.,
emcli list_plugins_on_agent -agent_names=agent1.example01.com:3872
Lists plug-ins on the agent agent1.example.com

emcli list_plugins_on_agent -agent_names=agent1.example01.com:3872,agent2.example02.com:3872 -include_discovery

It lists plug-ins on both the agents provided along with their discovery components.

With emcli verbs we can perform plugin deploy, undeploy, verify status. See the below commands for emcli verbs which contain syntax, examples etc.. 

To deploy a plugin on oms: 

emcli deploy_plugin_on_server 
-plugin=<plug-in_id>[:<version>] 
[-sys_password=<sys_password>] 
[-prereq_check] 
[-use_last_prereq_result] 

To deploy a plugin on management agent: 

emcli deploy_plugin_on_agent 
-agent_names=<agent1;agent2> 
-plugin=<plug-in_id[:version>] 
[-discovery_only] 


To verify the deployment status: 

emcli get_plugin_deployment_status 
[-plugin="plugin_id"] 
[-destination_type=(agent|server)] 

To undeploy the plugin from oms: 

emcli undeploy_plugin_from_server 
-plugin="plug-inId"[:"pluginVersion"] 
[-sys_password="sys_password"] 

To undeploy plugin from agent: 

emcli undeploy_plugin_from_agent 
-plugin="pluginId[:pluginVersion]" 
-agent_names="agent1;agent2" 

Reference OTN: 




Translate >>