Beziechnung | Gerätetyp |
zap | Zugangskontroller als ALT-PC |
zmp | Zugangskontroller als embedded System (miniPC) |
zbr | Bridge, welche zwischen RS485 und Ethernet wandelt |
vi `hostname -f`
Alle Konfigurationen werden in den Files /etc/config und /etc/config.common getroffen. /etc/config ist in der jetzigen Implementierung ein Link zu einem Configfile in dem Verzeichnis /etc/configs, welches den Namen des Klienten trägt. z.B. /etc/configs/zmp-1b-202.hrz.tu-chemnitz.de.
Option | Beschreibung | Beispiel |
RSYNC_HOST | Hostname des Rsync-Server | |
NAME | Name des Kontrollers. Dieser Name ist bei location jedes Dienstes sichtbar | |
HOSTNAME | Hostname des Kontroller | |
GATEWAY | Gateway-IP | |
POINTOPOINT | IP-Adresse des RS485-Masters | |
RS00IP | IP-Adresse des RS485-Interfaces | |
RS485ID | Node-ID im RS485-Bus | |
RS485BASE | Base-Adresse der seriellen Schnittstelle | |
RS485IRQ | Interrupt der seriellen Schnittstelle | |
RS485options | Extra-Optionen für das RS485-Kernel-Module |
Über TCP sind in der Entwicklungsphase diverse Statusabfragen und Komandoaufrufe möglich, welche jeweils über einen separaten Port ansprechbar sind.
[frame=single,framesep=5mm,fontsize=\tiny] $ telnet zmp-1b-202 9001 Trying 134.109.212.3... Connected to zmp-1b-202.hrz.tu-chemnitz.de. Escape character is '^]'. Receive: bytes : -1675407525 payload bytes : 247136340 start sentinel : 710415308 end sentinel : 710415384 frames for me : 309863036 wrong SS : 0 wrong sender : 0 Transmit: bytes : 1159600474 payload bytes : 230011390 start sentinel : 309863028 end sentinel : 309863028 finish frame : 309863028 Timeouts: master-rx-to : 0 irq-to : 1407 rx-to : 13 Nodes: [00] ONLINE scan=0/129980007 on=2 0-0=0 [01] offline scan=0/0 on=0 0-0=0 [02] offline scan=0/0 on=0 0-0=0 [03] ONLINE scan=0/0 on=0 0-0=0 [04] offline scan=0/0 on=0 0-0=0 [05] offline scan=0/0 on=0 0-0=0 [06] offline scan=0/0 on=0 0-0=0 [07] offline scan=0/0 on=0 0-0=0 [08] offline scan=0/0 on=0 0-0=0 [09] offline scan=0/0 on=0 0-0=0 [0a] offline scan=0/0 on=0 0-0=0 [0b] offline scan=0/0 on=0 0-0=0 [0c] offline scan=0/0 on=0 0-0=0 [0d] offline scan=0/0 on=0 0-0=0 [0e] offline scan=0/0 on=0 0-0=0 li 2 br=9 tx_status=0 Inter-| Receive | Transmit face |bytes packets errs drop fifo frame compressed multicast|bytes packets ... lo:872068530 14561286 0 0 0 0 0 0 872068530 1456 ... rs00:246095313 4410525 4 0 0 0 0 0 228468748 36765 ... Connection closed by foreign host.
[frame=single,framesep=5mm,fontsize=\tiny] $ telnet zmp-1b-202 9002 Trying 134.109.212.3... Connected to zmp-1b-202.hrz.tu-chemnitz.de. Escape character is '^]'. USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 6 0.0 0.0 0 0 ? SW Jul15 0:00 [kupdated] root 5 0.0 0.0 0 0 ? SW Jul15 0:00 [bdflush] root 4 0.0 0.0 0 0 ? SW Jul15 0:00 [kswapd] root 3 0.0 0.0 0 0 ? SWN Jul15 0:28 [ksoftirqd_CPU0] root 1 0.0 1.7 1008 256 ? S Jul15 0:06 init root 2 0.0 0.0 0 0 ? SW Jul15 0:00 [keventd] root 7 0.0 0.0 0 0 ? SW Jul15 0:00 [mtdblockd] root 8 0.0 0.0 0 0 ? SW Jul15 1:26 [kjournald] root 16 0.0 0.0 0 0 ? SW Jul15 1:35 [kjournald] root 54 0.0 1.7 1008 252 ? S Jul15 0:01 /bin/klogd root 56 0.0 4.3 2152 624 ? S Jul15 0:09 /bin/inetd root 15728 0.0 1.3 1056 188 ? S 12:53 0:00 \_ /bin/sh /var/debug/show_ps root 15729 0.0 10.9 2444 1564 ? R 12:53 0:00 \_ /var/debug/ps -faxuw root 61 0.0 1.4 1064 208 ? S Jul15 0:00 /bin/sh /bin/dacs/wrapper controller root 67 0.0 7.4 7128 1060 ? S Jul15 6:04 \_ /bin/dacs/controller 1/B202 root 84 0.0 7.4 7128 1060 ? S Jul15 9:15 \_ /bin/dacs/controller 1/B202 root 85 0.0 7.4 7128 1060 ? S Jul15 14:52 \_ /bin/dacs/controller 1/B202 root 86 0.0 7.4 7128 1060 ? S Jul15 17:59 \_ /bin/dacs/controller 1/B202 root 62 0.0 1.4 1064 208 ? S Jul15 0:00 /bin/sh /bin/dacs/wrapper door root 72 0.2 7.3 7124 1048 ? S Jul15 47:29 \_ /bin/dacs/door 1/B202 root 87 0.1 7.3 7124 1048 ? S Jul15 30:49 \_ /bin/dacs/door 1/B202 root 88 0.0 7.3 7124 1048 ? S Jul15 6:52 \_ /bin/dacs/door 1/B202 root 89 0.3 7.3 7124 1048 ? S Jul15 69:57 \_ /bin/dacs/door 1/B202 root 63 0.0 1.4 1064 208 ? S Jul15 0:00 /bin/sh /bin/dacs/wrapper proxy mcard root 75 0.0 9.7 5632 1388 ? S Jul15 10:08 \_ /bin/dacs/proxy 1/B202 mcard root 90 0.0 9.7 5632 1388 ? S Jul15 14:12 \_ /bin/dacs/proxy 1/B202 mcard root 92 0.0 9.7 5632 1388 ? S Jul15 11:30 \_ /bin/dacs/proxy 1/B202 mcard root 64 0.0 1.4 1064 208 ? S Jul15 0:00 /bin/sh /bin/dacs/wrapper proxy acl root 77 0.0 9.6 5640 1384 ? S Jul15 21:06 \_ /bin/dacs/proxy 1/B202 acl root 91 0.1 9.6 5640 1384 ? S Jul15 26:20 \_ /bin/dacs/proxy 1/B202 acl root 95 0.0 9.6 5640 1384 ? S Jul15 4:11 \_ /bin/dacs/proxy 1/B202 acl root 69 0.0 1.4 1064 208 ? S Jul15 0:00 /bin/sh /bin/dacs/wrapper spooler logdata root 83 0.0 9.5 7664 1360 ? S Jul15 14:41 \_ /bin/dacs/spooler 1/B202 logdata root 96 0.0 9.5 7664 1360 ? S Jul15 19:20 \_ /bin/dacs/spooler 1/B202 logdata root 97 0.0 9.5 7664 1360 ? S Jul15 7:30 \_ /bin/dacs/spooler 1/B202 logdata root 100 0.0 9.5 7664 1360 ? S Jul15 2:47 \_ /bin/dacs/spooler 1/B202 logdata root 70 0.0 1.4 1064 208 ? S Jul15 0:00 /bin/sh /bin/dacs/wrapper sns root 81 0.0 7.1 5080 1028 ? S Jul15 4:08 \_ /bin/dacs/sns 1/B202 root 93 0.0 7.1 5080 1028 ? S Jul15 6:01 \_ /bin/dacs/sns 1/B202 root 94 0.1 7.1 5080 1028 ? S Jul15 37:22 \_ /bin/dacs/sns 1/B202 root 71 0.0 1.3 1056 188 ? S Jul15 0:07 /bin/sh /bin/sync_time root 15378 0.0 0.9 992 132 ? S 12:50 0:00 \_ sleep 360 root 78 0.0 2.7 1136 392 ? S Jul15 0:02 /bin/in.telnetd root 80 0.0 1.8 1012 260 ttyS0 S Jul15 0:00 init Connection closed by foreign host.
[frame=single,framesep=5mm,fontsize=\tiny] $ telnet zmp-1b-202 9004 Trying 134.109.212.3... Connected to zmp-1b-202.hrz.tu-chemnitz.de. Escape character is '^]'. total used free shared buffers Mem: 14296 11856 2440 0 2032 Swap: 0 0 0 Total: 14296 11856 2440 Filesystem 1k-blocks Used Available Use% Mounted on /dev/disk2 7621 4006 3615 53% /var Connection closed by foreign host.
[frame=single,framesep=5mm,fontsize=\tiny] $ echo uptime | nc zmp-1b-202 9005 12:56pm up 15 days, 1:06, load average: 0.02, 0.13, 0.10
[frame=single,framesep=5mm,fontsize=\tiny] $ telnet zmp-prototyp 9006 Trying 134.109.212.7... Connected to zmp-prototyp.hrz.tu-chemnitz.de. Escape character is '^]'. DigiTemp v2.5 Copyright 1996-2002 by Brian C. Lane GNU Public License v2.0 - http://www.brianlane.com Jul 30 12:57:55 Sensor 0 C: 50.56 F: 123.01 Connection closed by foreign host.
[frame=single,framesep=5mm,fontsize=\small] DACS @zmp-prototyp(/root) get /bin/dacs/ receiving file list ... done ./ wrote 77 bytes read 479 bytes 222.40 bytes/sec total size is 200208 speedup is 360.09
Es besteht auch die Möglichkeit, alle Klienten auf einmal mit neuer Software zu bestücken. Dazu gibt es das Kommando do_update. Als Argument wird das zu updatende File oder Verzeichnis angegeben. Alle Host, welche erneuert werden sollen, müssen in der Datei clients.cfg stehen. (siehe /usr/lib/dacs/update)
Ein vollständiges Protokoll des Updates befindet sich in /tmp/dacs-update.log .