Search the OSG website:

WebSphere Tasks

Tasks Overview

Most common WebSphere 4 tasks on UF's installation can be performed from the command line, using the scripts under:

/nerdc/servlets/v4/scripts/
      

From here you can run scripts for administering server groups, individual applications, and the whole WebSphere node.

WebSphere runs on spnode41, so you would want to run all these scripts from that node.

Server Group Tasks

The server group is a logical cluster of application servers that contain WAS 4 applications. On our installation, each server group only contains one application server (although we could always add more dynamically to handle increased load), so you can think of a server group as basically a Java application server which runs one or more applications.

[Note]Note
To view the progress of a server group, follow the log:
/nerdc/servlets/v4/<servergroup_name>/log/stdout.txt
      

To start a server group:

/nerdc/servlets/v4/scripts/servergroup/<servergroup_name>-start.sh
      

To stop a server group:

/nerdc/servlets/v4/scripts/servergroup/<servergroup_name>-stop.sh
      

To restart a server group:

/nerdc/servlets/v4/scripts/servergroup/<servergroup_name>-restart.sh
      

You can also do other tasks, such as delete the servergroup and create an XML dump of servergroup information, from the scripts under:

        /nerdc/servlets/v4/scripts/servergroup/
      

Application Tasks

Each application is a server-side Java program residing within an application server. In our installation, each application also resides within a server group.

To Reinstall an Application:

  1. Put the application .ear file in the server group's application install directory:

    /nerdc/servlets/v4/<servergroup_name>/installableApps/
    	  

  2. Run the reinstall script:

    /nerdc/servlets/v4/scripts/application/<servergroup_name>-<application_name>-reinstall.sh
              

  3. After running the reinstall script, it is often a good idea to restart the application's server group, so that the server will run with any new classes in the application loaded:

    /nerdc/servlets/v4/scripts/servergroup/<servergroup_name>-restart.sh
              

    [Note]Note

    You can view the progress of the reinstallation by watching the server group log:

    /nerdc/servlets/v4/<servergroup_name>/log/stdout.txt
    	    

To Back Out of a Reinstallation

If a reinstallation goes awry, such as when the application has a bug in it, you can revert to the previous incarnation of the application.

Each time an application is reinstalled, the previous version of the application ear file is stored in:

/nerdc/servlets/v4/backup/<application_name>.ear-<date>_<hour>-<min>
	

The backup remains for several days before it is automatically adeleted by a cron job.

  1. Make sure the application's server group is stopped.

  2. Find the backup you want and then put it in the server group's application install directory:

    /nerdc/servlets/v4/<servergroup_name>/installableApps/
    	  

    Rename the file so that the date/timestamp is removed from the end; the file name should end in .ear.

  3. Follow the steps above in this document to reinstall the application.