ā11-12-2010 11:14 PM - edited ā03-06-2019 02:02 PM
hi
Has anybody have script like this http://forums.cisco.com/eforum/servlet/EEM?page=eem&fn=script&scriptId=921 , but with SMTP authentication, for some reason I have to have sent email via gmail.com
thx
Solved! Go to Solution.
ā11-17-2010 11:04 PM
In the future, you should post questions about scripting to the Network Infrastructure > Network Management community.
SMTP auth was added in EEM 3.0. It's very easy to use. Just adjust your message template, and change the SMTP server host to:
Mailservername: user:pass@smtp.company.com
ā11-17-2010 11:04 PM
In the future, you should post questions about scripting to the Network Infrastructure > Network Management community.
SMTP auth was added in EEM 3.0. It's very easy to use. Just adjust your message template, and change the SMTP server host to:
Mailservername: user:pass@smtp.company.com
ā11-26-2010 02:46 AM
thanks a lot Joseph
next time I wil post to Network Infrastructure > Network Management community
but I have one more question, have you any idea how to insert in body of this message something like output of command for example 'sh ip int brief'
thanks in advance
ā11-26-2010 10:08 AM
Edit the script, and change line 97 to:
if [catch {cli_exec $cli(fd) "show ip int brief"} result] {
You can continue to add blocks like , then append $result to the $show_version variable. For example:
if [catch {cli_exec $cli(fd) "show ip route"} result] {
error $result $errorInfo
}append show_version $result
Then all of those commands' outputs will be sent in the email body.
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