echo "======================================welcome==============================================" echo "= = = = ====== "echo" ==== This script is used to monitor WebLogic's domain running state major monitoring objects are ====== "echo" ==== Server,thread,request,jdbc State and socckets ====== "echo" ==== modify URL when using, Usernam,password ====== "echo" ==== Create by HOUFL at 2009=03=30 ====== "echo" ========================================================================== ================= "url=t3://***.***.***.***.***:8082 username=weblogic password=gxngwszf
While [true] the name of the domain of Do echo "==============================weblogic" ============================================ ============="
Java-cp/bea/weblogic81/server/lib/weblogic.jar WebLogic. Admin-url $url-username $username-password $password get-pretty-type server-property Parent | awk '/^/t/' | awk ' Nr==1{print '
echo "========================================================================================================== = = "echo" ======================================== currently idle thread ====================================================== = = = "Java-cp/bea/weblogic81/server/lib/weblogic.jar weblogic." Admin-url $url-username $username-password $password get-pretty-type executequeueruntime-property executethreadcur Rentidlecount-property Executethreadtotalcount-property Servicedrequesttotalcount
echo "========================================================================================================== ===="
echo "======================================= server_ip and port==================================================== = = = "Java-cp/bea/weblogic81/server/lib/weblogic.jar weblogic." Admin-url $url-username $username-password $password get-pretty-type server-property name-property listenaddress- Property Listenport
echo "========================================================================================================== = = "echo" =======================================server running status and opensocketscurrentcount number ========================= ===== "Java-cp/bea/weblogic81/server/lib/weblogic.jar WebLogic. Admin-url $url-username $username-password $password get-pretty-type serverruntime-property state-property Server -property Opensocketscurrentcount
echo "========================================================================================================== = = "echo" ============================jdbc the initial and maximum number of connection pools and the server============================== "JAVA-CP/ Bea/weblogic81/server/lib/weblogic.jar WebLogic. Admin-url $url-username $username-password $password get-pretty-type jdbcconnectionpool-property name-property Ini Tialcapacity-property Maxcapacity-property Targets
echo "========================================================================================================== = = "Sleep 60
Done