Configure new resource environment providers using scripting

 

Procedure

  1. Start wsadmin

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

    Example output:

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

  3. Identify the required attributes:

    • Jacl:

      $AdminConfig required ResourceEnvironmentProvider
      

    • Jython

      print AdminConfig.required('ResourceEnvironmentProvider')
      

    Example output

    Attribute     Type
    name     String
    

  4. 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]
      

  5. Create a new resource environment provider:

    • Jacl:

      set newrep [$AdminConfig create ResourceEnvironmentProvider $node $repAttrs]
      $AdminConfig save
      

    • Jython

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

    Example output

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

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


 

See Also


AdminConfig object for scripted administration

 

See Also


Commands for the AdminConfig object