N1 Grid Service Provisioning System User's Guide and Release Notes for the WebSphere Plug-In 1.0

ProcedureHow to Run the wsadmin Script

Steps
  1. In the Common Tasks section in the browser interface, click WebSphere 5.1.

  2. Click the Command Line Interface: Run Command link.

    The plan's Details page displays.

  3. Click Run.

  4. Select the target host.

    You can target the virtual host of the standalone application server or deployment manager.

  5. Type the arguments for the wsadmin script in the Plan Variables field.

  6. Click Run Plan (Includes Preflight).


Example 4–1 Creating a Cluster Using the wsadmin Script

This example illustrates input for the wsadmin script.

If you wanted to create a cluster using the command line, you could type the following string in the Enter the Arguments to wsadmin Script field.


-c 'set cell [$AdminConfig getid /Cell:cellname/]' 
-c '$AdminConfig create ServerCluster $cell {{name clustername}}' 
-c '$AdminConfig save' 

In this example, cellname is the name of the existing cell and clustername is the cluster that you plan to create.