Mellanox MLNX-OS®Command Reference Guide for SX1018HP Ethernet Managed Blade Switch
Rev 1.6.2
Mellanox Technologies
225
snmp-server notify
snmp-server notify {community <community> | event <event name> | port
<port> | send-test}
no snmp-server notify {community | event <event name> | port}
Configures SNMP notifications (traps and informs).
The no form of the commands negate the SNMP notifications.
Syntax Description community Sets the default community for traps sent to hosts
which do not have a custom community string set.
event Specifies which events will be sent as traps.
port Sets the default port to which traps are sent.
send-test Sends a test trap.
Default Community: public
All informs and traps are enabled
Port: 162
Modes/Context Config
History 3.1.0000 Initial version.
3.2.1050 Change traps to notify.
Role admin
Example
switch (config) # snmp-server community public
switch (config) # show snmp
SNMP enabled: yes
SNMP port: 1000
System contact: my-name
System location: lab
Read-only community: public
Read-write community: private
Interface listen enabled: yes
No Listen Interfaces.
Traps enabled: yes
Default trap community: public
Default trap port: 162
No trap sinks configured.
switch (config) #
Related Commands show snmp
show snmp events
Note
• This setting is only meaningful if traps are enabled, though the list of hosts may still be
edited if traps are disabled
• Refer to Mellanox MIB file for the list of supported traps