MMI scripts

Manage Monitoring Information (MMI) provides a set of REST and JSON APIs that helps a system administrator get insights on the state of the runtime application.

The following root URL is for that API:
GET /maximo/oslc
You can look more closely at each server that uses the /oslc/members API. Multiple APIs can help you inspect the servers. However, you might not find all the APIs that you require. Fortunately, you can dynamically add these APIs by using automation scripts. The following example demonstrates how to use that feature. For example, assume that you need to find out a server's locale because you are trying to debug a locale-related issue. You can quickly write an automation script and serve it as an MMI API by using the Monitor Environment Information dialog in the Logging application. One of the benefits of MMI APIs is that they get distributed in every member server and you can use the MMI API framework to invoke these MMI scripts on each server. The following sample script shows how to get the default locale of your server:
from java.util import Locale
br.setProperty("syslocale",Locale.getDefault().toString())

Name it SYSTEMLOCALE. The implicit variable br has APIs like setProperty(propname,propvalue) and getProperty(propName). The script determines the system default locale and sets it to the br with a property name of syslocale. Now, you can add it to the MMI set of APIs by using the Monitor Environment Information dialog in the Logging application.

The MMI framework links this script with the following URL:
GET /oslc/members/{member id}/systemlocale