Disabling a service
An example disabling the trace service of a configured server follows. One can modify this example to disable a different service.
- Identify the server and assign it to the server variable.
set server [$AdminConfig getid /Cell:cellname/Node:nodename/Server:servername/]Example output:
servername(cells/cellname/nodes/nodename/servers/servername:server.xml#Server_1)- List all the services belonging to the server and assign them to the services variable.
set services [$AdminConfig list Service $server]This command returns a list of services.
Example output:
(cells/cellname/nodes/nodename/servers/servername:server.xml#AdminService_1) (cells/cellname/nodes/nodename/servers/servername:server.xml#DynamicCache_1) (cells/cellname/nodes/nodename/servers/servername:server.xml#MessageListenerService_1) (cells/cellname/nodes/nodename/servers/servername:server.xml#ObjectRequestBroker_1) (cells/cellname/nodes/nodename/servers/servername:server.xml#PMIService_1) (cells/cellname/nodes/nodename/servers/servername:server.xml#RASLoggingService_1) (cells/cellname/nodes/nodename/servers/servername:server.xml#SessionManager_1) (cells/cellname/nodes/nodename/servers/servername:server.xml#TraceService_1) (cells/cellname/nodes/nodename/servers/servername:server.xml#TransactionService_1)- Identify the trace service and assign it to the traceService variable.
Since trace service is the 8th element in the list, retrieve this element by using index 7.
set traceService [lindex $services 7]Example output:
(cells/cellname/nodes/nodename/servers/servername:server.xml#TraceService_1)- Disable the trace service by modifying the enable attribute.
$AdminConfig modify $traceService {{enable false}}- Save changes:
$AdminConfig save
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.