Moxa Technologies UC-7420/7410 user manual Mail, Steps 2

Page 68

UC-7420/7410 User’s ManualManaging Communication

Steps 2 & 3:

#mkdir –p /home/nfs/public

#mount –t nfs NFS_Server(IP):/directory /mount/point

Example

: #mount –t nfs 192.168.3.100/home/public /home/nfs/public

Mail

smtpclient is a minimal SMTP client that takes an email message body and passes it on to an SMTP server. It is suitable for applications that use email to send alert messages or important logs to a specific user.

NOTE Click on the following link for more information about smtpclient:

http://www.engelschall.com/sw/smtpclient/

To send an email message, use the ‘smtpclient’ utility, which uses SMTP protocol. Type #smtpclient –helpto see the help message.

Example:

smtpclient –s test –f sender@company.com –S IP_address receiver@company.com

<mail-body-message

-s:The mail subject.

-f:Sender’s mail address

-S:SMTP server IP address

The last mail address receiver@company.com is the receiver’s e-mail address. mail-body-messageis the mail content. The last line of the body of the message should contain ONLY the period ‘.’ character.

You will need to add your hostname to the file /etc/hosts.

SNMP

UC-7420/7410 has built-in SNMP V1 (Simple Network Management Protocol) agent software. It supports RFC1317 RS-232 like group and RFC 1213 MIB-II.

The following simple example allows you to use an SNMP browser on the host site to query the UC-7420/7410, which is the SNMP agent. UC-7420/7410 will respond.

***** SNMP QUERY STARTED *****

1:sysDescr.0 (octet string) Linux Moxa 2.4.18_mvl30-ixdp425 #1049 Tue Oct 26 09:34:15 CST 2004 armv5teb

2:sysObjectID.0 (object identifier) enterprises.2021.250.10

3:sysUpTime.0 (timeticks) 0 days 00h:41m:54s.47th (251447)

4:sysContact.0 (octet string) Root <root@localhost> (configure /etc/snmp/snmp.local.conf)

5:sysName.0 (octet string) Moxa

6:sysLocation.0 (octet string) Unknown (configure /etc/snmp/snmp.local.conf)

7:system.8.0 (timeticks) 0 days 00h:00m:00s.22th (22)

8:system.9.1.2.1 (object identifier) mib-2.31

9:system.9.1.2.2 (object identifier) internet.6.3.1

10:system.9.1.2.3 (object identifier) mib-2.49

11:system.9.1.2.4 (object identifier) ip

12:system.9.1.2.5 (object identifier) mib-2.50

13:system.9.1.2.6 (object identifier) internet.6.3.16.2.2.1

14:system.9.1.2.7 (object identifier) internet.6.3.10.3.1.1

15:system.9.1.2.8 (object identifier) internet.6.3.11.3.1.1

16:system.9.1.2.9 (object identifier) internet.6.3.15.2.1.1

17:system.9.1.3.1 (octet string) The MIB module to describe generic objects for network interface sub-layers

18:system.9.1.3.2 (octet string) The MIB module for SNMPv2 entities

19:system.9.1.3.3 (octet string) The MIB module for managing TCP implementations

4-16

