Configure new resource environment providers using scripting
Procedure
- Start wsadmin
- Identify the parent ID and assign it to the node variable.
Jacl:
set node [$AdminConfig getid /Cell:mycell/Node:mynode/] node = AdminConfig.getid('/Cell:mycell/Node:mynode/') print node
Example output:
mynode(cells/mycell/nodes/mynode|node.xml#Node_1)- Identify the required attributes:
Jacl:
$AdminConfig required ResourceEnvironmentProvider print AdminConfig.required('ResourceEnvironmentProvider')
Example output
Attribute Type name String- Set up the required attributes and assign it to the repAttrs variable:
Jacl:
set n1 [list name REP1] set repAttrs [list $name] n1 = ['name', 'REP1'] repAttrs = [n1]
- Create a new resource environment provider:
Jacl:
set newrep [$AdminConfig create ResourceEnvironmentProvider $node $repAttrs] $AdminConfig save newrep = AdminConfig.create('ResourceEnvironmentProvider', node, repAttrs) print newrep
Example output
REP1(cells/mycell/nodes/mynode|resources.xml#ResourceEnvironmentProvider_1)- In a network deployment environment only, synchronize the node.
See Also
AdminConfig object for scripted administration
See Also
Commands for the AdminConfig object