Mellanox MLNX-OS®Command Reference Guide for SX1018HP Ethernet Managed Blade Switch

Rev 1.6.2
Mellanox Technologies
220
snmp-server enable
snmp-server enable [communities | mult-communities | notify]
no snmp-server enable [communities | mult-communities | notify]
Enables SNMP-related functionality.
The no form of the command disables the SNMP server.
Syntax Description enable Enables SNMP-related functionality:
SNMP engine
SNMP traps
communities Enables community-based authentication on this sys-
tem.
mult-communities Enables multiple communities to be configured.
notify Enables sending of SNMP traps and informs from this
system.
Default SNMP is enabled by default
SNMP server communities are enabled by default
SNMP notifies are enabled by default
SNMP server multi-communities are disabled by default
Modes/Context Config
History 3.1.0000 Initial version.
3.2.1050 Change traps to notify.
Role admin
Example
switch (config) # snmp-server enable
switch (config) # show snmp
SNMP enabled: yes
SNMP port: 161
System contact: my-name
System location:
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
Note SNMP traps are only sent if there are trap sinks configured with the “snmp-server
host...” command, and if these trap sinks are themselves enabled.