Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Restart applications with wsadmin

481 views
Skip to first unread message

cyber_...@gmx.net

unread,
Aug 25, 2006, 4:57:40 AM8/25/06
to
Hi all,

my skill in wsadmin scripting is a little poor, so I hope one of you can help me out:
I'm serching for a possibility to restart an application with the wsadmin console.
I took a look into the Websphere Information Center and I found one article about this, but this article shows how to restart ALL applications. But I want to choose out which application I want to restart.
It would be very greatful, if it is also possible to restart the administrative console about one script.

cyber_...@gmx.net

unread,
Aug 25, 2006, 5:40:01 AM8/25/06
to
Okay, now I've got it:

wsadmin -conntype SOAP -host HOSTNAME -port 12345 -username USERNAME -password XXXXXXX

set appManager [$AdminControl queryNames cell=DELSP002_LPDEProfile,node=DELSP002_Test,type=ApplicationManager,process=TestServer,*]

$AdminControl invoke $appManager stopApplication adminconsole
$AdminControl invoke $appManager startApplication adminconsole

But, when I try to restart the adminconsole, I'm getting an error:
com.ibm.ws.scripting.ScriptingException: AdminControl service not available

The problem is: I can'n logon on the console. That's why I'm searching for a possibility to restart it.

0 new messages