--- title: "Setting up SNMP servers using the CLI" slug: "setting-up-snmp-servers-using-the-cli-3" updated: 2026-08-25T21:17:48Z published: 2026-08-25T21:17:48Z canonical: "docs.trellix.com/setting-up-snmp-servers-using-the-cli-3" --- > ## 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. # Setting up SNMP servers using the CLI To set up the SNMP servers, perform the following subtasks: - Add the SNMP servers - Configure the SNMP servers To add an SNMP server: 1. Go to CLI configuration mode: `hostname > enable` `hostname # configure terminal` 2. Enable SNMP notifications: `hostname (config) # fenotify snmp enable` 3. Specify the name of the SNMP server (for example, NX7400) for SNMP notifications: `hostname (config) # fenotify snmp trap-sink <sink_name>` 4. Specify which servers will receive SNMP notifications (one server per command): `hostname (config) # fenotify snmp trap-sink <sink_name> enable` 5. Specify the IP address or DNS address of the SNMP server to receive the notifications: `hostname (config) # fenotify snmp trap-sink <sink_name> address <ip address>` 6. Save the configuration. `hostname (config) # write memory` To configure the SNMP servers: 1. Go to CLI configuration mode: `hostname > enable` `hostname # configure terminal` 2. Enable SNMP notifications: `hostname (config) # fenotify snmp enable` 3. Specify the SNMP community string `hostname (config) # fenotify snmp trap-sink <sink_name> community <community_name>` 4. Specify the SNMP version used for notifications: - To use SNMP version 1, enter: `hostname (config) # fenotify snmp trap-sink <sink_name> version 1` - To use SNMP version 2c, enter: `hostname (config) # fenotify snmp trap-sink <sink_name> version 2c` 5. Specify the delivery frequency for SNMP notifications: ### Note Trellix recommends using `per-event` notifications. - To receive a daily notification for each entity that was the source of the event, enter: `hostname (config) # fenotify snmp trap-sink <sink_name> prefer message delivery daily-per-source` - To receive an hourly notification for each entity that was the source of the event, enter: `hostname (config) # fenotify snmp trap-sink <sink_name> prefer message delivery hourly-per-source` - To receive a notification every minute for each entity that was the source of the event, enter: `hostname (config) # fenotify snmp trap-sink <sink_name> prefer message delivery per-1min-per-source` - To receive a notification every 5 minutes for each entity that was the source of the event, enter: `hostname (config) # fenotify snmp trap-sink <sink_name> prefer message delivery per-5min-per-source` - To receive information about each event, sent when the event is triggered, enter: `hostname (config) # fenotify snmp trap-sink <sink_name> prefer message delivery per-event` 6. Select the event type: `hostname (config) # fenotify snmp trap-sink <sink_name> prefer notification all-events` `hostname (config) # fenotify snmp trap-sink <sink_name> prefer notification domain-match` `hostname (config) # fenotify snmp trap-sink <sink_name> prefer notification infection-match` `hostname (config) # fenotify snmp trap-sink <sink_name> prefer notification ips-event` `hostname (config) # fenotify snmp trap-sink <sink_name> prefer notification malware-callback` `hostname (config) # fenotify snmp trap-sink <sink_name> prefer notification malware-object` `hostname (config) # fenotify snmp trap-sink <sink_name> prefer notification web-infection` 7. Save the configuration: `hostname (config) # write memory` :