---------------------------------
Equipment batch data query [Administrator]
---------------------------------

> Historical administrator tool. `data_query.tar.gz` is **not** an SA1 install pack; do not treat it as `sa1-upgrader`.

Batch-query physical values and wavelengths from demodulators on the LAN.

1. Scripts
-----------------
    Query all devices: data_all.sh
    Query one device: data_single.sh
    Loop: run.sh — also usable to loop other commands, e.g. version queries.

2. Get the scripts
-----------------
    2.1 Demodulators at version 220.3.4 and later already ship the scripts under "sa/bin";
    2.2 Any Linux machine can download the latest pack:

        curl -O http://112.74.80.60/sa/tools/creator/data_query.tar.gz

        Unpack it to get every current script.

3. Run
-----------------
    Batch commands take any address on the subnet, e.g. 192.168.3; a single-device command must take the device IP.
    3.1 Query
        3.1.1 All machines
            bash data_all.sh 192.168.3
            bash data_all.sh 192.168.3 all
        3.1.2 One machine
            bash data_single.sh 192.168.3.212
            bash data_single.sh 192.168.3.212 all
            Query this host
            bash data_single.sh 127.0.0.1
        3.1.3 Loop
            Example:
            Query the whole subnet forever, interval 5 s, clear the screen first;
            bash run.sh 0 5 clear ./data_all.sh 192.168.3
            Query a specific device (127.0.0.1 is this host) 20 times, interval 5 s, clear the screen first;
            bash run.sh 20 5 clear ./data_single.sh 127.0.0.1
