wsadmin 스크립트를 사용하여 특성 파일 추출
구성에서 특성 파일을 추출하려면 이 주제를 사용하십시오. wsadmin 도구를 사용하여 셀, 서버, 서버 하위 유형 및 노드 구성에 대한 특성 파일을 추출할 수 있습니다.
이 태스크 정보
AdminTask 오브젝트에 PropertiesBasedConfiguration 명령 그룹을 사용하여 환경에 정의된 구성 속성과 값을 특성 파일로 추출할 수 있습니다.
![[AIX Solaris HP-UX Linux Windows]](../images/dist.gif)
![[z/OS]](../images/ngzos.gif)
AdminTask.extractConfigProperties('-interactive')
프로시저
- 셀 구성을 추출하십시오.
- wsadmin 스크립트 도구를 시작하십시오.
- 셀 구성을 추출하십시오. 다음 Jython 예제와 같이 extractConfigProperties 명령을 사용하여 오브젝트 구성을 추출하십시오.
AdminTask.extractConfigProperties('[-propertiesFileName ConfigProperties_cell.props]')
시스템에서 다음 예제와 같은 특성 파일이 추출됩니다.Cell.props # # SubSection 1.0 # Cell level attributes # ResourceType=Cell ImplementingResourceType=Cell ResourceId=Cell=!{cellName} # # #Properties # shortName=null cellType=DISTRIBUTED #ENUM(UDP|TCP|MULTICAST|DISTRIBUTED|STANDALONE),readonly name=!{cellName} multicastDiscoveryAddressEndpointName=null discoveryAddressEndpointName=null cellDiscoveryProtocol=TCP #ENUM(UDP|TCP|MULTICAST) …. … Properties of nodes,servers, clusters, applications, etc. …. EnvironmentVariablesSection # # #Environment Variables #Day Month 17 Time CDT Year cellName=myCell
특성 파일은 셀, 노드, 서버, 클러스터, 애플리케이션, 코어 그룹 또는 노드 그룹 이름을 표시하지 않습니다. 대신 명령이 !{cellName} 같은 변수를 작성하고, 이들을 특성 파일의 끝에 있는 EnvironmentVariables 섹션에 포함시킵니다. EnvironmentVariables 섹션은 특성 파일에 있는 각 변수를 포함합니다.
- 서버 구성을 추출하십시오.
- wsadmin 스크립트 도구를 시작하십시오.
- 관심 있는 애플리케이션 서버 구성을 추출하십시오. 다음 Jython 예제와 같이 extractConfigProperties 명령을 사용하여 서버 구성을 추출하십시오.
AdminTask.extractConfigProperties('[-propertiesFileName ConfigProperties_server1.props -configData Server=server1]')
시스템에서 다음 예제와 같은 특성 파일이 추출됩니다.# # SubSection 1.0 # Server Section # ResourceType=Server ImplementingResourceType=Server ResourceId=Cell=!{cellName}:Node=!{nodeName}:Server=!{serverName} # # #Properties # shortName=null serverType=DEPLOYMENT_MANAGER #readonly developmentMode=false #boolean parallelStartEnabled=true #boolean name=!{serverName} clusterName=null uniqueId=null modelId=null … … Properties of other inner objects ( EJBContainer, WebContainer, ORB etc) and subtypes not shown. … EnvironmentVariablesSection # #Environment Variables #Day Month 16 Time CDT Year cellName=myCell nodeName=myNode hostName=myHost.com serverName=dmgr
특성 파일은 셀, 노드, 서버, 클러스터, 애플리케이션, 코어 그룹 또는 노드 그룹 이름을 표시하지 않습니다. 대신 명령이 !{cellName} 같은 변수를 작성하고, 이들을 특성 파일의 끝에 있는 EnvironmentVariables 섹션에 포함시킵니다. EnvironmentVariables 섹션은 특성 파일에 있는 각 변수를 포함합니다.
- 특정 서버의 서버 하위 유형 구성을
추출하십시오.
- wsadmin 스크립트 도구를 시작하십시오.
- 특정 서버의 EJB 컨테이너 및 웹 컨테이너 특성을 추출하십시오. 다음 Jython 예제와 같이 extractConfigProperties 명령을 사용하여 서버 구성을 추출하십시오.
AdminTask.extractConfigProperties('[-propertiesFileName ejbcontainer.props -configData Server=server1 -filterMechanism SELECTED_SUBTYPES -selectedSubTypes [EJBContainer WebContainer]]')
시스템에서 다음 예제와 같은 특성 파일이 추출됩니다.# # SubSection 1.0 # EJBContainer # ResourceType=EJBContainer ImplementingResourceType=EJBContainer ResourceId=Cell=!{cellName}:Node=!{nodeName}:Server=!{serverName}:ApplicationServer= ID#ApplicationServer_1:EJBContainer=ID#EJBConntainer_1 AttributeInfo=components # # #Properties # EJBTimer={} #ObjectName*(null) name=null defaultDatasourceJNDIName=null inactivePoolCleanupInterval=30000 #long passivationDirectory="${USER_INSTALL_ROOT}/temp" enableSFSBFailover=false #boolean server=null parentComponent= WebSphere Application Server, Network Deployment Server # # SubSection 1.0 # WebContainer # ResourceType=WebContainer ImplementingResourceType=WebContainer ResourceId=Cell=!{cellName}:Node=!{nodeName}:Server=!{serverName}:ApplicationServer= ID#ApplicationServer_1:WebContainer=ID#WebConntainer_1 AttributeInfo=components # # #Properties # enableServletCaching=false #boolean name=null defaultVirtualHostName=null server=null maximumPercentageExpiredEntries=15 #integer asyncIncludeTimeout=60000 #integer parentComponent=WebSphere Application Server, Network Deployment Server disablePooling=false #boolean sessionAffinityFailoverServer=null maximumResponseStoreSize=100 #integer allowAsyncRequestDispatching=false #boolean sessionAffinityTimeout=0 #integer EnvironmentVariablesSection # #Environment Variables #Thu Apr 17 14:17:25 CDT 2008 cellName=myCell nodeName=myNode hostName=myhost.com serverName=dmgr
특성 파일은 셀, 노드, 서버, 클러스터, 애플리케이션, 코어 그룹 또는 노드 그룹 이름을 표시하지 않습니다. 대신 명령이 !{cellName} 같은 변수를 작성하고, 이들을 특성 파일의 끝에 있는 EnvironmentVariables 섹션에 포함시킵니다. EnvironmentVariables 섹션은 특성 파일에 있는 각 변수를 포함합니다.
EJBContainer=ID#EJBContainer_1 문자열은 서버 내의 EJBContainer 오브젝트를 표시합니다. 구성에서 해당 오브젝트를 고유하게 식별하려면 이 XML ID를 사용하십시오. 구성에서, 이름 필드가 myContainer로 설정되어 있는 경우 특성 파일을 구성에 적용하기 전에 이 필드를 EJBContainer=myContainer로 수정할 수 있습니다.
- 노드의 하위 유형을 순회하지 말고 노드 특성을 추출하십시오.
- wsadmin 스크립트 도구를 시작하십시오.
- 서버 및 자원의 특정 하위 유형 특성을 제외한
노드 특성을 추출하십시오. 다음 Jython 예제와 같이 extractConfigProperties 명령을 사용하여 노드 구성 특성을 추출하십시오.
AdminTask.extractConfigProperties('[-propertiesFileName node.props -configData Node=myNode -filterMechanism NO_SUBTYPES]')
시스템에서 다음 예제와 같은 특성 파일이 추출됩니다.# # SubSection 1.0 # Node Section # ResourceType=Node ImplementingResourceType=Node ResourceId=Cell=!{cellName}:Node=!{nodeName} # # #Properties # shortName=null name=!{nodeName} maxFilePermissionForApps=".*\.dll=755#.*\.so=755#.*\.a=755#.*\.sl=755 " discoveryProtocol=TCP #ENUM(UDP|TCP|MULTICAST) hostName=!{hostName} # ## Section 1.0_1#Cell=!{cellName}:Node=!{nodeName} # ResourceType=Node ImplementingResourceType=Node ExtensionId=NodeMetadataExtension ResourceId=Cell=!{cellName}:Node=!{nodeName} # nodeOS=distributed nodeVersion=7.0.0.0 # # End of Section 1.0_1# Cell=!{cellName}:Node=!{nodeName} # # # End of Section 1.0# Cell=!{cellName} :Node=!{nodeName} # EnvironmentVariablesSection # #Environment Variables #Day Month 17 Time CDT Year cellName=myCell nodeName=myNode
특성 파일은 셀, 노드, 서버, 클러스터, 애플리케이션, 코어 그룹 또는 노드 그룹 이름을 표시하지 않습니다. 대신 명령이 !{cellName} 같은 변수를 작성하고, 이들을 특성 파일의 끝에 있는 EnvironmentVariables 섹션에 포함시킵니다. 특성 파일의 EnvironmentVariables 섹션은 해당 파일에 있는 각 변수를 포함합니다.
- 노드의 하위 유형을 순회하거나 확장을 호출하지 말고
노드 특성을 추출하십시오.
- wsadmin 스크립트 도구를 시작하십시오.
- 확장을 호출하지 말고, 서버 및 자원의 특정 하위 유형 특성을 제외한
노드 특성을 추출하십시오. 다음 Jython 예제와 같이 extractConfigProperties 명령을 사용하여 노드 구성 특성을 추출하십시오.
AdminTask.extractConfigProperties('[-propertiesFileName node.props -configData Node=myNode -filterMechanism NO_SUBTYPES_AND_EXTENSIONS]')
시스템에서 다음 예제와 같은 특성 파일이 추출됩니다.# # SubSection 1.0 # Node Section # ResourceType=Node ImplementingResourceType=Node ResourceId=Cell=!{cellName}:Node=!{nodeName} # # #Properties # shortName=null name=!{nodeName} maxFilePermissionForApps=".*\.dll=755#.*\.so=755#.*\.a=755#.*\.sl=755 " discoveryProtocol=TCP #ENUM(UDP|TCP|MULTICAST) hostName=!{hostName} # ## Section 1.0_1#Cell=!{cellName}:Node=!{nodeName} # ResourceType=Node ImplementingResourceType=Node ExtensionId=NodeMetadataExtension ResourceId=Cell=!{cellName}:Node=!{nodeName} # nodeOS=distributed nodeVersion=7.0.0.0 # # End of Section 1.0_1# Cell=!{cellName}:Node=!{nodeName} # # # End of Section 1.0# Cell=!{cellName}:Node=!{nodeName} # EnvironmentVariablesSection # #Environment Variables #Day Month 17 Time CDT Year cellName=myCell nodeName=myNode
명령으로 추출된 특성 파일에는 NodeMetadataExtension 섹션이 표시되지 않습니다. 이 섹션은 노드 자원의 확장이기 때문입니다. 특성 파일은 셀, 노드, 서버, 클러스터, 애플리케이션, 코어 그룹 또는 노드 그룹 이름을 표시하지 않습니다. 대신 명령이 !{cellName} 같은 변수를 작성하고, 이들을 특성 파일의 끝에 있는 EnvironmentVariables 섹션에 포함시킵니다. 특성 파일의 EnvironmentVariables 섹션은 해당 파일에 있는 각 변수를 포함합니다.
다음에 수행할 작업
특성 파일을 추출한 후, 이 기능을 다음과 같은 다양한 용도로 사용하십시오.
- 여러 개의 관리 콘솔 패널을 구성하지 않고 적은 명령을 실행하여 한 곳에서 기존의 구성 수정
- 애플리케이션 개발 라이프 사이클 개선
특성 파일을 사용하여 환경에서 다음과 같은 서버 하위 유형을 관리할 수 있습니다.
- 애플리케이션 서버
- 노드
- 프로파일
- 가상 호스트
- 애플리케이션
- 권한 테이블
- 데이터 복제 도메인
- 변수 맵
- JDBC(Java™ Database Connectivity) 프로바이더
- URL(Uniform Resource Locator) 프로바이더
- 메일 제공자
- 자원 환경 제공자
- J2C(Java™ 2 Connector) 자원 어댑터
하위 주제
Extracting or modifying WCCM object properties
Use the wsadmin tool to extract or modify the properties of an existing WCCM (WebSphere Common Configuration Model) object.


http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=txml_7extractprops
파일 이름:txml_7extractprops.html