wsadmin 스크립트를 통해 WSDM 사용
wsadmin 도구를 AdminConfig 오브젝트와 함께 사용하여 환경에서 WSDM(Web Services Distributed Management)을 사용 가능하게 하십시오. WSDM은 표준화된 웹 서비스 인터페이스를 통해 자원 관리를 지원하는 OASIS 승인 표준입니다.
이 태스크 정보
WSDM 애플리케이션은 시스템 애플리케이션으로 설치되며 기본적으로 사용 불가능합니다. WSDM 기능을 사용하려면 이 주제의 스크립트를 사용하여 WSDM을 사용 가능하게 하십시오.
독립형 애플리케이션 서버 환경에서는 시스템이 각 애플리케이션 서버 인스턴스에 WSDM 애플리케이션을 하나씩 배치합니다. WSDM 애플리케이션이 인스턴스의 단일 JVM(Java Virtual Machine) 내에서 실행하는 관리 코드에 대한 관리 클라이언트로 작동하도록 하십시오.
프로시저
예
다음 샘플은 환경에서 WSDM을 사용 가능하게 하는
Jython 및 Jacl 스크립트를 제공합니다.
- Jython 사용:
deployment = AdminConfig.getid('/Deployment:WebSphereWSDM/') deployedObject = AdminConfig.showAttribute(deployment, 'deployedObject') targetMappings = AdminConfig.showAttribute(deployedObject, "targetMappings") mappings = targetMappings[1:len(targetMappings)-1].split(" ") for target in mappings: AdminConfig.modify(target, '[[enable true]]') AdminConfig.save() - Jacl 사용:
set deployment [$AdminConfig getid /Deployment:WebSphereWSDM] set deployedObject [$AdminConfig showAttribute $deployment deployedObject] set targetMappings [lindex [$AdminConfig showAttribute $deployedObject targetMappings] 0] $AdminConfig modify $targetMappings {{enable true}} $AdminConfig save
태스크 주제