aspose file tools*
The moose likes Websphere and the fly likes IBM Websphere 4.0 console commands Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "IBM Websphere 4.0 console commands" Watch "IBM Websphere 4.0 console commands" New topic
Author

IBM Websphere 4.0 console commands

Leo Padal
Greenhorn

Joined: May 09, 2005
Posts: 4
Hi all,
We are using IBM Webspphere 4.0 Advanced edition on a Windows 2000 machine. I was wondering if nayone knew about command line options to start and stop the application server from command line.
We are using ANT to deploy a java web application on the WAS 4.0 server. These are thefollowing steps
1. If the server is started then stop it.
2. copy the EAR file to a particular location.
3. Restart the application server.

I am hoping to write a batch file which will do the above things.

Thanks in advance!
Sachin
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30769
    
156

Sachin,
You can use wsadmin to start/stop the server from the command line or a batch/shell file.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Leo Padal
Greenhorn

Joined: May 09, 2005
Posts: 4
How can you use WSAdmin to start stop particular nodes of Application server from command line. An example or actual command to be used will be highly appreciated.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30769
    
156

Leo,
Oops. I meant wscp. (wsadmin is for WAS 5.0) I'll look for a concrete example.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30769
    
156

Google found an example from IBM.
 
wood burning stoves
 
subject: IBM Websphere 4.0 console commands