cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1414
Views
0
Helpful
2
Replies

Nexus 7000 Interactive Action with TCL or Python

jaemlee
Cisco Employee
Cisco Employee

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

2 Replies 2

Jason Mann
Level 1
Level 1

Did you ever get this figured out?

Joe Clarke
Cisco Employee
Cisco Employee

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.

Review Cisco Networking for a $25 gift card