WebSphere Application Server(WAS) 환경에서 프로파일(Profile)의 생명주기를 관리하는
manageprofiles명령어 사용법을 정리합니다. 프로파일 생성, 삭제, 백업 및 복구 과정을 포함합니다.
Test Environment
- OS: Windows 10
- Version: WebSphere Application Server (WAS) v8.0
1. manageprofiles 개요
manageprofiles는 WAS의 런타임 환경인 프로파일을 CLI 환경에서 관리하는 핵심 도구입니다.
주요 모드 (Modes)
-create: 새 프로파일 작성-delete: 기존 프로파일 삭제-deleteAll: 모든 프로파일 삭제-backupProfile/-restoreProfile: 프로파일 백업 및 복구-listProfiles: 현재 생성된 프로파일 목록 조회-validateRegistry: 프로파일 레지스트리 유효성 검사
2. 프로파일 생성 (Create)
새로운 런타임 환경(Dmgr, Managed Node 등)을 구성합니다.
구문 및 주요 인수
manageprofiles -create [옵션]
- -templatePath: (필수) 생성할 프로파일의 템플릿 경로 (예: dmgr, default, managed 등)
- -profileName: (필수) 생성할 프로파일의 이름
- -profilePath: (필수) 프로파일이 실제로 설치될 파일 시스템 경로
- -isDefault: (선택) 이 프로파일을 기본 프로파일로 설정할지 여부
사용 예시 (Windows Batch)
Deployment Manager (Dmgr) 생성
manageprofiles.bat -create ^
-profileName Dmgr01 ^
-templatePath "C:\nd61\WebSphere\AppServer\profileTemplates\dmgr" ^
-profilePath "C:\nd61\WebSphere\AppServer\profiles\Dmgr01"
Application Server (Managed Node) 생성
manageprofiles.bat -create ^
-profileName AppSrv01 ^
-templatePath "C:\nd61\WebSphere\AppServer\profileTemplates\managed" ^
-profilePath "C:\nd61\WebSphere\AppServer\profiles\AppSrv01"
3. 프로파일 삭제 (Delete)
더 이상 사용하지 않는 프로파일을 제거하거나, 레지스트리에서 정보를 삭제합니다.
구문
manageprofiles -delete -profileName [프로파일이름]
사용 예시
# 특정 프로파일 삭제 (Unix/Linux 예시)
./manageprofiles.sh -delete -profileName Dmgr01
./manageprofiles.sh -delete -profileName AppSrv01
# 모든 프로파일 일괄 삭제
./manageprofiles.sh -deleteAll
4. 백업 및 복구 (Backup & Restore)
기존 프로파일의 구성 정보를 백업하거나 복원합니다. 마이그레이션이나 장애 대비용으로 사용됩니다.
구문
- 백업:
manageprofiles -backupProfile -profileName [이름] -backupFile [경로] - 복구:
manageprofiles -restoreProfile -backupFile [경로](복구 시에는 백업 파일 경로만 지정하면 해당 파일 내의 정보로 복원됩니다.)
사용 예시
:: 프로파일 백업
manageprofiles -backupProfile -profileName Dmgr01 -backupFile "c:\backup\Dmgr01_2023.zip"
:: 프로파일 복구
manageprofiles -restoreProfile -backupFile "c:\backup\Dmgr01_2023.zip"
Next Step:
프로파일 생성이 완료되었다면, addNode 명령어를 통해 Managed Node를 Dmgr(Deployment Manager)에 연합(Federation)하는 과정을 진행해 보십시오.