beautypg.com

Visara Master Console Center Scripting Guide User Manual

Page 190

background image

Chapter 5 Script Commands

Scripting Guide

190

Example:

**************************************
Example 1
**************************************
$Alias := “RS6000”
%Return := SNMP_TRAPSEND( $Alias, 6, 215)
// sends an enterprise trap to an NMS aliased to “RS6000”
// using enterprise number 215
**************************************
Example 2
**************************************
// Try sending a trap
$trapBinds["sysContact"] := "Fred Flintstone"
$trapBinds["sysDescr"] := "Mail Server"
%retV := SNMP_TRAPSEND("mothra", 6, 1, "snmpDot3RptrMgt",
$trapBinds)

See Also:

SNMP_GET, SNMP_GETNEXT, SNMP_GETTABLE, SNMP_SET