--- title: "Adding a host to the containment allow list using the CLI" slug: "adding-a-host-to-the-containment-allow-list-using-the-cli" tags: ["EDR with Forensics (EDRF)", "Endpoint Security"] updated: 2026-08-26T19:31:23Z published: 2026-08-26T19:31:23Z canonical: "docs.trellix.com/adding-a-host-to-the-containment-allow-list-using-the-cli" --- > ## 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. # Adding a host to the containment allow list using the CLI **To add a host to the containment allow list using the CLI:** 1. Enable the CLI configuration mode. ``` hostname > enable hostname # configure terminal ``` 2. Add the IP address or hostname to the containment allow list. ``` hostname (config) # hx server containment whitelist description ``` > [!NOTE] > Note > > If an allow listed host's IP address changes after a host endpoint is contained, the endpoint will not be able to contact the allow listed host. A description is optional. Enclose descriptions that are longer than one word in quotation marks ("). 3. Save your settings. ``` hostname (config) # write mem ``` ### Examples The following example adds a host IP to the containment allow list with no description: ``` hostname (config) # hx server containment whitelist 123.45.6.7                   ``` The following example adds a hostname to the containment allow list with a one-word description: ``` hostname (config) # hx server containment whitelist testserverhost description testserver                   ``` The following example adds a host IP to the containment allow list with a multiple-word description: ``` hostname (config) # hx server containment whitelist 123.45.6.7 description “The Group A Test Appliance”                   ```