Using Wsadmin to Enable the PMI Service
-
Upload
etphonehome2 -
Category
Documents
-
view
104 -
download
3
Transcript of Using Wsadmin to Enable the PMI Service
![Page 1: Using Wsadmin to Enable the PMI Service](https://reader036.fdocuments.in/reader036/viewer/2022082502/547720bc5906b53f068b45d1/html5/thumbnails/1.jpg)
Using wsadmin to enable the PMI service
In order to configure the PMI service of a specific appserver, a reference to the PMI service configuration object of that application server is needed. All PMI service configuration objects can be listed using the wsadmin list PMIService command:
C:\WebSphere\AppServer\bin>wsadminWASX7209I: Connected to process "dmgr" on node net1Manager using SOAP connector; The type of process is: DeploymentManagerWASX7029I: For help, enter: "$Help help"
wsadmin>$AdminConfig list PMIService
(cells/net1Network/nodes/node1/servers/CSVR1:server.xml#PMIService_1)(cells/net1Network/nodes/node1/servers/CSVR2:server.xml#PMIService_1)(cells/net1Network/nodes/node1/servers/nodeagent:server.xml#PMIService_1)(cells/net1Network/nodes/node1/servers/server1:server.xml#PMIService_1)(cells/net1Network/nodes/net1Manager/servers/dmgr:server.xml#PMIService_1)
wsadmin>
Figure 16-5 Using wsadmin to list the PMI service configuration objects
Each line of output contains the PMIService configuration ID that can be used for referencing the PMIService component of a specific appserver.
To enable performance data monitoring, use the following wsadmin modify command with your specific PMI service configuration ID:
wsadmin> $AdminConfig modify \ (cells/net1Network/nodes/node1/servers/server1: \server.xml#PMIService_1) {{enable true}}
The configuration needs to be saved before restarting the appserver. Use the wsadmin save command to save the configuration:
wsadmin> $AdminConfig save
To restart the appserver, use these wsadmin commands (in a single-server environment, don't specify the node in the startServer command):
wsadmin> $AdminControl stopServer server1
![Page 2: Using Wsadmin to Enable the PMI Service](https://reader036.fdocuments.in/reader036/viewer/2022082502/547720bc5906b53f068b45d1/html5/thumbnails/2.jpg)
wsadmin> $AdminControl startServer {server1} {net1}
To disable performance data collection, use the following wsadmin modify command (save the configuration and restart the appserver for the change to take effect):
wsadmin> $AdminConfig modify \ (cells/net1Network/nodes/node1/servers/server1: \server.xml#PMIService_1) {{enable false}}