Network Deployment (Distributed operating systems), v8.0 > Scripting the application serving environment (wsadmin) > Configure servers with scripting


Configure a unique HTTP session clone ID for each application server using scripting


  1. Retrieve the node name and server names.

    ### Jacl

      set server [$AdminConfig getid /Node:node_name/Server:server_name

      ]

    ### Jython

      server = AdminConfig.getid('/Node:node_name/Server:server_name

      ')

  2. Retrieve the name of the web container, associated with the node and server values identified in the previous step, and assign the value to the wc variable.

    ### Jacl

      set wc [$AdminConfig list WebContainer $server]

    ### Jython

      wc = AdminConfig.list('WebContainer', server)

  3. Create the HTTPSessionCloneId custom property using the node, server, and web container values assigned in the previous steps.

    ### Jacl

      $AdminConfig create Property $wc {{name "HttpSessionCloneId"} {description ""} {value "value"} {required "false"}}

    ### Jython

      AdminConfig.create('Property', wc, '[[validationExpression ""][name "HttpSessionCloneId"] [description ""][value "value"][required "false"]]')

  4. Save the configuration changes.


Saving configuration changes with wsadmin.sh
Use the wsadmin scripting AdminConfig object for scripted administration


Related


Commands for the AdminConfig object using wsadmin.sh
Session management custom properties

+

Search Tips   |   Advanced Search