Westermo MR Series User Manual
Page 455
![background image](https://www.manualsdir.com/files/809534/content/doc455.png)
455
6622-3201
Web Interface and Command Line Reference Guide
www.westermo.com
TO: [email protected], [email protected]
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 unneccessarily 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: [email protected], [email protected]
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.