Configure new URLs using scripting
Procedure
- Start wsadmin
- Jacl:
### Identify the parent ID and assign it to the newurlp variable. set newurlp [$AdminConfig getid /Cell:mycell/Node:mynode/URLProvider:URLP1/] ### Identify the required attributes: $AdminConfig required URL ### Set up the required attributes: set name [list name URL1] set spec [list spec "Put the spec here"] set urlAttrs [list $name $spec] ### Create a URL: $AdminConfig create URL $newurlp $urlAttrs $AdminConfig savenewurlp = AdminConfig.getid('/Cell:mycell/Node:mynode/URLProvider:URLP1/') print newurlp ### Identify the required attributes: print AdminConfig.required('URL') name = ['name', 'URL1'] spec = ['spec', "Put the spec here"] urlAttrs = [name, spec] print AdminConfig.create('URL', newurlp, urlAttrs)- In a network deployment environment only, synchronize the node.
See Also
AdminConfig object for scripted administration
See Also
Commands for the AdminConfig object