So, here we will check out how to start Adminserver without the help of Node Manager. First small concept about syntax of WLST.
1 WLST command name and arguments are case sensitive. — > Very Imp
2. Use forward slash ( / ) in WLST. If you need to use backslash ( \ ) , precede the backslash with another backslash or put ‘r‘ before the entire command. In fact, even for windows path , we can use ‘/’ instead of usual ‘\’. e.g.
(‘c:\\mydomain\\project\\project.jar’) or
(r‘c:\\mydomain\\project\\project.jar’)
Ok till now, some concepts. Now lets check the command. The syntax is
startServer([adminServerName], [domainName], [url], [username], [password],
[domainDir], [block], [timeout], [serverLog], [systemProperties], [jvmArgs]
[spaceAsJvmArgsDelimiter])
[domainDir], [block], [timeout], [serverLog], [systemProperties], [jvmArgs]
[spaceAsJvmArgsDelimiter])
Here all re self evident , few unknowns are . After domainDir, rest all are optional
block:–> optional. If set to true (default), wlst doesnot return the control to user after issuing the command.i.r. user interaction is blocked till the server is started.
Please note that we can start Admin server without connecting to Node manager, but to start Managed srevers, we must connect to Node Manager first.
$ sh $DOMAIN_HOME/bin/setDomainEnv.sh
$ . ./$DOMAIN_HOME/common/bin/wlst.sh
wls:/offline>
wls:/offline>startServer (‘myadmin’,'mydomain’,'t3://mydomain.domain:7001′,’wladmin’,'wladmin1′,’/u01/projects/domain/mydomain’,'true’,’5000′,’false’)
server started successfully.
$ . ./$DOMAIN_HOME/common/bin/wlst.sh
wls:/offline>
wls:/offline>startServer (‘myadmin’,'mydomain’,'t3://mydomain.domain:7001′,’wladmin’,'wladmin1′,’/u01/projects/domain/mydomain’,'true’,’5000′,’false’)
server started successfully.
So, here we started the server. We will connect to the admin server and check its status,change it status etc.
wls:/offline> connect (‘wladmin’,'wladmin1′,’t3://mydomain.domain:7001′)
successfully connected to Admin server ‘Myadmin’
successfully connected to Admin server ‘Myadmin’
Below are some of the commands we can use to check the status of a server or change its status
wls:/mydomain/serverconfig> state (‘myadmin’)
wls:/mydomain/serverconfig>suspend (‘myadmin’)
wls:/mydomain/serverconfig>resume (‘myadmin’)
In next post, i will discuss on Node Manager and its various commands…
No comments:
Post a Comment