content.gif menu.gif basics.gif

Traps

 

This chapter describes how the WinCC OA SNMP components handle SNMP traps and what functionality can be achieved.

PMON

The PMON can send SNMP traps based on manager state changes. This means that it can send a trap when e.g. a manager crashes. This functionality can be enabled with the config entry sendManagerStateChange = "Yes" in the [pmon] section.

How traps can be triggered:

  • managerUp
    Is triggered when a manager is started.

  • managerDown
    Is triggered when a manager is stopped.

  • configChanged

  • Is triggered when the contents of the managerTable have been changed (a manager is added, removed or edited).

  • startupFault
    Is triggered when a stopped manager which should be running is found during the startup of a project.

  • projectStop
    Is triggered as soon as the command to stop the project is received.  

With the config entry v1TrapTarget it is possible to configure where the traps are sent, whereas multiple-targets are supported. Since the PMON acts as proxy for the live agent, the v1TrapTarget settings also apply for traps that are sent by the live agent. Thus, also the live agent is not able to send traps without PMON.

The information contained inside the traps gives details about the manager type, the manager ID as well as the start up position inside the manager list.

Live Agent

With the live agent it is possible to send traps with user texts. To do so, the live agent data point _<num>_SNMPLiveAgent.SpecificTrap has to be set. If a string is written to this data point element, a trap with the written string and a fix OID (1.3.6.1.4.1.13828.2.1.13.0) is sent to the trap target addresses.

SNMP-Manager

With the SNMP manager traps can be received. The information for the received traps are mapped to the internal data points below the node _<num>_SNMPManager.Trap.

It is also possible to map the PayloadValue from the traps to the data point elements via peripheral addresses. For that the following must apply:

  1. A peripheral address with the corresponding Payload OID must be configured.

  2. The peripheral address must have the mode input - spontaneous.

  3. An agent must be configured for this agent that has sent the trap (the IP address of the trap source must match the configured IP address of the agent).

The SNMP manager is also able to receive and send SNMP v3 traps. Receiving works as same as for v1/2 traps, though the Security parameters for the agent must be set correctly.

The SNMP manager can send traps via the data point _<num>_SNMPEntity_y.Notify. Then the traps are sent directly to the associated SNMP entity (i.e. to the IP address configured there). For this the PMON as proxy is not needed.

Sending traps via output peripheral addresses is not possible.

page_top.gif

V 3.11 SP1

Copyright ETM professional control GmbH 2013 All Rights Reserved