Configure alarms
Event Settings parameters
Digi TransPort WR Routers User Guide
622
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: [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");%>
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: [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
is executed when an event with a priority equal to or
higher than
5
is detected.
Содержание TransPort WR11
Страница 1: ...User Guide Digi TransPort WR Routers ...
Страница 215: ...Configure network interfaces Configure mobile cellular interfaces Digi TransPort WR Routers User Guide 215 ...
Страница 650: ...Configure system settings NTP parameters Digi TransPort WR Routers User Guide 650 ...
Страница 661: ...Configure system settings General system parameters Digi TransPort WR Routers User Guide 661 ...
Страница 662: ...Configure system settings General system parameters Digi TransPort WR Routers User Guide 662 ...
Страница 663: ...Configure system settings General system parameters Digi TransPort WR Routers User Guide 663 ...
Страница 682: ...Configure Remote Management SNMP parameters Digi TransPort WR Routers User Guide 679 ...
Страница 683: ...Configure Remote Management SNMP parameters Digi TransPort WR Routers User Guide 680 ...
Страница 813: ...Manage networks and connections Top Talkers Digi TransPort WR Routers User Guide 808 ...
Страница 814: ...Manage networks and connections Top Talkers Digi TransPort WR Routers User Guide 809 ...
Страница 815: ...Manage networks and connections Top Talkers Digi TransPort WR Routers User Guide 810 ...
Страница 816: ...Manage networks and connections Top Talkers Digi TransPort WR Routers User Guide 811 ...
Страница 817: ...Manage networks and connections Top Talkers Digi TransPort WR Routers User Guide 812 ...
Страница 818: ...Manage networks and connections Top Talkers Digi TransPort WR Routers User Guide 813 ...
Страница 855: ...Device administration Reboot the router Digi TransPort WR Routers User Guide 844 ...