cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1761
Views
5
Helpful
1
Replies

Can you add more than one built in variable in one action snmp-trap strdata statement?

pattyj
Level 1
Level 1

Hello Community,

 

Is there a correct syntax to add multiple eem built in variables to a single statement like below if supported?

 

action 2.0 snmp-trap strdata "$_syslog_msg, $_info_routername"

or

action 2.0 snmp-trap strdata "$_syslog_msg / $_info_routername"

 

Thanks

JV

1 Accepted Solution

Accepted Solutions

TheFox210
Level 1
Level 1

Yes you can. 

 

As an example, here is one that I wrote to send a trap when a link reaches 50% utilization.

 

event manager applet HFC_UTILIZATION_50%
event interface name GigabitEthernet0/1/7 parameter rxload entry-op gt entry-val 128 entry-type value poll-interval 1
action 1.0 snmp-trap strdata "$_interface_name link utilization: $_interface_value / $_interface_parameter"

View solution in original post

1 Reply 1

TheFox210
Level 1
Level 1

Yes you can. 

 

As an example, here is one that I wrote to send a trap when a link reaches 50% utilization.

 

event manager applet HFC_UTILIZATION_50%
event interface name GigabitEthernet0/1/7 parameter rxload entry-op gt entry-val 128 entry-type value poll-interval 1
action 1.0 snmp-trap strdata "$_interface_name link utilization: $_interface_value / $_interface_parameter"