echo "======================================welcome=============================================="
echo "= = = = = = = = = =
echo "= = = This script is used to monitor the WebLogic domain running state The main monitoring object has = =
echo "= = = = = = = Server,thread,request,jdbc state and socckets = = = =
echo "= = To modify the URL when using, usernam,password can be = =
echo "= = = = = Houfl at 2009=03=30 = = = =
echo "==========================================================================================="
url=t3://***.***.***.***.***:8082
Username=weblogic
Password=gxngwszf
While [true]
Todo
echo "==============================weblogic Domain name ========================================================= "
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 "======================================== current 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 run 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 "The initialization and maximum number of ============================JDBC connection pools and the server============================== that have been released."
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