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


Edit application configurations using the wsadmin scripting tool

Use wsadmin.sh to configure application settings.

We can use the AdminApp edit or editInteractive command to change an entire application or a single application module.

You can set or update a configuration value using options in batch mode. To identify which configuration object is to be set or updated, the values of read only fields are used to find the corresponding configuration object. All the values of read only fields have to match with an existing configuration object, otherwise the command fails.

We can use pattern matching to simplify the task of supplying required values for certain complex options. Pattern matching only applies to fields that are required or read only.

If an application is running, changing an application setting causes the application to restart. On stand-alone servers, the application restarts after you save the change. On multiple-server products, the application restarts after you save the change and files synchronize on the node where the application is installed.

To control when synchronization occurs on multiple-server products, deselect Synchronize changes with nodes on the Console preferences page.


Procedure

  1. Start wsadmin.sh.

  2. Edit the entire application or a single application module. Use one of the following commands:

    • The following command uses the installed application and the command option information to edit the application:

        ### Jacl

        $AdminApp edit appname {options}
        

      • Jython list:

        AdminApp.edit('appname', ['options'])
        

        ### Jython string

        AdminApp.edit('appname', '[options]')
        

  3. Save the configuration changes.

    Save the configuration changes:

    AdminConfig.save()
    

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


Start the wsadmin scripting client using wsadmin.sh
Synchronize nodes using wsadmin.sh
Use the script library to automate the application serving environment using wsadmin.sh
Use the wsadmin scripting AdminApp object for scripted administration


Related


Commands for the AdminApp object using wsadmin.sh

+

Search Tips   |   Advanced Search