+

Search Tips   |   Advanced Search

Intelligent Management: maintenance mode administrative tasks

We can use the server maintenance mode commands to view or edit the maintenance mode of the servers without using the administrative console. To set maintenance mode on a node, we can use the NodeGroupManager MBean .

Use the following commands to set, disable, and check maintenance mode for the servers:

To set, disable, and check maintenance mode for a node:


setMaintenanceMode

The setMaintenanceMode command puts a server into maintenance mode.

Required parameters

-name

Name of the server to put into maintenance mode.

Optional parameters

-mode

Optional parameter. If we do not specify a value, then the default is used.

Possible values:

  • false: This value disables the maintenance mode.

  • break: Stops any traffic from being routed to the server.

  • affinity: Default value. This value routes only traffic with affinity to the server.

  • stop: Stops the server, and persistently sets it in break mode.

Return value

The command returns void.

Batch mode example

Interactive mode


unsetMaintenanceMode

The unsetMaintenanceMode command takes the server out of maintenance mode.

Required parameters

-name

Name of the server to take out of maintenance mode.

Return value

The command returns void.

Batch mode example

Interactive mode


checkMode

The checkMode command checks whether a server is in maintenance mode.

Required parameters

-name

Name of the server to check.

Return value

The command returns a string value that indicates the server mode.

Batch mode example

Interactive mode


Node maintenance mode

We can use the NodeGroupManager MBean to enable or disable maintenance mode for a node. For more information, read about NodeGroupManager MBean.

We can use the following example in wsadmin to set maintenance mode for a node:


Related concepts

  • Health management


    Related tasks

  • Set maintenance mode
  • Create health policies

  • Intelligent Management: health policy administrative tasks


    Related information:

  • NodeGroupManager MBean