CLI Commands for SNMP
CLI Commands for SNMP
The following table provides detailed information about command lines for SNMP configuration.
Feature
SNMP Community
Read Only Community Switch(config)# snmp-server community public ro
community string add ok
Read Write
Switch(config)# snmp-server community private rw
Community
community string add ok
SNMP Trap
Enable Trap
Switch(config)# snmp-server enable trap
Set SNMP trap enable ok.
SNMP Trap Server IP
Switch(config)# snmp-server host 192.168.250.33
without specific
SNMP trap host add OK.
community name
SNMP Trap Server IP
Switch(config)# snmp-server host 192.168.250.33 version 1 private
with version 1 and
SNMP trap host add OK.
community
Note: Private is the community name, version 1 is the SNMP version.
SNMP Trap Server IP
Switch(config)# snmp-server host 192.168.250.33 version 2 private
with version 2 and
SNMP trap host add OK.
community
Disable SNMP Trap
Switch(config)# no snmp-server enable trap
Set SNMP trap disable ok.
Display
Switch# sh snmp-server trap
SNMP trap: Enabled
SNMP trap community: public
Switch# show running-config
.......
snmp-server community public ro
snmp-server community private rw
snmp-server enable trap
snmp-server host 192.168.250.33 version 2 admin
snmp-server host 192.168.250.33 version 1 admin
........
104 - RocketLinx ES7528 Industrial Managed PoE Rack Mount User Guide: 2000509 Rev. A
Command Line
CLI Commands for SNMP