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

Rev 1.6.2
Mellanox Technologies
223
snmp-server listen
snmp-server listen {enable | interface <ifName>}
no snmp-server listen {enable | interface <ifName> }
Configures SNMP server interface access restrictions.
The no form of the command disables the listen interface restricted list for SNMP
server.
Syntax Description enable Enables SNMP interface restrictions on access to this
system.
ifName Adds an interface to the “listen” list for SNMP server.
For example: “mgmt0”, “mgmt1”.
Default N/A
Modes/Context Config
History 3.1.0000
Role admin
Example
switch (config) # snmp listen enable
switch (config) # show snmp
SNMP enabled: yes
SNMP port: 161
System contact:
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
Trap sinks:
10.10.10.10
Enabled: yes
Type: traps version 1
Port: 3
Community: public (default)
switch (config) #
Related Commands show snmp
Note If enabled, and if at least one of the interfaces listed is eligible to be a listen interface,
then SNMP requests will only be accepted on those interfaces. Otherwise, SNMP
requests are accepted on any interface.