Applies To:
  • CitectSCADA 5.31, 5.40, 5.41, 5.42, 5.50, 6.0, 6.1, 7.0
  • CitectHMI 5.31, 5.40, 5.41, 5.42, 5.50, 6.0, 6.1, 7.0
  • CitectFacilities 5.31, 5.40, 5.41, 5.42, 5.50, 6.0, 6.1, 7.0

Summary:

How can I create alarms from my SNMP traps?

 

Solution:

The easiest way is to process the traps as they come in via Cicode. The SNMP driver caches all traps allowing the code to process and generate appropriate alarms before the trap is cleared (TN=0).

FUNCTION TrapHandling()

WHILE 1 DO

IF TrapNumber <> 0 THEN

    IF TrapEnterprise = ".1.3.6.1.2.1.11" THEN

        SNMPAlarm=1

        TrapNumber = 0;

    END

SleepMS(10);

END

END

 

Keywords:
 

Attachments