beautypg.com

Westermo MR Series User Manual

Page 454

background image

454

6622-3201

Web Interface and Command Line Reference Guide

www.westermo.com

Body Section

23.1.3

The body section may include any text. This text is parsed for any function calls that may be present.
Function calls must be enclosed between “<%” and “%>”. These sequences are substituted by text
resulting from the function call. The following functions may be used:

Function

Description

TimeSmtp();

Inserts the unit’s date and time.

serial_number();

Inserts the unit’s serial number

Smtpip();

Inserts the IP address of the unit as seen by the SMTP server dur-
ing trans mission

email_event()

Inserts a formatted description of the event that caused the email
transmis sion.

Smtpid()

Inserts the unit ID for this device as configured by the “unit iden-
tity” field in the Configure > General web page, or the cmd 0
unitid text command.

pppip(“instance”);

Inserts the IP address for a specific PPP instance, where instance
is the PPP instance number.

The following are examples of email templates.

1)

TO: [email protected]

FROM: MyRouter

SUBJECT: Remote Configuration

Time: <%timeSmtp();%>

Serial Number: <%serial_number();%>

Req: CFG_RQ

IP Address: <%smtpip();%>

PPP 1 IP address: <%pppip(“1”);%>

2)

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.

CLI commands can also be executed and 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.

<%run_cmd(“xxxxx”);%>

e.g.

<%run_cmd(“ati5”);%>

<%run_cmd(“bufs”);%>

<%run_cmd(“msgs”);%>

An example template adding CLI commands would be:

This manual is related to the following products: