Network Deployment (Distributed operating systems), v8.0 > Scripting the application serving environment (wsadmin) > Use the wsadmin scripting AdminConfig object for scripted administration


Remove configuration objects with wsadmin.sh

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.


Procedure

  1. Start wsadmin.sh.

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

    ### Jacl

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

    ### 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.

    Save the configuration changes:

    AdminConfig.save()
    

  5. 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")
      


Results

The application server configuration no longer contains a specific server object. Running servers are not affected.
Synchronize nodes using wsadmin.sh
Use the script library to automate the application serving environment using wsadmin.sh
Use the wsadmin scripting AdminConfig object for scripted administration


Related


Commands for the AdminConfig object using wsadmin.sh

+

Search Tips   |   Advanced Search