I recently had a requirement to silently create a Cell profile for WebSphere Application Server 8.5 and try as I might I couldn't get the manageprofiles command to do what I wanted. The main observable symptom was that once the profile was created, the startManager script was missing from the <PROFILE>/bin directory. A closer look using the Profile Management Tool showed that the profile has been created as type default.
After an intensive dive into the InfoCenter without much success, one of my go-to-guys
pointed me at the following Technote
which states "The manageprofiles.[sh|bat] script is very difficult to use and has many complex and confusing parameters."!
However, the Technote also offers the Manage Profiles Interactive tool as a download. It's very easy to install and use (there's even a flash video
) and you can use it to either invoke the manageprofiles command for you, or to create a response file for you to use later.
Using the interactive tool led me to the following two response files (I've parameterised them with <> for you to fill out):
Cell profile Deployment Manager
Cell profile Managed Node
Another trick you can apply is to use the Profile Management Tool GUI to create the profile you desire, and then look at <WAS_INSTALL_ROOT>/logs/manageprofiles/pmt.log file. The Profile Management Tool helpfully logs the command line it's going to use in a line similar to:
<message>Generated Command data: [-create, -hostName, eg03ph03, -profileName, Dmgr01, -enableAdminSecurity, false, -nodeName, eg03ph03CellManager01, -cellName, eg03ph03Cell01, -serverType, DEPLOYMENT_MANAGER, -profilePath, /usr/IBM/WebSphere/AppServer/profiles/Dmgr01, -templatePath, /usr/IBM/WebSphere/AppServer/profileTemplates/management]</message>