Configure a new protocol provider using wsadmin

 

Using Jacl...

### Identify the parent ID...
set newmp [$AdminConfig getid /Cell:cell/Node:node/MailProvider:MP1/]

### Get required attributes...
$AdminConfig required ProtocolProvider

### Set up required attributes...
set protocol [list protocol "Put the protocol here"]
set classname [list classname "Put the class name here"]
set ppAttrs [list $protocol $classname]

### Create the protocol provider...
$AdminConfig create ProtocolProvider $newmp $ppAttrs

$AdminConfig save

 

Using Jython

newmp = AdminConfig.create('MailProvider', node, mpAttrs)
print newmp

print AdminConfig.required('ProtocolProvider')

protocol = ['protocol', "Put the protocol here"]
classname = ['classname', "Put the class name here"]
ppAttrs = [protocol, classname]
print ppAttrs

print AdminConfig.create('ProtocolProvider', newmp, ppAttrs)

AdminConfig.save()