0 Replies Latest reply: Oct 23, 2013 6:04 PM by user13475271 RSS

    Error occurs when running emcli add_target

    user13475271

      Hello,

       

      I created a simple plugin which contains only two target types for learning using JDeveloper (Build JDEVADF_11.1.1.7.0_GENERIC_130226.1400.6493). I then validated plugin distribution and created plugin archive on right-click project name.

       

      plugin.xml content:

       

      <?xml version="1.0" encoding="UTF-8" ?>

      <Plugin xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

              xsi:schemaLocation="http://www.oracle.com/EnterpriseGridControl/plugin_metadata plugin_metadata.xsd"

              xmlns="http://www.oracle.com/EnterpriseGridControl/plugin_metadata">

       

        <PluginId vendorId="z" productId="y" pluginTag="xxx"/>

       

        <PluginVersion value="12.1.0.0.0"/>

       

        <ShortDescription>Enterprise Manager for Second Target Type</ShortDescription>

       

        <TargetTypeList>

          <TargetType name="z_y_xxx_Second Target Type"/>

          <TargetType name="z_y_xxx_Third Target Type"/>

        </TargetTypeList>

       

        <PluginAttributes Type="MP" Category="Engineered Systems"

                          DisplayName="Second Target Type"/>

      </Plugin>

       

      z_y_xxx_Second Target Type.xml

       

      <TargetMetadata META_VER="1.0" TYPE="z_y_xxx_Second Target Type"

        xmlns="http://www.oracle.com/EnterpriseGridControl/target_metadata">

       

        <Display>

          <Label NLSID="Second Target Type_name">Basic Target Type</Label>

        </Display>

       

        <Metric NAME="Response" TYPE="TABLE">

          <Display>

            <Label NLSID="Second Target Type_response">Response</Label>

          </Display>

          <TableDescriptor>

          <ColumnDescriptor NAME="Timing" TYPE="NUMBER" IS_KEY="FALSE">

                <Display>

                  <Label NLSID="Second Target Type_response_timing">Elapsed Time</Label>

                </Display>

              </ColumnDescriptor>

          <ColumnDescriptor NAME="Status" TYPE="NUMBER" IS_KEY="FALSE">

                <Display>

                  <Label NLSID="Second Target Type_response_status">Status</Label>

                </Display>

              </ColumnDescriptor>

          </TableDescriptor>

          <!--

          <QueryDescriptor FETCHLET_ID="URLTiming">

             <Property NAME="host" SCOPE="INSTANCE">host</Property>

             <Property NAME="port" SCOPE="INSTANCE">port</Property>

             <Property NAME="url0" SCOPE="GLOBAL">http://%host%:%port%/</Property>

             <Property NAME="retries" SCOPE="GLOBAL">1</Property>

             <Property NAME="verbose" SCOPE="GLOBAL">0</Property>

          </QueryDescriptor>

          -->

        </Metric>

       

        <!--

        <InstanceProperties>

          <InstanceProperty NAME="host">

            <Display>

              <Label NLSID="Second Target Type_instprop_host">Hostname</Label>

            </Display>

          </InstanceProperty>

          <InstanceProperty NAME="port">

            <Display>

              <Label NLSID="Second Target Type_instprop_port">Port</Label>

            </Display>

          </InstanceProperty>

          <InstanceProperty NAME="installdirectory">

            <Display>

              <Label NLSID="Second Target Type_instprop_installdir">InstallDirectory</Label>

            </Display>

          </InstanceProperty>

        </InstanceProperties>

        -->

       

      </TargetMetadata>

       

      Running Plugin validation ....

      Validating Plug-in metadata ..                Passed

      Validating Plug-in metadata semantics ..      Passed with warnings

      Validating Staging Directory ..               Passed

      Validating MRS Syntax ..                      Passed

      Validating MRS Semantics ..                   Passed

      Validating Metadata embedded SQL ..           Skipped

      Validating Object Names ..                    Passed

      Plugin validation Passed with warnings

      Validation Report generated to: /tmp/xxxProject/dist/plugin_validation_report_131023.txt

      Plugin validation completed.

       

      Running Plugin archive creation ....

      Validating Plug-in metadata ..                Passed

      Validating Plug-in metadata semantics ..      Passed with warnings

      Validating Staging Directory ..               Passed

      Validating MRS Syntax ..                      Passed

      Validating MRS Semantics ..                   Passed

      Validating Metadata embedded SQL ..           Skipped

      Validating Object Names ..                    Passed

      Plugin validation Passed with warnings

      Validation Report generated to: /tmp/xxxProject/dist/plugin_validation_report_131023.xml

      Creating the opar file......

      Plug-in validation has revealed some warnings. You must fix all these issues before releasing plug-in to production.

      Successfully created the plugin archive . The opar file is /tmp/xxxProject/dist/12.1.0.0.0_z.y.xxx_2000_0.opar

      Plugin archive creation completed.

       

      Then I executed these commands:

       

      ./emcli setup -url=https://abc.com:7803/em -username=SYSMAN

      Oracle Enterprise Manager 12c 3.

      Copyright (c) 1996, 2013 Oracle Corporation and/or its affiliates. All rights reserved.

       

      The configuration directory "/users/ncgf" may not be local. See the "dir" option in the help for the setup command.

      Do you want to continue using this directory? [yes/no] yes

      Enter password

       

      Emcli setup successful

      $ ./emcli import_update -file=/export/em_install/mid_home_loc/oms/bin/12.1.0.0.0_z.y.xxx_2000_0.opar -omslocal

      Processing update: Plug-in - Enterprise Manager for Second Target Type

      Successfully uploaded the update to Enterprise Manager. Use the Self Update Console to manage this update.

      $ ./emcli deploy_plugin_on_server -plugin=z.y.xxx:12.1.0.0.0 -sys_password=*****

      Performing pre-requisites check... This will take a while.

       

      ./emcli get_plugin_deployment_status -plugin_id=z.y.xxx

      Plug-in Deployment/Undeployment Status

       

      Destination          : Management Server - abc.com:4890_Management_Service

      Plug-in Name         : Second Target Type

      Version              : 12.1.0.0.0

      ID                   : z.y.xxx

      Content              : Plug-in

      Action               : Deployment

      Status               : Success

      Steps Info:

      ---------------------------------------- ------------------------- ------------------------- ----------

      Step                                     Start Time                End Time                  Status

      ---------------------------------------- ------------------------- ------------------------- ----------

      Submit job for deployment                10/23/13 2:41:47 PM PDT   10/23/13 2:41:47 PM PDT   Success

       

      Initialize                               10/23/13 2:41:49 PM PDT   10/23/13 2:41:54 PM PDT   Success

       

      Install software                         10/23/13 2:41:55 PM PDT   10/23/13 2:41:55 PM PDT   Success

       

      Validate plug-in home                    10/23/13 2:41:56 PM PDT   10/23/13 2:41:56 PM PDT   Success

       

      Perform custom preconfiguration          10/23/13 2:41:56 PM PDT   10/23/13 2:41:56 PM PDT   Success

       

      Check mandatory patches                  10/23/13 2:41:56 PM PDT   10/23/13 2:41:56 PM PDT   Success

       

      Generate metadata SQL                    10/23/13 2:41:56 PM PDT   10/23/13 2:41:56 PM PDT   Success

       

      Preconfigure Management Repository       10/23/13 2:41:56 PM PDT   10/23/13 2:41:56 PM PDT   Success

       

      Configure Management Repository          10/23/13 2:41:57 PM PDT   10/23/13 2:42:39 PM PDT   Success

       

      OPSS jazn policy migration               10/23/13 2:41:57 PM PDT   10/23/13 2:41:57 PM PDT   Success

       

      Register metadata                        10/23/13 2:42:39 PM PDT   10/23/13 2:42:41 PM PDT   Success

       

      Perform custom postconfiguration         10/23/13 2:42:41 PM PDT   10/23/13 2:42:41 PM PDT   Success

       

      Update inventory                         10/23/13 2:42:41 PM PDT   10/23/13 2:42:42 PM PDT   Success

       

      ---------------------------------------- ------------------------- ------------------------- ----------

       

      $ ./emcli deploy_plugin_on_agent -agent_names=abc.com:3872 -plugin=z.y.xxx:12.1.0.0.0

      Agent side plug-in deployment is in progress

      Use "emcli get_plugin_deployment_status -plugin_id=z.y.xxx" to track the plug-in deployment status.

      $ ./emcli get_plugin_deployment_status -plugin_id=z.y.xxx

      Plug-in Deployment/Undeployment Status

       

      Destination          : Management Agent - abc.com:3872

      Plug-in Name         : Second Target Type

      Version              : 12.1.0.0.0

      ID                   : z.y.xxx

      Content              : Plug-in

      Action               : Deployment

      Status               : Deploying

      Steps Info:

      ---------------------------------------- ------------------------- ------------------------- ----------

      Step                                     Start Time                End Time                  Status

      ---------------------------------------- ------------------------- ------------------------- ----------

      Submit job for deployment                10/23/13 2:43:44 PM PDT   10/23/13 2:43:44 PM PDT   Success

       

      Initialize                               10/23/13 2:43:47 PM PDT   10/23/13 2:43:47 PM PDT   Success

       

      Copy archives                            10/23/13 2:43:47 PM PDT   10/23/13 2:43:47 PM PDT   Success

       

      ---------------------------------------- ------------------------- ------------------------- ----------

       

      $ ./emcli add_target -name="z_y_xxx_Second Target Type" -type="z_y_xxx_Second Target Type" -host=abc.com -prop="UseGeneratedData:false"

      Error: Target type specified does not exist on this agent

       

      This execution fails, but we see the plugin in the agent. The type we have is obtained from the plugin.xml,

      <TargetTypeList>

          <TargetType name="z_y_xxx_Second Target Type"/>

          <TargetType name="z_y_xxx_Third Target Type"/>

        </TargetTypeList>

       

      Thank you for your help in advance!

       

      Message was edited by: user13475271 I would like to mention that we also tried to add using Oracle Enterprise Manager (Version 12.1.0.3.0). Setup->Add target->Add Targets Manually. But under Add Targets Manually, there are three choices (radio buttons). We have tried all, but we didn't get it to add a target.