Configure new mail sessions using scripting
Procedure
- Start wsadmin
- Identify the parent ID:
Jacl:
set newmp [$AdminConfig getid /Cell:mycell/Node:mynode/MailProvider:MP1/] newmp = AdminConfig.create('MailProvider', node, mpAttrs) print newmp
Example output:
MP1(cells/mycell/nodes/mynode|resources.xml#MailProvider_1)- Get required attributes:
Example output:
Attribute Type name String jndiName String- Set up required attributes:
Jacl:
set name [list name MS1] set jndi [list jndiName mail/MS1] set msAttrs [list $name $jndi]Example output:
{name MS1} {jndiName mail/MS1} name = ['name', 'MS1'] jndi = ['jndiName', 'mail/MS1'] msAttrs = [name, jndi] print msAttrsExample output:
[[name, MS1], [jndiName, mail/MS1]]
- Create the mail session:
Jacl:
$AdminConfig create MailSession $newmp $msAttrs $AdminConfig save print AdminConfig.create('MailSession', newmp, msAttrs)
Example output:
MS1(cells/mycell/nodes/mynode|resources.xml#MailSession_1)- In a network deployment environment only, synchronize the node.
See Also
AdminConfig object for scripted administration
See Also
Commands for the AdminConfig object