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.
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.