The following examples demonstrate how to start an application server with WebSphere Application Server V4 and V5:
call syscalls 'ON' signal on error rc = 0 rc = CB390CMD("-action 'start' -servername 'BBOASR1' -serverinstancename '*' -output 'FCT33'") if (rc == 4) then do say "FCT Test #33 failed" Exit end rc = XMLPARSE("FCT33" "ALL") if (rc == 4) then do say "FCT Test #33 failed while XMLPARSE" Exit end say "FCT Test #33 completed" exit error: say "Error in FCT Test #33" rc "at line" sigl say sourceline(sigl) exit
The command sequence given below accomplishes approximately the same thing as the V4 SMAPI commands.
If you are connected to a server in a base installation, you cannot request to start another one. You can only start an application server if you have a Network Deployment installation. In a Network Deployment installation, use the following:
wsadmin> $AdminControl startServer server1 mynodeWhen the wsadmin scripting tool successfully starts a WebSphere Application Server, you see a message similar to the following:
WASX7262I: Start completed for server "server1" on node "mynode"