Smtp Library Command Extensions - Cisco ASR 9000 Serie Configuration Manuals

Aggregation services router system
Table of Contents

Advertisement

SMTP Library Command Extensions

value
sys_reqinfo_snmp_trap
This command is used to send a trap.
Syntax
sys_reqinfo_snmp_trap enterprise_oid ent-oid generic_trapnum gen-trapnum specific_trapnum
spe-trapnum
trap_oid oid trap_var varname
• Use the enterprise_oid argument to specify the enterprise oid of the trap.
• Use the generic_trapnum argument to specify generic trap number of the trap.
• Use the specific_trapnum argument to specify specific trap number of the trap.
• Use the trap_oid argument to specify oid of the trap to send.
• Use the trap_var argument to specify the variable of oid(s) to send.
Example
sys_reqinfo_snmp_trap enterprise_oid 1.3.6.1.4.1.9.9.41.2 generic_trapnum 6 specific_trapnum 1 trap_oid
1.3.6.1.4.1.9.9.41.2.0.1 trap_var var1
sys_reqinfo_snmp_trapvar
This command is used to setup an array of oid and value given a trap variable. Similar to IOS, the trap variable
can contain a list of 10 multiple oids and values.
Syntax
sys_reqinfo_snmp_trapvar var varname oid oid int|uint|counter|gauge|octet|string|ipv4 value
• Use the var argument to specify the trap variable name.
• Use the oid argument to specify the oid of the trap.
Example
sys_reqinfo_snmp_trapvar var var1 oid 1.3.6.1.4.1.9.9.41.1.2.3.1.3 int 4
SMTP Library Command Extensions
All Simple Mail Transfer Protocol (SMTP) library command extensions belong to the ::cisco::lib namespace.
To use this library, the user needs to provide an e-mail template file. The template file can include Tcl global
variables so that the e-mail service and the e-mail text can be configured through the
event manager environment Cisco IOS XR software command-line interface (CLI) configuration command.
There are commands in this library to substitute the global variables in the e-mail template file and to send
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
178
Configuring and Managing Embedded Event Manager Policies
Value string of the associated SNMP data element.

Advertisement

Table of Contents
loading

Table of Contents