Setting up and using the profile environment through commands

Use commands to create a profile, start the server of the profile, display the profile ports, and open the administrative console.

Before you begin

This task assumes a basic familiarity with the wasprofile command, other application server commands, and system commands.

Before you can create and use a profile, you must install the product.

About this task

Perform the following steps to create a profile, start the server of the profile, display ports for your profile, and open the administrative console for your server.

[AIX HP-UX Linux Solaris Windows] This example deals with the profile environment of a stand-alone application server on the Windows platform.

Procedure

  1. Create the server profile from the original installation:

    [Linux] [HP-UX] [Solaris] [AIX] app_server_root/bin/wasprofile.sh

    [Windows] app_server_root\bin\wasprofile.bat

    Assume that you create the AppSrv01 profile. The following script is an example for creating an application server profile on the Windows platform:
    "C:\Program Files\IBM\WebSphere\AppServer\bin\wasprofile" -create 
    				-profileName AppSrv01 
    				-profilePath "C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01"
    				-templatePath "C:\Program Files\IBM\WebSphere\AppServer\profileTemplates\default" 
    				-nodeName AppServerNode
    				-cellName AppServerNodeCell
    				-hostName myhost.mycity.mycompany.com
    				-isDefault false
    				-winserviceCheck true
    				-winserviceAccountType user
    				-winserviceUserName my_user_id
    				-winservicePassword my_password
    				-winserviceStartupType manual
    				-startingPort 20000
    
  2. [Windows] Change directories to the bin directory of the new server profile.
    For example, issue the following command:
    cd "C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\bin"
  3. Start the server.

    [Windows] Change directories to the app_server_root\bin directory of the original installation.

    [AIX HP-UX Linux Solaris Windows] Issue the startServer command.
    startServer server1 -profileName AppSrv01
  4. Display all of the ports for the machine to see the ports that you set for the server process.
    For example, in a Linux base shell or in the command window on a Windows platform, type:
    netstat -a 
  5. Open the administrative console.
    [AIX HP-UX Linux Solaris Windows] The port for the server1 administrative console is defined on the HTTP_TRANSPORT_ADMIN setting. If the value of the setting is 20003, then specify the following Web address in your browser:
    http://hostname_or_IP_address:20003/ibm/console/

Results

You created an application server profile, started an application server, and accessed the administrative console through commands.

What to do next

Deploy an application.



In this information ...


Related reference

IBM Redbooks, demos, education, and more

(Index)

Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

Task topic    

Terms of Use | Feedback

Last updated: Aug 29, 2010 9:31:45 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=vela&product=was-nd-mp&topic=tpro_setup
File name: tpro_setup.html