Example: Configuring a new resource environment provider using wsadmin
An example configuring a new resource environment provider follows:
- Identify the parent ID and assign it to the node variable.
set node [$AdminConfig getid /Cell:mycell/Node:mynode/]An example of this output follows:
mynode(cells/mycell/nodes/mynode:node.xml#Node_1)- Identify the required attributes:
$AdminConfig required ResourceEnvironmentProviderAn example of this output follows:
Attribute Type name String- Set up the required attributes and assign it to the repAttrs variable:
set n1 [list name REP1] set repAttrs [list $name]- Create a new resource environment provider:
set newrep [$AdminConfig create ResourceEnvironmentProvider $node $repAttrs]An example of this output follows:
REP1(cells/mycell/nodes/mynode:resources.xml#ResourceEnvironmentProvider_1)- Save the changes with the following command:
$AdminConfig save