Configure a PMI service with wsadmin.sh

 

Configure the PMI service for an appserver...

 

Using Jacl

set server [$AdminConfig getid /Cell:cell/Node:node/Server:server/]


### Identify the PMI service that belongs to the server 
### and assign it to the pmi variable

set pmi [$AdminConfig list PMIService $server]

### Enable PMI services and set the specification 
### levels for all of components in the server. 
### 
### The following are the valid specification levels for the components...  

$AdminConfig modify $pmi \
{ 
    {enable true} \
    {initialSpecLevel beanModule=H:cacheModule=H:connectionPoolModule=H:j2cModule=H:jvmRuntimeModule=H:orbPerfModule=H:servletSessionsModule=H:systemModule=H:threadPoolModule=H:transactionModule=H...  webAppModule=H:webServicesModule=H:wlmModule=H:wsgwModule=H} \
}

$AdminConfig save

 

Using Jython

server = AdminConfig.getid('Cell:cell/Node:node/Server:server/') 

server(cells/cell/nodes/node/servers/server:server.xml#Server_1)

pmi = AdminConfig.list('PMIService', server)
print pmi 

(cells/cell/nodes/node/servers/server:server.xml#PMIService_1)

AdminConfig.modify(pmi, [['enable', 'true'], 
['initialSpecLevel', 'beanModule=H:cacheModule=H:connectionPoolModule=H:j2cModule=H:jvmRuntimeModule=H:orbPerfModule=H:servletSessionsModule=H:systemModule=H:threadPoolModule=H:transactionModule=H:webAppModule=H... webServicesModule=H:wlmModule=H:wsgwModule=H']])

AdminConfig.save()

 

Specification Levels

N none
L low
M medium
H high
X maximum