You can invoke WLST by running “java weblogic.WLST”
I tried this on my WebLogic Server and straight hit error
_________
Exception in thread “main” java.lang.NoClassDefFoundError: weblogic/WLST
_________
I soon realised that jar file which contains class weblogic.WLST is missing from classpath and quick fix is to set environment variable using setWLSEnv.sh (under WL_HOME/server/bin) . For Fusion MiddleWare (FMW) 11g, it should be under $MW_HOME/ wlserver_10.3/ server/ bin
______
set environemnt variable for weblogic server
cd WL_HOME/server/bin
. ./setWLSEnv.sh
______
$ java weblogic.WLST
Initializing WebLogic Scripting Tool (WLST) …
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
wls:/offline>
__________
After connect to WLST,
To monitor Server Status I use this commands:
connect("weblogic","password","t3://ip_address_of_admin_server:7001")
# to get State of AdminServer
state("AdminServer")
# to change server's state to Admin state
suspend("ManagedServer_3", block="true")
# to change server's state from Admin to Running
resume("ManagedServer_3",block="true")
# to shutdown server
shutdown("ManagedServer_3",block="true")
# to star cluster
start('mycluster','Cluster')
# to shutdown cluster
shutdown('mycluster','Cluster')
Connect to NodeManager :
nmConnect('weblogic', '
weblogic_password', 'ip_address_of_wl_server', 'node_managed_port', 'domainName','/domain_directory','ssl')
:) Still dont successfully start server using WLST. If anyone have done it, pls share with me :)