Chapter 1
na Commands
Book C
The following is an example of the write command:
command: write 132.245.6.101 fronthall.script
The following example uses the write and read commands to install a
new Annex and to create a back-up copy of an Annex. The first line writes
configuration data for the Annex thirdfloor to a file named
thirdfloor.prm. The data from thirdfloor is copied to the new Annex
specified in the annex_list defined using the annex command.
command: write thirdfloor.prm
command: annex 132.245.6.40
command: read thirdfloor.prm
Following is an excerpt from the script file fronthall.script:
# annex 132.245.6.101
echo setting annex parameters
set annex pref_load_addr 132.245.6.75
set annex pref_dump_addr 132.245.6.75
set annex load_broadcast Y
set annex image_name ""
set annex subnet_mask 255.255.255.0
set annex authoritative_agent Y
:
echo setting serial port parameters for port 1
set port=1 speed 19200
set port=1 data_bits 8
set port=1 stop_bits 1
set port=1 parity none
:
set port=64 slip_allow_dump Y
set port=64 do_compression N
set port=64 slip_allow_compression Y
set port=64 slip_no_icmp Y
set port=64 slip_tos Y
Remote Annex Administrator's Guide for UNIX
Book C-32