+

Search Tips   |   Advanced Search

Set new resource environment providers using scripting


Use wsadmin and scripting to configure new resources environment providers.

Before starting this task, wsadmin must be running. See the Start wsadmin article for more information.

Perform the following steps to configure a new resource environment provider:

 

  1. Identify the parent ID and assign it to the node variable.

    • Jacl...

      set node [$AdminConfig getid /Cell:mycell/Node:mynode/]
    • Jython...

      node = AdminConfig.getid('/Cell:mycell/Node:mynode/')
      print node

    For example...

    mynode(cells/mycell/nodes/mynode|node.xml#Node_1)

  2. Identify the required attributes:

    • Jacl...

      $AdminConfig required ResourceEnvironmentProvider
    • Jython...

      print AdminConfig.required('ResourceEnvironmentProvider')

    For example...

    Attribute Type name String

  3. Set up the required attributes and assign it to the repAttrs variable:

    • Jacl...

      set n1 [list name REP1] set repAttrs [list $name]
    • Jython...

      n1 = ['name', 'REP1'] repAttrs = [n1]

  4. Create a new resource environment provider:

    • Jacl...

      set newrep [$AdminConfig create ResourceEnvironmentProvider $node $repAttrs]
    • Jython...

      newrep = AdminConfig.create('ResourceEnvironmentProvider', node, repAttrs)
      print newrep

    For example...

    REP1(cells/mycell/nodes/mynode|resources.xml#ResourceEnvironmentProvider_1)

  5. Save the configuration changes. See the Saving configuration changes with wsadmin article for more information.

  6. In a network deployment environment only, synchronize the node. See the Synchronizing nodes with wsadmin article for more information.

 

Related tasks


Use the AdminConfig object for scripted administration

 

Related


Commands for the AdminConfig object