Snmp_trapsend, Trapsend, Rapsend – Visara Master Console Center Scripting Guide User Manual
Page 189
Chapter 5 Script Commands
Scripting Guide
189
SNMP_TRAPSEND
Syntax:
SNMP_TRAPSEND( $Alias, %TrapNum[, %EntNum [, $MIBOID ] [,
$VARBINDS]]) ==> %ReturnCode
Description:
Sends a trap to one or more hosts.
Action:
An SNMP trap is sent to the agent(s) represented by the Alias
parameter.
Parameters:
$Alias. String expression. The NMS alias to send the trap to. Any
alias may be specified, including a group alias. If a group alias is
specified, the same trap is sent to each agent in the alias group. Refer
to NMS Alias on page 31 for more information.
%TrapNum. Numeric expression. The number of the SNMP trap to
send. Possible trap numbers are listed below:
Trap Number
Description
0 Cold
Start
1 Warm
Start
2 Link
Down
3 Link
Up
4 Authentication
5
EGP Neighbor Loss
6 Enterprise
%EntNum. Numeric expression. Optional. The enterprise number
for enterprise traps. This parameter is ignored if the trap number is
not an enterprise trap. It is not required for enterprise traps, but if not
specified, the enterprise number will be 0.
$MIBOID. String expression. Optional. The MIB OID to be specified
in the trap. If not specified, the default is 0.0.0.0. Refer to MIB OID on
page 31 for more information.
$VARBINDS. String expression. Optional. Specifies variable
bindings, which must exist in the MIB. See Example 2 following,
which specifies variable bindings called “$trapBinds”.
Returns:
Numeric value, as listed below:
Return Code
Description
0
Success
-1
Error
Notes: