Configure new mail providers using scripting
Procedure
- Start wsadmin
- Identify the parent ID:
Jacl:
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)- Get required attributes:
Example output:
Attribute Type name String- Set up required attributes:
Jacl:
set name [list name MP1] set mpAttrs [list $name] name = ['name', 'MP1'] mpAttrs = [name]
- Create the mail provider:
Jacl:
set newmp [$AdminConfig create MailProvider $node $mpAttrs] $AdminConfig save newmp = AdminConfig.create('MailProvider', node, mpAttrs) print newmp
Example output:
MP1(cells/mycell/nodes/mynode|resources.xml#MailProvider_1)- In a network deployment environment only, synchronize the node.
See Also
AdminConfig object for scripted administration
See Also
Commands for the AdminConfig object