09-07-2022 08:24 AM
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.
09-07-2022 08:51 AM
post the EEM script and show the example of the issue to understand better.
09-08-2022 07:24 AM
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.
09-08-2022 07:50 AM
Glad you able to find solution.
09-08-2022 09:55 AM
Hello,
I have been looking at how to solve this...can you share you solution ?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide