3 configuration – Guralp Systems CMG-DCM User Manual

Page 118

Advertising
background image

CMG-DCM Data Communications Module

you can disable it using the

net.remoteaccess.ssh configuration option.

In addition, if you have so configured it, you can connect directly to an

RS232 port running the

getty service.

Once the connection has been set up and you have logged in, you will
then be shown a command prompt:

~ #

By default, your account uses the standard Bourne shell, sh. If you

prefer, the more advanced shells ash and bash are also available.

Many standard Unix programs are also present: ls, cat, more, sed,

etc.

The following sections describe how to operate a DCM from the Linux

command line, including descriptions of all commands unique to the
DCM. Any of these commands can be included in your own shell

script files, which can be run as services on the DCM or remotely using
a ssh connection as required. If you need to compile your own C or

FORTRAN programs to be run on the DCM, please contact Güralp

Systems for assistance.

8.3 Configuration

Configuring the DCM is automated by a suite of command line tools.

These maintain a configuration database and check that all the
relevant Linux files are kept up to date. If you alter the standard Linux

configuration files, you should bear in mind that these tools will
overwrite them without checking that they match the information in

the database. Because of this you should use the tools wherever
possible rather than editing the files directly. The DCM's Web-based

configuration system is just a front-end to these tools.

gcfgdbls prefix : Enter this command to find out which

configuration options begin with the prefix prefix (case sensitive—

all the configuration options are in lower case). The options are listed
in alphabetical order. For example:

~ # gcfgdbls serial.0

serial.0.baudrate

serial.0.handshaking

serial.0.ppp

serial.0.service

gcfgdbset option-name new-value : Enter this command to set

the value of the named option to new-value. The database will

perform a simple type check on your value (for example, to check that

118

Issue F

Advertising