Hi to all,
i would like to send the output of a single command to an email address so i have created a simple script you can see below.
The email is successfully sent to the recipient with the correct subject but the body is empty.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
event manager applet show-int-status
description show-int-status
event none sync yes
action 0.5 cli command "enable"
action 1.0 cli command "show int status"
action 1.5 mail server "mta.xyz.com" to "support@xyz.com" from "rtr@xyz.com" subject "show int status output" body "show int status $_cli_pattern"
I also noticed that although i put the $_cli_pattern is in the email command when i created it , when i issue a
"show event manager policy registered" i do not see the $_cli_pattern variable in this specific line , it is disappeared
:
action 1.5 mail server "mta.xyz.com" to "support@xyz.com" from "rtr@xyz.com" subject "show int status output" body "show int status WITHOUT THE $_CLI_PATTERN"
Any ideas, why the email is sent without the body and why the $_cli_pattern is disappeared?
Thanks,
Ditter.