cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1692
Views
0
Helpful
1
Replies

event manager session cli username missing

stephendrkw
Level 3
Level 3

I maybe missing something very simple, here where is the command "event manager session cli username xxxx" on my Nexus 7710?

n77-vdc2_AGG(config)# event manager session cli username
                                                ^
% Invalid command at '^' marker.
-n77-vdc2_AGG(config)#

as below my setup so far

event manager environment email_from "n77-vdc2@hello.com"
event manager environment email_server "mailrelay.hello.com"
event manager environment email_to "networks@hello.com"
event manager applet track_SLA_98
  event track 98 state down
  action 1.0 cli command "enable"
  action 1.1 syslog msg IPSLA collector 98 timed out
  action 1.2 cli command "tclsh bootflash:scripts/smtp.tcl"

-n77-vdc2_AGG# show file smtp.tcl
set mail_pre "Mailservername: mailrelay.hello.com\n"
append mail_pre "From: n77-vdc2-agg-TUNNEL@hello.com\n"
append mail_pre "To: networks@hello.com\n"
append mail_pre "Cc:\n"
append mail_pre "Subject: Multicast Tunnel down\n\n"
append mail_pre "Multicast Tunnel\n\n"
set mail_msg [uplevel #0 [list subst -nobackslashes -nocommands $mail_pre]]
if [catch {smtp_send_email $mail_msg} result] {
    error $result $errorInfo
}

1 Reply 1

Joe Clarke
Cisco Employee
Cisco Employee

This applet/script won't work on NX-OS.  This is clearly for IOS (and it likely wouldn't work there, either).

You could achieve what you want on NX-OS, but you'd need to port this Tcl to Python.  Alternatively, you can use the "mail" action, which I believe is in NX-OS 7.3:

action 1.2 mail from ADDR to ADDR subject "Multicast Tunnel Down" body "Multicast Tunnel"

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: