Before starting this task, the wsadmin tool must be running. See the Starting the wsadmin scripting client article for more information.
Perform the following steps to configure a new URL provider:
set node [$AdminConfig getid /Cell:mycell/Node:mynode/]
node = AdminConfig.getid('/Cell:mycell/Node:mynode/') print node
Example output:
mynode(cells/mycell/nodes/mynode|node.xml#Node_1)
$AdminConfig required URLProvider
print AdminConfig.required('URLProvider')
Example output:
Attribute Type streamHandlerClassName String protocol String name String
set name [list name URLP1] set shcn [list streamHandlerClassName "Put the stream handler classname here"] set protocol [list protocol "Put the protocol here"] set urlpAttrs [list $name $shcn $protocol]Example output:
{name URLP1} {streamHandlerClassName {Put the stream handler classname here}} {protocol {Put the protocol here}}
name = ['name', 'URLP1'] shcn = ['streamHandlerClassName', "Put the stream handler classname here"] protocol = ['protocol', "Put the protocol here"] urlpAttrs = [name, shcn, protocol] print urlpAttrsExample output:
[[name, URLP1], [streamHandlerClassName, "Put the stream handler classname here"], [protocol, "Put the protocol here"]]
$AdminConfig create URLProvider $node $urlpAttrs
print AdminConfig.create('URLProvider', node, urlpAttrs)
Example output:
URLP1(cells/mycell/nodes/mynode|resources.xml#URLProvider_1)
Related concepts
AdminConfig object for scripted administration
Related reference
Commands for the AdminConfig object