cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1950
Views
0
Helpful
0
Replies

SNMP string varbind can't read from an EEM global variable

ori.goldstein
Level 1
Level 1

I'm trying to run a SNMP custom massage via EEM applet.

In the string of one of the vrbinds I'm using a global variable from the EMM environment.

I can print it, and read it but failing to do so inside the string of the varbind.

the applet looks something like this:

event none

action 1.0 info type snmp var vbinds oid 1.3.6.1.4.1.2288.50.1.1.8 string "interface $_interface is Down"

action 2.0 info type snmp var vbinds oid 1.3.6.1.4.1.2288.50.1.1.3 int 5

action 3.0 info type snmp var vbinds oid 1.3.6.1.4.1.2288.1.1.10 string "$_interface"

action 4.0 puts "This is the interface $_interface"

action 5.0 info type snmp trap enterprise-oid 1.3.6.1.4.1.2288.50.1.0 generic-trapnum 6 specific-trapnum 1 trap-oid 1.3.6.1.4.1.2288.50.1.1.8 trap-var vbinds

The first line is the problamtic one, and the fourth line is also problamteic.

When I took a capture instead of a real interface number I got $_interface.

the output of the event manager environment
all shows the following:

No.  Name                          Value

1    _log_file                     syslog:

2    _cron_entry                   * * * * *

3    _interfaceSLA                 41

4    _interface                    41

What I have expected to see in the capture is, instead of $_interface is the value of it, which is 41.

The output of the puts command is currect.

The same definition works from a tcl script, but I can't use it more then once.

I would realy appreciate some help.

Ori

0 Replies 0