EEM applet for ssh connection between cisco nexus 7010

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2012 06:55 PM
Hello experts!!!
Please help write applet for ssh connection between cisco nexus 7010.
How to get authorization for ssh connection.?.How enter password for ssh connect?
My sample applet:
event manager applet test
event syslog pattern "xxxxx"
action 1.0 cli ssh event_manager@x.x.x.x
action 1.1 cli conf t
action 1.3 cli int lo333
action 1.4 cli desc ttttttt
- Labels:
-
EEM Scripting

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2012 09:11 AM
This is not possible using NX-OS as the ability to do interactive commands does not exist.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2012 09:50 PM
Maybe there is any other way to execute a command on the remote device?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2012 11:35 PM
What you could do is use EEM to send a syslog message to a syslog host. That host would then need a script (e.g., expect) that could connect to the remote host to perform the desired actions.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2012 11:46 PM
Bad that nx-os no rsh ... I performed on ios cover those actions using rsh.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2012 12:02 AM
Still question: under which user performed event manager applets? (nx-os)
In cisco ios can be set out under which user to run applets:
event manager session cli username "event_manager"

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2012 11:35 AM
The commands will be run as the user __eemuser.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-23-2012 09:53 PM
Can I customize privilege the user __eemuser ? Add sshkey for user __eemuser?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2012 08:17 AM
I haven't tried. It may work, but any changes to the permissions could also prevent EEM applets from running.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2012 07:58 PM
Thanks Joseph!
