This discussion is archived
3 Replies Latest reply: Dec 7, 2012 8:49 PM by Subha4mOra RSS

A question about updating metadata files in plug in

938644 Newbie
Currently Being Moderated
Hello
I 'm trying to monitor my stand alone java app.
I read the chaper Target Types and Default Collections ( my app exposes jmx beans)
all seems to work ok ( i mean the part wherre it says ..
....................
emctl register oms metadata -service targetType -file full
path/TargetTypeMetadata.xml -pluginId Plugin Id -sysman_pwd sysman

emctl register oms metadata -service storeTargetType -file full
path/TargetTypeMetadata.xml -pluginId Plugin Id -sysman_pwd sysman

emctl register oms metadata-service default_collection -file full
path/TargetTypeCollection.xml -pluginId Plugin Id -sysman_pwd sysman
...

but , the next line is not clear to me:

emctl register oms metadata-service systemStencil -file full
path/TargetTypeStencil.xml -pluginId Plugin Id -sysman_pwd sysman

My question is: what is TargetTypeStencil.xml file? where can i found it?

Do I realy need it?
and after restart the agent as it says , could i see my beans ? ( i used emcli jmccli tool and created the metadata / default_collection files) ?

Thanks.
  • 1. Re: A question about updating metadata files in plug in
    938644 Newbie
    Currently Being Moderated
    So, I folowed the instructions in chapter 13.7.1 ( ProgrammersReference) - EM 12C release 2.
    I created my own mbeans , used the emctl jmxcli etc ..
    I created both files : for metadata, and default_collection ( The files which the emctli genertaed for me )
    I did it on the agent machine. I copy the files under the PLUGIN dir in the agent machine too.
    I registered the files using mrs service as it's written ( chapter 16 ) . ( after I copy the files from the agent to the mrs ( oms machine ) machine .
    Every thing seems to be OK . I restarted the agent.
    Now, when I open the EM console' I can't see the metrics which i defined in the generated files !
    Am i missing something??
    Please Help!
  • 2. Re: A question about updating metadata files in plug in
    AdeeshFulay Explorer
    Currently Being Moderated
    Hi,

    Since you are primarily interested in monitoring your custom java app, you can ignore TargetTypeStencil.xml for now. I have reached out to the relevant team to get help on your questions around jmxcli, and you should hear from them shortly.

    BTW, have you explored the out of box jvm monitoring capabilities? Have you not found them to be sufficient?
  • 3. Re: A question about updating metadata files in plug in
    Subha4mOra Newbie
    Currently Being Moderated
    System stencils are used to define rules to automatically add members to the System target. It is not mandatory for any MP to work.

    In this example 'TargetTypeStencil.xml' is any xml file that defines that rules. Few examples of such files are

    empp/emvt/sysman/metadata/systemStencil/oracle_assembly_instance.xml
    empp/emvt/sysman/metadata/systemStencil/oracle_tier_instance.xml
    empp/emvt/sysman/metadata/systemStencil/oracle_vm_cloud.xml

    I thin you had also created a Service Request # 3-6524782891 asking the same Qtn.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points