User`s guide

554
e.g.
<%run_cmd("ati5");%>
<%run_cmd("bufs");%>
<%run_cmd("msgs");%>
An example template adding CLI commands would be:
TO: fred@anyco.com, jane@anyco.co.uk
FROM: MyRouter
SUBJECT: automatic email
MIME-Version: 1.0
Unit: <%smtpid();%>
Event: <%email_event();%>
This event had sufficient priority to cause the transmission of this
email. Please check the attached logs and review.
<%run_cmd("ati5");%>
<%run_cmd("bufs");%>
<%run_cmd("msgs");%>
It is also possible to specify an extra parameter which indicates the required priority of the
event before the command is executed. This allows events to be sent off without
attachments, but if the event has an equal or higher priority than the value of this
parameter, the attachments will be included. This ensures that the attachments are not
included unnecessarily with non-critical events and using up all the data allowance on a
wireless connection.
<%run_cmd("chkst","5");%>
An example template adding CLI commands with priority values would be:
TO: fred@anyco.com, jane@anyco.co.uk
FROM: MyRouter
SUBJECT: automatic email
MIME-Version: 1.0
Unit: <%smtpid();%>
Event: <%email_event();%>
This event had sufficient priority to cause the transmission of this
email. Please check the attached logs and review.
<%run_cmd("chkst","5");%>
In the example above, the command chkst will only be executed when an event with a
priority equal to or higher than 5 is detected.