Weblogic
WLS SAF check Script
아도니우스
2014. 6. 1. 15:15
1. checkSAF.py
#connect(userConfigFile='/home/aiaadm/Script/secure/userconfig.secure', userKeyFile='/home/aiaadm/Script/secure/userkey.secure', url='10.000.000.000:7011')
domainRuntime()
cd('ServerRuntimes/aiaSvr21/SAFRuntime/aiaSvr21.saf/Agents/SOMFSAFAgent-21')
count2=cmo.isPausedForForwarding()
cd('/')
cd('ServerRuntimes/aiaSvr41/SAFRuntime/aiaSvr41.saf/Agents/SOMFSAFAgent-41')
count4=cmo.isPausedForForwarding()
count_total = count2+count4
print '%d' % count_total
disconnect()
exit()
2. checkSAF.sh
#!/bin/sh
java -cp /app/weblogic/wlserver_10.3/server/lib/weblogic.jar weblogic.WLST checkSAF.py -skipWLSModuleSkanning