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

Combine EEM variables to form single syslog msg

adamhusband
Level 1
Level 1

I'm trying to combine the output from two show cmds using EEM to form a single syslog msg, however when I use 'append' it places them across different lines. This is a problem, as I want them to appear as a single msg on the listening syslog server so I can process them as one message.

They're presumably appearing across multiple lines because of carriage returns at the end of each variable string.

Does anyone know if it's possible to manipulate strings in this way within EEM? Ideally I'd like to keep the logic within EEM rather than needing to use TCL as well.

Thanks in advance.

4 Replies 4

balaji.bandi
Hall of Fame
Hall of Fame

post the EEM script and show the example of the issue to understand better.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

adamhusband
Level 1
Level 1

Never mind. I found a workaround by matching a portion of each show output before the carriage return/new line, saved these as variables and appended the new variables together.

Glad you able to find solution.

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hello,

I have been looking at how to solve this...can you share you solution ?