Configure a new resource environment provider using wsadmin
Using Jacl...
### Identify the parent ID and assign it to the node variable. set node [$AdminConfig getid /Cell:cell/Node:node/] ### Identify the required attributes... $AdminConfig required ResourceEnvironmentProvider ### Set up the required attributes and assign it to the repAttrs variable... set n1 [list name REP1] ### Create a new resource environment provider... set newrep [$AdminConfig create ResourceEnvironmentProvider $node $repAttrs] $AdminConfig save
Using Jython
node = AdminConfig.getid('/Cell:cell/Node:node/') print node print AdminConfig.required('ResourceEnvironmentProvider') set repAttrs [list $name] n1 = ['name', 'REP1'] repAttrs = [n1] newrep = AdminConfig.create('ResourceEnvironmentProvider', node, repAttrs) print newrep AdminConfig.save()