Skip to content

Instantly share code, notes, and snippets.

@mresetar
Created December 20, 2017 11:56
Show Gist options
  • Save mresetar/abea44be55fb1058ead6d01806bb2bea to your computer and use it in GitHub Desktop.
Save mresetar/abea44be55fb1058ead6d01806bb2bea to your computer and use it in GitHub Desktop.
Prints failed events
# lookup the failed event manager
objstr = AdminControl.completeObjectName('WebSphere:*,type=FailedEventManager')
obj = AdminControl.makeObjectName(objstr)
# count the overall number of failed events
fecount = AdminControl.invoke(objstr, "getFailedEventCount")
print "Total number of failed events"
print fecount
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment