Icon indicating 6.0.1 content only

manageprofiles 명령을 사용하여 프로파일 작성 및 기능 보강

로그 파일에서 기존 manageprofiles 명령행을 추출하여 동일한 시스템 또는 다른 시스템에서 비슷한 프로파일 작성 또는 기능 보강을 반복하거나 실행하십시오.

시작하기 전에

WebSphere Process Server에서 manageprofiles을 사용하려면 이미 프로파일 마법사(GUI 또는 자동 응답 파일 포함)를 사용하여 새 프로파일을 작성하거나 원하는 옵션이 있는 기존 프로파일을 기능 보강했어야 합니다. (초기에 manageprofiles을 사용하여 기능 보강 또는 작성 프로세스를 구성하는 것은 권장하지 않습니다.)

이 타스크의 수행 목적 및 시기

프로파일 마법사 또는 자동 설치로 나타난 명령행은 로그 파일에서 캡처됩니다. 이 로그 파일의 컨텐츠를 사용하여 manageprofiles 명령을 사용하는 후속 프로파일 작성 또는 기능 보강에 사용되는 비슷한 명령행을 작성합니다.
중요사항: 프로파일 작성에 사용되는 캡처된 명령행은 내부에 -create 매개변수를 포함합니다(주로 manageprofiles -create 양식). 프로파일의 기능 보강에 사용되는 캡처된 명령행은 내부에 -augment 매개변수를 포함합니다(주로 manageprofiles -augment양식). 명령행은 -create 매개변수 또는 -augment 매개변수가 있거나 모두 없습니다. 변경하지 마십시오. -create-augment로 대체하거나 -augment-create와 바꾸지 마십시오. 변경하는 경우, 다른 매개변수 및 인수가 틀리기 때문에 결과 스크립트가 대부분 제대로 동작하지 않을 수 있습니다.
제한사항: WebSphere Process Server는 프로파일 마법사를 사용하여 Deployment Manager로 연합되는 프로파일 기능 보강을 지원하지 않습니다. 먼저 이러한 프로파일을 연합 해제한 후 기능을 보강한 다음 addNode 명령행 도구를 실행하여 재연합합니다. 자세한 정보는 수동으로 연합 프로파일 기능 보강의 내용을 참조하십시오

이 타스크의 단계

  1. 프로파일 마법사 또는 자동 설치를 사용하여 프로파일을 작성하거나 기능 보강한 후, 생성된 로그 파일을 여십시오. 파일 경로 및 이름은 다음과 같습니다. profile_root/logs/pcatLogNNNNNNNNNNNNN.txt, 여기서 profile_root는 프로파일이 작성된 디렉토리이고 NNNNNNNNNNNNN은 시간 소인 값입니다.
  2. 로그 파일에서 CAPTURED_COMMAND_LINE:"로 시작하는 행을 검색하고 이 행(아래에 있는 랩 텍스트 포함)을 새 파일로 저장하십시오.
    1. 파일 전체에서 CAPTURED_COMMAND_LINE"로 시작하는 텍스트를 선택하십시오.
    2. 이 텍스트를 새 파일에 복사하십시오.
    3. 새 파일에서, 복사된 문자열에 "CAPTURED_COMMAND_LINE" 단어를 포함하는 모두를 제거하십시오.
    4. 파일을 저장하십시오.(고유한 유효 파일 이름을 사용할 수 있습니다.) 프로파일 마법사 실행 이전의 명령행 상당어구가 이 파일에 저장되어 있습니다.
  3. 명령행을 수정하여 변경사항을 반영하십시오. 문서 편집기를 사용하여 저장한 명령을 수정하고 실행하려는 새 프로파일 작성 또는 기능 보강을 반영해야 합니다. 다음 값은 수정해야 하거나 수정이 가능합니다.
    주: 기타 값을 변경하지 마십시오. 또는 명령행에 없거나 manageprofiles 매개변수에서 지정되지 않은 추가 매개변수를 추가하지 마십시오. 운영 체제에 적용할 수는 없지만 그대로 둘 수 있는 일부 매개변수가 나타날 수 있으며 이는 오류를 발생하지 않습니다.
    수행 내용 결과 및 조치
    프로파일 작성 또는 기능 보강 파일에서 "MASKED_PARAMETER_VALUE" 문자열 어커런스를 유효한 암호로 바꾸어야 합니다. 보안 목적으로 암호가 지정되는 대신 "MASKED_PARAMETER_VALUE" 문자열이 삽입되었습니다. 이러한 문자열을 바꾸어야 합니다. 자세한 정보 manageprofiles 매개변수의 내용을 참조하십시오.
    기존 프로파일 기능 보강 -profileName, -profilePath, -cellName, 및 -nodeName 매개변수의 값이 사용자가 기능을 보강하려는 프로파일의 값과 일치하는지 확인하십시오. 명령행의 기원과 수정할 프로파일에 따라 이 값을 수정해야 할 수 도 있습니다.
    기존 프로파일 기능 보강 명령행의 프로파일이 기능을 보강하려는 프로파일과 동일한 유형(독립형, Deployment Manager 또는 사용자 정의)인지 확인하십시오. 확인하지 않으면 예상치 못한 결과가 산출될 수 있습니다.
    새 프로파일 작성 -profileName, -profilePath, -cellName-nodeName의 값을 수정하여 고유값인지 확인하십시오.
    새 프로파일 작성 프로파일 마법사에서 정의한 포트를 다시 지정하십시오. 이 명령행은 처음 프로파일 마법사를 사용할 때 정의한 포트를 포함하지 않습니다. -portsFile 또는 -startPoint 매개변수 및 알맞은 포트 값을 명령행 끝에 추가하십시오.
    포트 지정에 대한 자세한 정보는 다음의 WebSphere Application Server Network Deployment, 버전 6.0 Information Center에 있는 wasprofile 명령 정보를 참조하십시오.

     http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp
    다른 WebSphere Process Server 설치에서 이 명령 사용(원래 프로파일이 작성된 동일한 컴퓨터 또는 다른 컴퓨터) 필요한 경우, 경로 이름 값을 수정하여 다른 WebSphere Process Server 설치의 위치를 반영하고 이 명령 파일이 발견되는 디렉토리 위치에 대한 규정된 경로를 수정하십시오.
  4. 수정된 명령행 파일을 사용하여 새 프로파일을 작성하거나 기존 프로파일을 기능 보강하십시오.
    1. 실행 파일로 작성하십시오.
      • Icon indicating Linux platforms Icon indicating UNIX platforms Linux 및 UNIX 플랫폼: 파일에 .sh 확장자를 제공하고 실행 권한을 제공하십시오.
      • Icon indicating Windows platforms Windows 플랫폼: 파일에 .bat 확장자를 제공하십시오.
    2. 명령행에서 파일을 실행하십시오. 명령 상태가 실행으로 표시됩니다. 완료하기를 기다리십시오.

다음은 새 프로파일 작성에 캡처된(수정되지 않은) 명령행의 예입니다. 이 경우, -create 매개변수에 의해 표시된 바와 같이 명령을 사용하여 새 프로파일을 작성했습니다.

(Nov 3, 2005 9:24:08 AM), Install, com.ibm.ws.install.wbiserver.ismp.actions.
CalculateManagedProfileInvocationAction, msg1, CAPTURED_COMMAND_LINE:
 /opt/o0544.1 2/bin/manageprofiles.sh -create -profileName "ProcSrv01" -profilePath 
"/opt/o054 4.12/profiles/ProcSrv01a" -templatePath "/opt/o0544.12/profileTemplates/default wbiserver"
 -federateLater "true" -hostName  "eexfvt99.rchland.ibm.com" -nodeName "eexfvt99Node28"
 -cellName  "eexfvt99Node26Cell" -dmgrHost  "localhost" -dmgrP ort  "8879" -OS_NAME  "Linux" 
-winserviceCheck  "true" -winserviceAccountType  " localsystem" -winserviceUserName  "root"
 -winservicePassword  "MASKED_PARAMETER_ VALUE" -winserviceStartupType  "manual" -dbJDBCClasspath 
 "null" -dbType  "CLOUD SCAPE" -ceiSampleJmsUser  "root" -ceiSampleJmsPwd  "MASKED_PARAMETER_VALUE"
 -cei SampleServerName  "server1" -ceiDbProduct  "CLOUDSCAPE_V51_1" -ceiDbName  "" 
-ce iDbUser  "" -ceiDbPwd  "MASKED_PARAMETER_VALUE" -ceiDbSysUser  ""
 -ceiDbSysPwd "MASKED_PARAMETER_VALUE" -ceiDbJdbcDriverClasspath  "" 
-ceiDbJdbcDriverType  "" -ceiDbServerName  "" -ceiDbServerPort  ""
 -ceiDbNodeName  "" -ceiDbExecuteScript s  "" -configureScaSecurity  "true" -scaSecurityUserId 
 "root" -scaSecurityPassw ord  "MASKED_PARAMETER_VALUE" -adminBFMGroups  "sadday" 
-mqUser  "root" -mqPwd "MASKED_PARAMETER_VALUE" -dbName  "WPRCSDB" -dbLocation  "" 
-dbUserId  "" -dbPas sword  "MASKED_PARAMETER_VALUE" -dbServerPort  "null" 
-dbHostName  "localhost" - dbInstance  "ol_" -dbCreateNew  "true" -dbStorageGroup  ""
 -dbConnectionLocation "" -configureAppScheduler  "true" -appSchedulerServer  "server1" 
다음은 파일 헤더 정보를 제거하고 마스크 암호를 바꾸도록 수정된 명령행 예입니다.
/opt/o0544.1 2/bin/manageprofiles.sh -create -profileName "myProfile"
 -profilePath "/opt/o054 4.12/profiles/myProfile" -templatePath "/opt/o0544.12/profileTemplates/default
  wbiserver" -federateLater "true" -hostName  "eexfvt99.rchland.ibm.com"
 -nodeName "myNodeName" -cellName  "myCellName" -dmgrHost  "localhost" 
-dmgrPort  "8879" -OS_NAME  "Linux" -winserviceCheck  "true" -winserviceAccountType 
 " localsystem" -winserviceUserName  "root" -winservicePassword  "MASKED_PARAMETER_VALUE" 
-winserviceStartupType  "manual" -dbJDBCClasspath  "null" -dbType  "CLOUD SCAPE"
 -ceiSampleJmsUser  "root" -ceiSampleJmsPwd  "myRootPwd" 
-cei SampleServerName  "server1" -ceiDbProduct  "CLOUDSCAPE_V51_1" -ceiDbName  "" -ce iDbUser  "
" -ceiDbPwd  "MASKED_PARAMETER_VALUE" -ceiDbSysUser  "" -ceiDbSysPwd "MASKED_PARAMETER_VALUE"
 -ceiDbJdbcDriverClasspath  "" -ceiDbJdbcDriverType  "" -ceiDbServerName  ""
 -ceiDbServerPort  "" -ceiDbNodeName  "" -ceiDbExecuteScript s  "" -configureScaSecurity
  "true" -scaSecurityUserId  "root" -scaSecurityPassword  "myRootPwd" 
-adminBFMGroups  "sadday" -mqUser  "root" -mqPwd "myRootPwd" -dbName  "WPRCSDB"
 -dbLocation  "" -dbUserId  "" -dbPassword  "MASKED_PARAMETER_VALUE" -dbServerPort 
 "null" -dbHostName  "localhost" - dbInstance  "ol_" -dbCreateNew  "true" 
