Cyclades PC400 installation manual Get information from the board, Syslog, Crond Utility

Page 39

Cyclades-PC400

Installation Manual

-i

get information from the board

Syslog

The syslog feature can be turned on, as an option. It runs in background, by default. Its syntax is:

pc400syslog [-d device] [-l facility]

-d device : defines the syslog device (the default is /dev/ttyCM30)

-l <facility> : where <facility> is a number between 0 and 7, indicates the local_level

it sends Syslog messages generated by the PC400 firmware to the Syslogd running on the Linux server. It can also be initialized using the rc.local file described later.

The Crond Utility

A list of Linux shell commands can be saved in a "crontab" file and executed at a specific time. The crontab command provides a user interface to change the crontab file. To use crond, first create the following two files for every process that it will execute:

1.crontab - the file that specifies frequency of execution, name of shell script, etc. should be created using the traditional crontab file format.

2.script shell - a script file with the Linux commands to be executed.

Each line of the crontab file has five time and date fields, followed by a user name if it is the system crontab file, followed by a command.

minute hour date month day-of-week [user] command

Commands are executed when the minute, hour and month fields match the current time and when at least one of the two day fields (day of month or day of week) match the current time. An * represents the entire possible range of values (e.g. every day or every month).

Next, create a line in the file /etc/crontab_files for each process to be run.

Each line must contain the three items:

Appendix A - Linux

39

Image 39
Contents Cyclades-PC400 Cyclades-PC400 Installation Manual FCC Warning StatementCanadian DOC Notice Table of Contents Appendix B Hardware Specifications Upgrades of Software and Manuals What is in the BOXHardware Installation Step OneStep Two Step Three Step Five Step FourSoftware Installation Software Installation Make config Make menuconfig Board and System Configuration Step ONEStep TWO Dspprofilebegin InterfnNbegin Label Description ISDN-PRI Profile Parameters Interface Parameters USA AT&T Step Three Last or channelnumberchannelnumberchannelnumber etcPc400load Pc400util -pStep Four Guided Examples for the Most Common Applications Step FiveISDN-BRI LANRAS DIAL-IN Application Parameters Parameter Description Value for T1 Value for E1 Line∙∙∙ Example 2 a LAN-to-LAN Example Using Channels LANETH0 10 Multiple LAN-TO-LAN Application Parameters ∙∙∙ General Tips TroubleshootingRoot@cyclades common# ./pc400hwtest Hardware TestDSP U19 U06 U20 U07 ESC Previous Menu G Global E ErrorsGlobal Test Passes Pg0 BoardESC Previous Menu G Global E ErrorsAdministrative Utilities Linux File Structure Users and PasswordsAppendix a Information for Users not Familiar with Linux PasswdCp filename destination Basic File Manipulation CommandsMode What is done there How to Get There Vi EditorVi filename Routing Table Ssh The Secure Shell Session Netstat -rnNet-host NetmaskPID TTY Stat Time Command Loading the Configuration FileProcess Table Crond Utility Minute hour date month day-of-week user commandGet information from the board SyslogDhcp Dynamic Host Configuration Protocol Client Active root /etc/tstcron.src59 * * * * /etc/testcron.sh Packet Filtering using ipchains Interface is Accept DenyCyclades-PC400 Installation Manual RJ-48C Signal Pin RxTip RxRing TxTip TxRing Appendix B Hardware SpecificationsCyclades Philippines