7.5
SNMP
This section describes commands of the Simple Network Management Protocol (SNMP).
Example of a configuration
IP configuration
IP address setting of the device suitable for the SNMP trap recipient used.
Execute the following commands:
configure terminal
int vlan 1
no ip address
ip address 192.168.1.1 255.255.255.0
end
Trap configuration forr SNMPv2c notifications
To configure the sending of SNMP traps, an SBMP community is required.
This community is used along with other SNMP parameters to send traps to a trap recipient.
The selection of the traps recipient is made using tags that are set when SNMP notifications
are called.
Execute the following commands:
configure terminal
snmp community index v2trapindex name public security v2secname
snmp targetaddr trapringer param pav2c ipv4 192.168.1.254 taglist
publictrapv2tag
snmp targetparams pav2c user v2secname security-model v2c message-
processing v2c
snmp notify testnotify tag publictrapv2tag type trap
end
Event configuration
Enables the sending of traps.
Execute the following commands:
configure terminal
events
client config trap
end
For system messages all configured SNMP notification are always called.
Network protocols
7.5 SNMP
SCALANCE XB-200/XC-200/XF-200BA/XP-200/XR-300WG Command Line Interface
322
Configuration Manual, 07/2017, C79000-G8976-C361-06