스크립트를 사용하여 서버 버전 정보 확보

wsadmin 도구 및 스크립트를 사용하여 서버 버전 정보를 얻을 수 있습니다.

시작하기 전에

이 태스크를 시작하기 전에, wsadmin 도구가 실행 중이어야 합니다. 자세한 정보는 wsadmin 스크립트를 사용하여 wsadmin 스크립트 클라이언트 시작 주제를 참조하십시오.

이 태스크 정보

다음 단계를 수행하여 서버 버전 정보를 조회하십시오.

프로시저

  1. 서버를 식별하여 그것을 서버 변수에 지정하십시오.
    • Jacl 사용:
      set server [$AdminControl completeObjectName type=Server,name=server1,node=mynode,*]
    • Jython 사용:
      server = AdminControl.completeObjectName('type=Server,name=server1,node=mynode,*')
      print server
    출력 예제:
    WebSphere:cell=mycell,name=server1,mbeanIdentifier=server.xml#Server_1,
    type=Server,node=mynode,process=server1,processType=ManagedProcess
  2. 서버 버전을 조회하십시오. 서버 버전 정보는 serverVersion 속성에 저장됩니다. getAttribute 명령은 단일 속성의 속성 값을 리턴하며 속성 이름을 전달합니다.
    [AIX Solaris HP-UX Linux Windows][z/OS]참고: 다음 명령을 비루트 사용자로서 실행하려면 app_server_root/properties/version/app_server_root/properties/version/history 디렉토리에 대한 쓰기 권한이 있어야 합니다.
    • Jacl 사용:
      $AdminControl getAttribute $server serverVersion
    • Jython 사용:
      print AdminControl.getAttribute(server, 'serverVersion')
    WebSphere Application Server, Network Deployment 설치의 출력 예제는 다음과 같습니다.
    IBM WebSphere Application Server Version Report
       ---------------------------------------------------------------------------
    
            Platform Information
            ------------------------------------------------------------------------
    
                    Name: IBM WebSphere Application Server
                    Version:      5.0
    
    
            Product Information
            ------------------------------------------------------------------------
    
                    ID: BASE
                    Name: IBM WebSphere Application Server
                    Build Date: 9/11/02
                    Build Level: r0236.11
                    Version: 5.0.0
    
    
            Product Information
            ------------------------------------------------------------------------
    
                    ID: ND
                    Name: IBM WebSphere Application Server, Network Deployment
                    Build Date: 9/11/02
                    Build Level: r0236.11
                    Version: 5.0.0
    
       ---------------------------------------------------------------------------
       End Report
       ---------------------------------------------------------------------------
    

주제 유형을 표시하는 아이콘 태스크 주제



시간소인 아이콘 마지막 업데이트 날짜: last_date
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=txml_information
파일 이름:txml_information.html