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
communities
mult-communities
notify
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
3.2.1050
Role
admin
Example
switch (config) # snmp-server enable
switch (config) # show snmp
SNMP enabled:
SNMP port:
System contact:
System location:
Read-only community:
Read-write community: private
Interface listen enabled: yes
No Listen Interfaces.
Traps enabled:
Default trap community:
Default trap port:
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.
Enables SNMP-related functionality:
•
SNMP engine
•
SNMP traps
Enables community-based authentication on this sys-
tem.
Enables multiple communities to be configured.
Enables sending of SNMP traps and informs from this
system.
Initial version.
Change traps to notify.
yes
161
my-name
public
yes
public
162
Mellanox Technologies
Rev 1.6.2
220