WebSphere Application Server Network Deployment, Version 6.0.x     Operating Systems: AIX, HP-UX, Linux, Solaris, Windows

Setting up and using the profile environment through commands

You can set up and use the profile environment through commands or the Profile Creation wizard. Use this example to set up and use the profile environment through commands.

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 WebSphere Application Server.

Why and when to perform this task

Perform the following steps to create and use the profile environment. This example deals with the profile environment of a stand-alone Application Server on the Windows platform.

Steps for this task

  1. Create the server process from the original installation by using the install_root\bin\wasprofile.bat script for the Windows platform. The script is install_root/bin/wasprofile.sh on the Linux or UNIX platforms. The script is install_root/bin/wasprofile on the i5/OS platform.
    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\AppServer
    				-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 21000
    
  2. Change directories to the \bin directory of the new server process.
    For example, issue the following command:
    cd Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\bin
  3. Start server1 by changing directories to the installation_root\bin directory of the original installation and issuing 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 for server1.
    The port for the administrative console is defined on the HTTP_TRANSPORT_ADMIN setting. If the value of the setting is 20003, specify the following Web address in your browser:
    http://hostname_or_IP_address:20003/ibm/console/

Result

You created an Application Server profile, started an Application Server, and accessed the administrative console through commands.

What to do next

Deploy an application.



Related reference
wasprofile command

Task topic    

Terms of Use | Feedback

Last updated: Dec 11, 2005 4:07:15 PM CST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/tpro_setup.html

© Copyright IBM Corporation 2005. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)