Oracle Service Bus 11g: Statistics Projects and services with WLST - Part 2

Oracle Service Bus 11g: Statistics Projects and services with WLST - Part 2

Published on: Category: Oracle

As a follow-up on my earlier blogpost about how to list all your projects and services in your OSB domain, I’ve extended the script with some count statistics. Look at this screenshot below. I blacked out the names for the services.

In the example I’ve used I extended it with some statistic counts on some Proxy services. Now at this moment the script errors out on non monitored services, but that is because I did not implement a check if a service is monitored or not. Which should be done by checking if the value of isMonitoringEnabled in the CommonServiceConfigurationMBean is set to true.

Look below at some of the code. The first section is to get the list of projects and their proxy or business services (in my example I used proxy services). With a for loop on the getAllResourceStatistics method I filtered out the statistics I’d like to see: some counts about pipeline and SLA.

Now this is of course a beginning, you can build, customize and cosmetize your script to you own needs with all kinds of colors for high error rates. For example you can implement an if statement if your error rates raise above a certain level and colorize it with terminal colours (red '33[1;31m').

My next challenge is to filter out those services which are not enabled for monitoring, but that will be for a next time.

Publicatiedatum: 3 juli 2013

Michel Schildmeijer
About the author Michel Schildmeijer

Having made his start in the pharmacy sector, Michel transitioned to IT in 1996, working on a UNIX TTY terminal-based system and the MUMPS language. He currently works as a solutions architect at Qualogy, with a focus on middleware, application integration and service-oriented architecture. His passion for middleware started in 2000 when working as a support analyst for a financial institute with BEA WebLogic and Tuxedo. Michel is an expert on the WebLogic platform. He serves customers in his role as architect and advises them in all aspects of their IT landscape. He became an Oracle ACE in 2012 and wrote two books about WebLogic: Oracle WebLogic Server 11gR1 PS2: Administration Essentials and Oracle WebLogic Server 12c: First Look. He is a well-known speaker at national and international conferences and is recognised as an official Oracle Speaker. Read his blog: https://community.oracle.com/blogs/mnemonic

More posts by Michel Schildmeijer
Comments (1)
  1. om 20:08

    Your second print is incomplete. Can you share the code in text?

Reply