Posts

Showing posts with the label jython

wlst and shell scripts for monitoring weblogic, soa suite, oracle service bus and others

Scripts to monitor and managed Oracle Fusion Middleware applications are available at following github location:  https://github.com/RameshPoonati/oracleMiddlewareScripts Weblogic : Disable Diagnostic Modules Error Report Generation from logs Application/Deployment Monitoring http log monitoring JMS Bridge Monitoring JMS Consumer Monitoring Log Archiving JMS Queue Monitoring Server Monitoring Domain Startup/Shutdown Thread Dump Generation Thread Monitoring SOA Suite : Monitor Adapter Status Reference instance response time from audit trail ODI : Duplicate Execution Monitoring Oracle Service Bus (OSB) : OSB Proxy Status Change Shell Scripts : Disk Usage Monitoring

Error while executing WLST - AttributeError: java package 'weblogic.time' has no attribute 'strftime'

Java and python both have time modules. So when we tried to use strftime function in time, wlst picked up time module present in Java and not that one in python. This is due to name collision. To avoid this error, import time module with an alias name as below and prefix strftime call with alias name. import time as pytime