+

Search Tips   |   Advanced Search

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.

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


Tasks

  1. Start the wsadmin scripting tool.

  2. Assign the ID string that identifies the server to remove:

    Use Jacl:

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

    Use Jython:

      s1 = AdminConfig.getid('/Node:mynode/Server:myserver/')

  3. Remove the configuration object. For example:

    • Jacl:

        $AdminConfig remove $s1
    • Jython:

        AdminConfig.remove(s1)

  4. Save the configuration changes.

      AdminConfig.save()

  5. In a network deployment environment only, synchronize the node.

    Use the syncActiveNode or syncNode scripts in the AdminNodeManagement script library to propagate the configuration changes to node or nodes.

    • Use the syncActiveNodes script to propagate the changes to each node in the cell:

        AdminNodeManagement.syncActiveNodes()

    • Use the syncNode script to propagate the changes to a specific node:

        AdminNodeManagement.syncNode("myNode")

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

  • Synchronize nodes
  • Use the script library to automate the application serving environment
  • wsadmin AdminConfig
  • Commands for the AdminConfig object