--- title: "Cluster maintenance" slug: "cluster-maintenance-2" tags: ["Install and Get Started", "NDR 4.x", "Customer", "Network Security"] updated: 2026-11-17T09:22:39Z published: 2026-11-17T09:22:39Z canonical: "docs.trellix.com/cluster-maintenance-2" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Cluster maintenance To maintain a cluster: 1. Log in to the NDR CLI. 2. Enter privileged mode: `hostname > enable` 3. Enter the admin password: `[sudo] password for <npadmin>: <password>` 4. Enter configuration mode: `hostname # configure system` 5. Enter the cluster maintenance menu: `user@hostname(config)# cluster maintenance` The **Elasticsearch Maintenance** menu appears. ``` (S) Shutdown Cluster(M) Maintainance(C) Cancel and ExitEnter your choice: ``` 6. (Optional) Press **S** to shutdown the cluster. 7. Press **M** to enter the maintenance mode. The **Elasticsearch Maintenance** menu is displayed. ``` Menu: (N) No of days for which to keep the index Open (C) Cancel and Exit (X) Save and Exit ``` 8. Press **N** and press **Enter** to set the time period in days, for which you need to retain the data on your NDR appliance. This period is called the retention period. After the retention period, the older data on your appliance is automatically deleted to accommodate new data. 9. Enter any value between 1 and 1000, and then press **Enter**. You cannot set the retention period as more than 1000 days. If you enter a value beyond 1000, the following error message is displayed: "Not a valid input. Try again". 10. Click **X** to save and exit.