Disabling components using scripting
You can disable components by invoking operations with scripting and the wsadmin tool. This topic describes how to disable the nameServer component of a configured server. You can modify the examples in this topic to disable other components.
About this task
There are two ways to complete this task. This topic uses the
AdminConfig object to stop components in your environment. Alternatively,
you can use the configureStateManageable script in the AdminServerManagement
script library to enable and disable components. The wsadmin tool automatically
loads the script when the tool starts. Use the following syntax to configure
PMI settings using the configureStateManageable script:
AdminServerManagement.configureStateManageable(nodeName, serverName, parentType, initialState)
For additional information
and argument definitions, see the documentation for the AdminServerMananagment
script library.