cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1549
Views
5
Helpful
1
Replies
pattyj
Beginner

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

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
Beginner

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
Beginner

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

Content for Community-Ad