I've started to develop a plugin for Oracle Enterprise Manager 12c. Okay so writing a Metadata plugin is not really coding, but it's as close as I get these days and to be quite frank it's as close as I want to get as frustration at the serious lack of useful documentation is pushing me over the edge.
Good job that I've got access to some people in the know, shame it's not written down, hence this blog.
So these are the two magic parameters for anyone thinking about developing a plugin.
- traceEnabled=true
- loglevel=ALL,CONSOLE
To use these parameters you need to append them to the end of the URL that you are using to access your Oracle Enterprise Manager Console. So in my case (URL changed to protect the innocent);
https://myEM12c.somecompany.com:7799/em/faces/core-mpcustom-page?target=myTraget.somecompany.com&type=myNewTargetType&_afrLoop=374837279826719&_afrWindowMode=0&_afrWindowId=s2v1e9pyi_1#!%40%40%3F_afrWindowMode%3D0%26target%3DmyTraget.somecompany.com%26type%3DmyNewTargetType%26_afrWindowId%3Ds2v1e9pyi_1%26_afrLoop%3D374837279826719%26_adf.ctrl-state%3Ds2v1e9pyi_9&loglevel=ALL,CONSOLE&traceEnabled=true
So what does this do ? Just hack it and see, whats the worst that can happen. However if you are a little more cautions lets look at each in turn.
loglevel=ALL,CONSOLE
This parameter basically creates a small debug window at the bottom of the page for you to see what has been going on, it saves trawling through the Enterprise Manager log files only to find nothing, much like when you've hit a wayward tee shot into the trees, spend minutes looking for it, pissing off the group behind, not to mention your playing colleagues only to emerge with your tail between your legs saying, that's another blob then. Anyway back to the point of the blog.Here is a screen show of what you should see, obviously with your own log messages.
traceEnabled=true
This parameter provides a little more. You basically get a floating window in which you can browse some of the objects on the page. You can see the total time it took in milliseconds as well as the time it took to service the particular Metadata service. There are also two options at the bottom of the page; "Show Trace Details" and "Show Item Details", the latter simply showing the SOAP Request/Response and former showing more timing details about the highlighted Page/Service.Now before you think to yourself these look like cool parameters let's go and see what I can see if I use them on the other target type home pages, don't bother you won't see anything unless the page is a Metadata only UI, which most are not.