---
title: "Configure the Sensor using CLI"
slug: "configure-the-sensor-using-cli-2"
tags: ["Install and Get Started", "IPS 11.1.x"]
updated: 2026-11-19T12:54:18Z
published: 2026-11-19T12:54:18Z
canonical: "docs.trellix.com/configure-the-sensor-using-cli-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.
# Configure the Sensor using CLI
**Steps:**
1. Open a HyperTerminal session to configure the Sensor. This task is performed to establish the trust with the Sensor
**CLI window**
For instructions, see the section Connect the cable to the Console port in the Trellix Intrusion Prevention System NS-series Sensor Product Guide or, in the individual**Hardware Guide** for your Sensor model.
2. At the login prompt, log on to the Sensor using the default username
`admin` and password `admin123`
> [!NOTE]
> Note
>
> Trellix strongly recommends that you change the default password later for security purposes.
3. Set the name of the Sensor. At the prompt, type: `set sensor name <WORD>`
Example: `set sensor name Engineering_Sensor1`
> [!NOTE]
> Note
>
> The Sensor name is a case-sensitive alphanumeric character string up to 25 characters. The string can include hyphens, underscores, and periods, and must begin with a letter.
4. Set the IP address and subnet mask of the Sensor.
- **For IPv4:** Type `set sensor ip <A.B.C.D> <E.F.G.H>` at the prompt.
Specify an IP address using four octets separated by periods: X.X.X.X, where X is a number between 0 and 255, followed by a subnet mask in the same format.
Example: `set sensor ip 192.168.1.1 255.255.255.0`
- **For IPv6**: Type `set sensor ip <X:X:X:X:X:X:X:X:X/Y>` at the prompt.
Specify an IPv6 address using eight hexadecimal groups separated by colons, followed by the prefix length (a number between 0 and 128).
Example: `set sensor ip 26xx:xd40:4xx:2xxx::5xxx/64`
> [!NOTE]
> Note
>
> Setting the IP address for the first time-that is, during the initial configuration of the Sensor-does not require a Sensor reboot. Subsequent changes to the IP address will, however, require that you reboot the Sensor for the change to take effect. If a reboot is necessary, the CLI will prompt you to do so. For information on rebooting, see the Trellix Intrusion Prevention System Product Guide.
5. If the Sensor is not on the same network as the Manager, you must set the address of the default gateway.
- **For IPv4**: Type `set sensor gateway <A.B.C.D>` at the prompt.
Example: `set sensor gateway 192.168.1.1`
- **For IPv6:** Type `set sensor gateway <X:X:X:X:X:X:X:X>` at the prompt.
Example: `set sensor gateway 26xx:d4x:4xx:3xx::1`
6. Set the IP address of the Manager server.
- **For IPv4**: Type `set manager ip <A.B.C.D>` at the prompt.
Example: `set manager ip 10.2.2.x`
- **For IPv6:** Type `set manager ip <X:X:X:X:X:X:X:X>` at the prompt.
Example: `set manager ip 43xx:d4x:2xx:5xx::2`
7. Ping Manager from the Sensor to determine if your configuration settings to this point have successfully established the Sensor on the network. At the prompt, type:
`ping <manager IP address>`
If the ping is successful, continue with the following steps. If not, type `show`to verify your configuration information and check to ensure that all information is correct. If you run into any difficulties, see the Trellix Intrusion Prevention System Product Guide.
8. Set the shared key value for the Sensor. This value is used to establish a trust relationship between the Sensor and Manager. At the prompt, type:
`set sensor sharedsecretkey`
The Sensor then prompts you to enter a shared secret key value. Type the shared secret key value at the prompt. The Sensor then prompts you to verify the value. Type the value again.
> [!NOTE]
> Note
>
> The shared secret key value must be between 8 and 25 characters of ASCII text. The shared secret key value is case-sensitive. Example: IPSkey123
9. (Optional, but recommended) Change the Sensor password. At the prompt, type:
`passwd`
The Sensor prompts you to enter the new password and prompts you for the old password.
The password must be a minimum of 8 characters in length, and can be upto 25 characters long.
The characters that can be used while setting a new password are:
- 26 alphabets: Both upper and lower case are supported (a,b,c,...z and A, B, C,...Z)
- 10 digits: 0 1 2 3 4 5 6 7 8 9
- Symbols: ~ ` ! @ # $ % ^ & * ( ) _ + - = [ ] { } \ | ; : " ' , . < /
> [!WARNING]
> Caution
>
> The question mark (?) symbol is not supported in a Sensor password.
10. To exit the session, type `exit`