Entering maintenance mode on NSX-T Edge nodes from CLI
search cancel

Entering maintenance mode on NSX-T Edge nodes from CLI

book

Article ID: 311846

calendar_today

Updated On:

Products

VMware NSX VMware NSX

Issue/Introduction

If NSX manager lost the connection to the Edge, and the Edge remains in NSX maintenance mode. You can exit the NSX maintenance mode using the CLI option.

Environment

VMware NSX 4.x
VMware NSX-T Data Center 3.x
VMware NSX-T Data Center

Resolution

Run the command below from Edge admin mode to trigger an exit of NSX edge maintenance mode.

edge> set debug-mode
edge> set maintenance-mode disabled

Example of command execution :

edge> set debug-mode

edge> set maintenance-mode disabled
This command has been deprecated and not recommended for use. Please use API/UI to configure this setting.
Are you sure you want to continue? (yes/no):yes
Maintenance Mode: disabled

edge>

Run the "get maintenance-mode" command to validate the status of Maintenance Mode.

edge> get maintenance-mode
Mon Mar 03 2025 UTC 05:51:27.094
Maintenance Mode: disabled

If you need to place the Edge into maintenance mode again, run the command below.

edge> set maintenance-mode enabled

Example of command execution :

edge> set maintenance-mode enabled
This command has been deprecated and not recommended for use. Please use API/UI to configure this setting.
Are you sure you want to continue? (yes/no):yes
Maintenance Mode: enabled

edge>

Run the "get maintenance-mode" command to validate the status of Maintenance Mode.

edge> get maintenance-mode
Mon Mar 03 2025 UTC 05:56:11.830
Maintenance Mode: enabled

Note: set maintenance-mode is only available using debug-mode. Once in maintenance mode via CLI, the Edge must be taken out of maintenance mode via CLI.

Status of Edge in NSX GUI: