Digi TransPort WR31 User Manual page 622

Hide thumbs Also See for TransPort WR31:
Table of Contents

Advertisement

Configure alarms
Include the output from CLI commands in the email body
You can also execute CLI commands and include their output within the email; the output from up
to 10 CLI commands will be added to the body of the email. The command to be executed needs to
be entered in place of xxxxx below. To include the output from multiple commands, use the
run_cmd() function multiple times.
The run_command() function is as follows:
<%run_cmd("xxxxx");%>
For example,
<%run_cmd("ati5");%>
<%run_cmd("bufs");%>
<%run_cmd("msgs");%>
For example, here is a template adding CLI commands:
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");%>
You can also 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 are 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 is:
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 is executed when an event with a priority equal to or
higher than 5 is detected.
Digi TransPort WR Routers User Guide
Event Settings parameters
622

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents