Removing configuration objects with the wsadmin tool

Use this task to delete a configuration object from the configuration repository. This action only affects the configuration.

About this task

If a running instance of a configuration object exists when you remove the configuration, the change has no effect on the running instance.

Procedure

  1. wsadmin 스크립트 도구를 시작하십시오.
  2. Assign the ID string that identifies the server that you want to remove:

    Using Jacl:

    set s1 [$AdminConfig getid /Node:mynode/Server:myserver/]

    Using Jython:

    s1 = AdminConfig.getid('/Node:mynode/Server:myserver/')
    Table 1. AdminConfig getid command description. The following table describes the AdminConfig getid command.
    Element Description
    set is a Jacl command
    s1 is a variable name
    $ is a Jacl operator for substituting a variable name with its value
    AdminConfig is an object that represents the WebSphere® Application Server configuration
    getid is an AdminConfig command
    Node is an object type
    mynode is the host name of the node from which the server is removed
    Server is an object type
    myserver is the name of the server to remove
  3. Remove the configuration object. For example:
    • Using Jacl:

      $AdminConfig remove $s1
    • Using Jython:
      AdminConfig.remove(s1)
    Table 2. AdminConfig remove command description. The following table describes the AdminConfig remove command.
    Element Description
    $ is a Jacl operator for substituting a variable name with its value
    AdminConfig is an object that represents the WebSphere Application Server configuration
    remove is an AdminConfig command
    s1 evaluates the ID of the server that is specified in step number 2
  4. Save the configuration changes.
    다음 명령 예제를 사용하여 구성 변경사항을 저장하십시오.
    AdminConfig.save()
  5. In a network deployment environment only, synchronize the node.
    AdminNodeManagement 스크립트 라이브러리에 있는 syncActiveNode 또는 syncNode 스크립트를 사용하여 구성 변경사항을 노드에 전파하십시오.
    • 다음 명령 데모에 표시된 것과 같이, syncActiveNodes 스크립트를 사용하여 변경사항을 셀 내의 각 노드에 전파하십시오.
      AdminNodeManagement.syncActiveNodes()
    • 다음 명령 데모에 표시된 것과 같이, syncNode 스크립트를 사용하여 변경사항을 특정 노드에 전파하십시오.
      AdminNodeManagement.syncNode("myNode")

Results

The application server configuration no longer contains a specific server object. Running servers are not affected.

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



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