Image 68
Contents UC-7420/7410 User’s Manual Third Edition, JuneDisclaimer Copyright NoticeTrademarks Table of Contents Chapter UC Finder Appendix B Windows Tool Chain Introduction Introduction ‰ Hardware IntroductionPackage Checklist Product FeaturesOverview UC-7410-LXProduct Hardware Specifications Appearance Appearance and DimensionsHardware Introduction Dimensions LED Name Color Meaning Hardware Block DiagramLED Indicators Reset-type Buttons Reset ButtonReset to default Button Real Time ClockPlacement Options Wall or CabinetDIN-Rail Mounting Wiring RequirementsHardware Connection Description Connecting the Power Connecting to the NetworkPin Signal Grounding UC-7420/7410Connecting to a Serial Device Connecting to the Console PortCompactFlash Pin RS-232 RS-422 RS-485Software Introduction Software ArchitectureJournaling Flash File System JFFS2 Software PackageSoftware Version Comparison Table Protocol stacks and utilities Directory Change‰ Configuring the Ethernet Interface Getting StartedSerial Console Powering on UC-7420/7410Connecting UC-7420/7410 to a PC Default IP Address Netmask Telnet Console192.168.3.127 255.255.255.0 192.168.4.127 255.255.255.0SSH Console Windows UsersConfiguring the Ethernet Interface Modifying Network Settings with the Serial ConsoleLinux Users Static IP addressesDynamic IP addresses Configuring the Wlan via the Pcmcia Interface Modifying Network Settings over the NetworkDefault IP address is 192.168.5.127, netmask IEEE802.11b#vi /etc/wlan/wlancfg-any IEEE802.11g Setting Explanation SettingKey1Str, Key2Str, Key3Str, Key4Str-Sets strings Key1 to Key4 TurboRate-Enables or disables TurboRate Installing the Tool Chain Linux Test Program-Developing Hello.cChecking the Flash Memory Space StepCompiling Hello.c You should receive the following responseUploading Hello to UC-7420/7410 and Running the Program Testing EnvironmentDeveloping Your First Application Compiling tcps2.c #mount -t iso9660 /dev/cdrom /mnt/cdromUploading tcps2-release and Running the Program PuTTY#jobs // use this command to check if the program is running Testing Procedure Summary UC-7420/7410 User’s ManualUC-7420/7410 User’s Manual ‰ System Version Information ‰ System Image Backup Managing Embedded LinuxSystem Image Backup System Version InformationUpgrading the Firmware Upgrading the firmware will erase all data on the Flash ROM#upramdisk #cd /mnt/ramdisk Loading Factory Defaults Firmware version V1.5 and later versions Backing Up the User File SystemFirmware versions earlier than V1.5 not including Enabling and Disabling Daemons UC-7420/7410 User’s Manual Managing Embedded Linux Setting the Run-Level Adjusting the System Time Setting the Time ManuallyUpdating the Time Automatically Example shell script to update the system time periodicallyNTP Client Cron-daemon to Execute Scheduled Commands Change mode of fixtime.shEnable the cron daemon manually Enable cron when the system boots upCF Mass Storage Connecting PeripheralsUSB Mass Storage Managing Communications ‰ Iptables ‰ NATWeb Service-Apache Telnet / FTPEnabling the Telnet/ftp server Disabling the Telnet/ftp serverUsr/www/cgi-bin Saving a Web Page to the CF Card Use the following commands to restart the Apache web server Iptables Local Host Packets Observe and erase chain rules Define policy for chain rulesUsage ExamplesAppend or delete rules IptmacEnabling NAT at Bootup NAT ExampleDial-up Service-PPP Example 2 Connecting to a PPP server over a hard-wired link How to check the connection UP Loopback RunningSetting up UC-7420/7410 as an NFS Server Setting up a Machine for Incoming PPP ConnectionsNFS Network File System #vi /etc/exportsSetting up UC-7420/7410 as an NFS Client Mail Steps 2Open VPN Internet IFS=‘ Create link symbols to enable this script at boot time Destination Gateway Genmsk Flags Metric Use Iface Now ping Host B from Host a by typing Setup 3 Routed IP Destination Gateway Genmsk Flags Metric Use Iface Programmer’s Guide Linux Tool Chain Introduction Address Size ContentsFlash Memory Map Debugging with GDB Obtaining helpCross Compiling Applications and Libraries Tools Available in the Host EnvironmentBuzzer Device APIRTC Real Time Clock WDT Watch Dog Timer Input Int fd File handle from swtdopen return value Output Special Note User application example ExampleSwtddisableswtdfd Int mainint argc, char *argv Pidt sonpid Example to set the baud rate Example to get the baud rateKeyPad Baud rate inaccuracySpecial Note ExamplesMake File Example UC Finder Installing the Software Windows UC FinderUC-7420/7410 User’s Manual UC Finder Broadcast Search Linux ucfinder System Commands Busybox V0.60.4 Linux normal command utility collectionFile manager EditorMoxa special utilities ProcessOther Windows Tool Chain Introduction Introduction Installation Procedure Select the Root DirectoryUC-7420/7410 User’s Manual Windows Tool Chain Introduction UC-7420/7410 User’s Manual Windows Tool Chain Introduction Using the Bash Shell GDB debug tool-Insight UC-7420/7410 User’s Manual Windows Tool Chain IntroductionUC-7420/7410 User’s Manual Windows Tool Chain Introduction Service Information Moxa Internet Services Following services are providedProblem Report Form Moxa Product † UC-7410-LX † UC-7420-LX Serial NumberProduct Return Procedure