User guide
eWON 500-2001-4001-4002 User Guide - Programming the eWON
eWON 500®2001®4001®4002® Version 4_3_0 - User Guide - 10/5/05 - ©ACT'L sa - Page 164
9.2.69 SENDTRAP
Syntax[command]
SENDTRAP I1,S1
• I1 is the first trap parameter (INTEGER)
• S1 is the second trap parameter (STRING)
Purpose:
This command posts a scheduled action request for an SNMP TRAP generation.
The first parameter is sent on OID .1.3.6.1.4.1.8284.2.1.4.2
The second parameter is sent in OID .1.3.6.1.4.1.8284.2.1.4.1
When the function returns, the GETSYS PRG,"ACTIONID" returns the ID of the scheduled action and allows tracking this action.
It is also possible to program an ONSTATUS action that will be called when the action is finished (with or without success).
Example:
See also:
“GETSYS, SETSYS” on page 141, “ONxxxxxx” on page 151, “ONSTATUS” on page 153, “SNMP Setup” on page 26.
--
-- Script information
--
ewonScript OBJECT IDENTIFIER ::= { prodEwon 4 }
scpUserNotif OBJECT-TYPE
SYNTAX DisplayString (SIZE (0..255))
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"This is the text of the last trap sent by the Script"
::= { ewonScript 1 }
scpUserNotifI OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"This is a free parameters for script generated traps"
::= { ewonScript 2 }
Table 101: Part of MIB regarding BASIC TRAP
REM send a trap with NotifI = 10 and Notif = Trap message
SENDTRAP 10,"Trap message"