-dbStorageGroup  "" -dbConnectionLocation "" -configureAppScheduler  "true" -appSchedulerServer  
"server1" 
Icon indicating AIX platforms AIX 플랫폼: 다음 예는 AIX 시스템에서 실행되는 스크립트를 표시합니다. 여기서 "myCommandline.sh"는 작성된 스크립트 이름입니다.
/usr/IBM/WebSphere/ProcServer/bin>myCommandline.sh
INSTCONFSUCCESS: The profile now exists.
INSTCONFSUCCESS: Profile augmentation succeeded.
INSTCONFSUCCESS: Profile augmentation succeeded.
INSTCONFSUCCESS: Profile augmentation succeeded.

/usr/IBM/WebSphere/ProcServer/bin>
Icon indicating HP-UX platforms Icon indicating Solaris platforms HP-UX 및 Solaris 플랫폼: 다음 예는 WebSphere Process Server HP-UX 또는 Solaris 시스템에서 실행되는 스크립트를 표시합니다. 여기서 "myCommandline.sh"는 작성된 스크립트 이름입니다.
/opt/IBM/WebSphere/ProcServer/bin>myCommandline.sh
INSTCONFSUCCESS: The profile now exists.
INSTCONFSUCCESS: Profile augmentation succeeded.
INSTCONFSUCCESS: Profile augmentation succeeded.
INSTCONFSUCCESS: Profile augmentation succeeded.

/opt/IBM/WebSphere/ProcServer/bin>
Icon indicating Linux platforms Icon indicating 6.0.1 content only Linux 플랫폼: 다음 예는 WebSphere Process Server, 버전 6.0.1 Linux 시스템에서 실행되는 스크립트를 표시합니다. 여기서 "myCommandline.sh"는 작성된 스크립트 이름입니다.
/opt/ibm/WebSphere/ProcServer/bin>myCommandline.sh
INSTCONFSUCCESS: The profile now exists.
INSTCONFSUCCESS: Profile augmentation succeeded.
INSTCONFSUCCESS: Profile augmentation succeeded.
INSTCONFSUCCESS: Profile augmentation succeeded.

/opt/ibm/WebSphere/ProcServer/bin>
Icon indicating Linux platforms Linux 플랫폼: 다음 예는 WebSphere Process Server, 버전 6.0.0 Linux 시스템에서 실행되는 스크립트를 표시합니다. 여기서 "myCommandline.sh"는 작성된 스크립트 이름입니다.
/opt/IBM/WebSphere/ProcServer/bin>myCommandline.sh
INSTCONFSUCCESS: The profile now exists.
INSTCONFSUCCESS: Profile augmentation succeeded.
INSTCONFSUCCESS: Profile augmentation succeeded.
INSTCONFSUCCESS: Profile augmentation succeeded.

/opt/IBM/WebSphere/ProcServer/bin>
Icon indicating Windows platforms Windows 플랫폼: 다음 예는 Windows 시스템에서 실행되는 스크립트를 표시합니다. 여기서 "myCommandline.bat"는 작성된 스크립트 이름입니다.
C:\Program Files\IBM\WebSphere\ProcServer\bin>myCommandline.bat
INSTCONFSUCCESS: The profile now exists.
INSTCONFSUCCESS: Profile augmentation succeeded.
INSTCONFSUCCESS: Profile augmentation succeeded.
INSTCONFSUCCESS: Profile augmentation succeeded.

C:\Program Files\IBM\WebSphere\ProcServer\bin>
관련 참조
WebSphere Process Server, 버전 6.0.1 사용을 위한 manageprofiles 명령
manageprofiles 매개변수

이용약관 |

최종 갱신: 2006년 4월 13일

(c) Copyright IBM Corporation 2005, 2006.
이 Information Center는 Eclipse 기술을 기반으로 합니다. (http://www.eclipse.org 웹 사이트 참조)