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.
Using Jacl:
set node [$AdminConfig getid /Cell:mycell/Node:mynode/]
An example of this output follows:
mynode(cells/mycell/nodes/mynode:node.xml#Node_1)
Using Jython:
node = AdminConfig.getid('/Cell:mycell/Node:mynode/') print node
- Identify the required attributes:
Using Jacl:
$AdminConfig required ResourceEnvironmentProvider
An example of this output follows:
Attribute Type name String
Using Jython:
print AdminConfig.required('ResourceEnvironmentProvider')
- Set up the required attributes and assign it to the repAttrs variable:
Using Jacl:
set n1 [list name REP1] set repAttrs [list $name]
Using Jython:
n1 = ['name', 'REP1'] repAttrs = [n1]
- Create a new resource environment provider:
Using Jacl:
set newrep [$AdminConfig create ResourceEnvironmentProvider $node $repAttrs]
An example of this output follows:
REP1(cells/mycell/nodes/mynode:resources.xml#ResourceEnvironmentProvider_1)
Using Jython:
newrep = AdminConfig.create('ResourceEnvironmentProvider', node, repAttrs) print newrep
- Save the changes with the following command:
Using Jacl:
$AdminConfig save
Using Jython:
AdminConfig.save()
Example: Configuring custom properties for a resource environment provider using wsadmin
Example: Configuring a new referenceable using wsadmin
Example: Configuring a new resource environment entry using wsadmin