beautypg.com

10 reboot, 2 system test methods, 1 smtp e mail server test – Echelon i.LON SmartServer 2.0 User Manual

Page 316: Reboot -16, System test methods -16, Smtp e-mail server test -16, System test methods

background image

i.LON SmartServer 2.0 Programmer’s Reference

19-16

Property Description

R/W

This property enables packets directly transmitted to the
internal devices on the SmartServer to be viewed with
the LonScanner Protocol Analyzer tool. These packets
will still not be sent on the physical network.

To enable packets sent by the internal devices on the
SmartServer to be viewed with the LonScanner Protocol
Analyzer tool, set this property to “true”. To disable
this feature, set this property to “false”.

r/w

19.1.10

Reboot

The system module includes a SystemService_Reboot function that you can use to reboot a
SmartServer.

Request


Response


19.2

System Test Methods

You can use the SystemService_Test function to test SMTP mail servers, test the connections between
the SmartServer and IP-852 Configuration servers, and to test connections between the SmartServer
and host devices such as SMTP mail servers, SNTP time servers, remote SmartServers, and LNS
Servers.

The SystemService_Test function takes a string consisting of an element that
includes one element. The element has a property that specifies an
enumeration representing the type of test to be performed (SMTP CONNECTION_TEST,
CONFIG_SERVER_TEST, or CONNECTION_TEST) and other properties (required or optional)
specific to the type of test being performed.

The SystemService_Test function returns a string containing element that
includes a single item listing the results of the test.

The following example demonstrates how to use the SystemService_Test function in your code:

string testData = "SMTP_TEST
ST_BEGIN
"

19.2.1

SMTP E-Mail Server Test

You can use the SystemService_Test function to test that the default SMTP e-mail server that is
connected to the SmartServer can send out e-mail messages. To do this, you provide the
SystemService_Test function with an element that includes one element
that specifies the following properties:

Property Description

Required/
Optional

Enumeration that defines the type of test to
perform. This property must be set to
SMTP_TEST.

Required