09-22-2014 07:11 PM
hello, Team
Does anybody know how we can trigger interactive action with EEM?
Cu hope to execute some command sets to another device with specific event.
I've tried to test with TCL/Python with CLI but interactive mode didn't support by CLI/EXEC.
N7K_1-tcl# cli "telnet localhost"
Cannot run interactive command with cli/exec prefix.
N7K_1-tcl#
Is there any idea to work this scenario properly?
Or Anybody guide where is the TCL Library can use inside of N7K?
Just it looks simple, but couldn't work it easy in N7K.
Hope to get any clever idea from experts
Best Regards
Jaemi Lee
09-20-2018 11:55 AM
Did you ever get this figured out?
09-24-2018 08:07 AM
NX-OS EEM does not support interactive commands. However, you can send a trap from an EEM applet to another device. If that device is an IOS[-XE] device that can intercept traps with its EEM, then you can have it execute the commands based on the reception of that trap.
If the two devices are connected via a direct link, you could momentarily bounce the port to generate a link down syslog and have the peer device react to that.
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