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 mail 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 MailProvider
print AdminConfig.required('MailProvider')
Example output:
Attribute Type name String
set name [list name MP1] set mpAttrs [list $name]
name = ['name', 'MP1'] mpAttrs = [name]
set newmp [$AdminConfig create MailProvider $node $mpAttrs]
newmp = AdminConfig.create('MailProvider', node, mpAttrs) print newmp
Example output:
MP1(cells/mycell/nodes/mynode|resources.xml#MailProvider_1)
Related concepts
AdminConfig object for scripted administration
Related reference
Commands for the AdminConfig object