The following examples demonstrate how to stop an application server with WebSphere Application Server V4 and V5:
call syscalls 'ON' signal on error rc = 0 rc = CB390CMD("-action 'stop' -servername 'BBOASR4' -serverinstancename '*' -output 'FCT34'") if (rc == 4) then do say "FCT Test #34 failed" exit end rc = XMLPARSE("FCT34" "ALL") if (rc == 4) then do say "FCT Test #34 failed while XMLPARSE" exit end say "FCT Test #34 completed" exit error: say "Error in FCT Test #34" rc "at line" sigl say sourceline(sigl) exit
The command sequence given below accomplishes approximately the same thing as the V4 SMAPI commands.
Stop the application server:
wsadmin> $AdminControl stopServer server1 mynodeWhen the wsadmin scripting tool successfully stops a WebSphere Application Server, you see messages similar to the following:
WASX7337I: Invoked stop for server "server1" Waiting for stop completion. WASX7264I: Stop completed for server "server1" on node "mynode"