Minicom Advanced Systems CMG-DCM manual Command line tools

Page 85

Operator's guide

Whilst the DCM is copying the contents of the Flash memory to disk, you will be shown a log of its progress. The USB interface can transfer data at a speed around 100 Kb/s, so large files may take several minutes to complete.

Once a file has been moved from the Flash memory to disk, any further data received which would otherwise be appended to that file will instead be placed in a new file in the Flash memory. Because of this, a stream may occasionally be fragmented. The automatic options are chosen to minimize this likelihood by only moving the oldest files, and by keeping files in Flash memory for a reasonable period of time. If you choose to transfer files to disk more often than this, more files will be fragmented.

gfat32 ls : List the files present on the hard disk, with the size of each file.

gfat32 cpf filename-on-diskdestination-filename : Copy a file from the disk into temporary storage in the Linux filesystem (e.g. in your home directory.) Once the file is in the Linux file system, you can modify or convert it using your own scripts running on the DCM, or use programs such as scp to transfer it to a remote machine.

gfat32 cpt source-filenamefilename-on-disk : Copy a file from the Linux file system onto the disk.

gfat32 mv filename new-filename : Rename a file on the disk.

6.2 Command line tools

The DCM module's Linux operating system can be accessed over a network via SSH. There are many programs available for your computer which implement this protocol: ssh is included as part of most Linux and Unix distributions, whilst for Windows putty is a reliable free client. ssh is essentially a secure version of programs like rlogin and telnet, and provides a simple command line interface to the device. Access to the DCM by SSH is enabled by default, although you can disable it using the net.remoteaccess.ssh configuration option (see “Remote access” in Section 4.4).

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.

December 2005

85

Image 85
Contents CMG-DCM Table of Contents December Inside the DCM Introduction CMG-DCM Inside the DCM Network services Serial port servicesSee .4, Connecting to a local network for full details Power supply Installing the CMG-DCMOverview Connecting over a serial link Connecting to a single computer192.168.0.x Connecting over EthernetConnecting over USB Using an internal modemConnecting to a local network Gcfgdbset option-namenew-value Connecting to the Internet Wi-FiSetting up the CMG-DCM Connecting digitizers and external hardwareWeb setup Setting up digitizers Using Scream General notes UsageDCM as a data store Gnblocks port-number Page CMG-DCM DCM as a GCF data source Accessing the DCM command line through gcfout Sensor arrays DCM as a network data hub Communicating with digitizers Configuring digitizers Data storage and retrieval Using miniSEED format Real-time data transmission CD1.0 and CD1.1 Troubleshooting DCM installations Cannot connect to the DCMs Scream! server Cannot see the DCMs Web site over Http or HttpsCannot Gcfping the DCMs Scream! server DCM is not receiving any data streams Can Gcfping the DCMs Scream! server, but no data appearsDCM is receiving streams, but they do not contain any data Use the Serial port configuration → port name Web page, or143032 up 34 min, load average 1.24, 1.32 General Configuration optionsDisk CMG-DCM Serial port configuration CMG-DCM Page Ethernet port Network configurationStatic routes DNS setup Incoming mail setup Outgoing mail setup Remote access Administrators PPP Mgetty Scream Data transferAutoDRM Scream! ClientHttp client Http serverCD1.0 CD1.1 CD1.1 subframe configuration DSS Server configuration Seed Page CMG-DCM Data Viewer ActionsStream list Icon barDigitizer Setup General digitizer settings Digitizer output control CMG-DCM Trigger criteria CMG-DCM Tap # Rate Bandwidth Samples/s Auxiliary Mux channels Sensor mass control Partition, and format disk Disk toolsCheck disk filesystem Flush flashCamera Disk filesRecent Log Entries Summary Network configurationData Out Port, Serial Port A, Serial Port B DNS configurationTamper lines Flash StatusDisk Status Software Versions Inside the DCM File systems CMG-DCM Command line tools Configuration Digitizer console access Data flow MonitoringDigitizer status Tamper lines Over the Internet Updating the DCMFrom the hard disk Removing support packagesFirmware Libgconfigdb Appendix A.1 Modular DCM units Appendix a Connector pinoutsPort a and B Data OUT portNetwork connector USB connectorDM/AM module output Appendix A.2 Integrated DCM unitsAppendix B.1 Sensor response codes Appendix B Sensor and digitizer typesDigitizer Appendix B.2 Digitizer type codes