Before starting this task, the wsadmin tool must be running. See the Starting the wsadmin scripting client article for more information.
Perform the following example to configure a new URL:
set newurlp [$AdminConfig getid /Cell:mycell/Node:mynode/URLProvider:URLP1/]
newurlp = AdminConfig.getid('/Cell:mycell/Node:mynode/URLProvider:URLP1/') print newurlp
Example output:
URLP1(cells/mycell/nodes/mynode|resources.xml#URLProvider_1)
Example output:
Attribute Type name String spec String
set name [list name URL1] set spec [list spec "Put the spec here"] set urlAttrs [list $name $spec]Example output:
{name URL1} {spec {Put the spec here}}
name = ['name', 'URL1'] spec = ['spec', "Put the spec here"] urlAttrs = [name, spec]Example output:
[[name, URL1], [spec, "Put the spec here"]]
$AdminConfig create URL $newurlp $urlAttrs
print AdminConfig.create('URL', newurlp, urlAttrs)
Example output:
URL1(cells/mycell/nodes/mynode|resources.xml#URL_1)
Related concepts
AdminConfig object for scripted administration
Related reference
Commands for the AdminConfig object