IBM WebSphere - List profile path using the manageprofiles getPath command
by
Jeremy Canfield |
Updated: January 31 2023
| IBM WebSphere articles
If you are not sure what a profile is, refer to this article.
There are a number of options can be be used with the manageprofiles.sh (Linux) or manageprofiles.bat (Windows) script.
- Backup a profile (-backupProfile)
- Create a new profile (-create)
- Delete a profile (-delete)
- Determine if a profile is valid in the registry (-validateRegistry)
- Determine if a profile is valid in the registry and updae (-validateAndUpdateRegistry)
- List profiles (-listProfiles)
- List default profile (-getDefaultName)
- List profile path (-getPath) (this article)
- Restore a profile (-restoreProfile)
The manageprofiles.sh (Linux) or manageprofiles.bat (Windows) command with the -listProfiles option can be used to list the profiles on the system. In this example, there are two profiles, AppSrv01 and AppSrv02.
~]# ${WAS_INSTALL_ROOT}/bin/manageprofiles.sh -listProfiles
[AppSrv01, AppSrv02]
By default, profiles reside at ${WAS_INSTALL_ROOT}/profiles, so you can just as easily list the contents of the ${WAS_INSTALL_ROOT}/profiles directory.
~]# ls ${WAS_INSTALL_ROOT}/profiles
AppSrv01 AppSrv02
The the -getPath option can be used to display a profiles path.
~]# ${WAS_INSTALL_ROOT}/bin/manageprofiles.sh -profileName AppSrv01 -getPath
/opt/WebSphere/AppServer/profiles/AppSrv01
Did you find this article helpful?
If so, consider buying me a coffee over at