8 sonar - display a sonar scope
10 S
\bSY
\bYN
\bNO
\bOP
\bPS
\bSI
\bIS
\bS
11 s
\bso
\bon
\bna
\bar
\br [-background _
\bc_
\bo_
\bl_
\bo_
\br] [-sweep-color _
\bc_
\bo_
\bl_
\bo_
\br] [-low-color
12 _
\bc_
\bo_
\bl_
\bo_
\br] [-scope-color _
\bc_
\bo_
\bl_
\bo_
\br] [-grid-color _
\bc_
\bo_
\bl_
\bo_
\br]
13 [-text-color _
\bc_
\bo_
\bl_
\bo_
\br] [-ttl _
\bi_
\bn_
\bt_
\be_
\bg_
\be_
\br] [-mode ping] [-font
14 _
\bf_
\bo_
\bn_
\bt] [-ping-timeout _
\bi_
\bn_
\bt] [-ping-source list | file | sub-
15 net ] [-ping-file _
\bh_
\bo_
\bs_
\bt_
\bs_
\b-_
\bf_
\bi_
\bl_
\be] [-ping-list _
\bh_
\bo_
\bs_
\bt_
\b-_
\bn_
\ba_
\bm_
\be_
\b-_
\bl_
\bi_
\bs_
\bt]
16 [-team-a-name _
\bs_
\bt_
\br_
\bi_
\bn_
\bg] [-team-b-name _
\bs_
\bt_
\br_
\bi_
\bn_
\bg] [-team-a-count
17 _
\bi_
\bn_
\bt] [-team-b-count _
\bi_
\bn_
\bt]
19 D
\bDE
\bES
\bSC
\bCR
\bRI
\bIP
\bPT
\bTI
\bIO
\bON
\bN
20 The _
\bs_
\bo_
\bn_
\ba_
\br program displays a sonar scope on the computer's
21 screen. This scope polls a sensor as the sweep goes
22 around the scope and displays what it finds as bogies on
23 the screen. The program is designed to support different
24 modes representing different types of sensors. Currently
25 the only implemented sensors are a simulator, and a net-
26 work ping function that pings hosts and plots the results
29 O
\bOP
\bPT
\bTI
\bIO
\bON
\bNS
\bS
30 _
\bs_
\bo_
\bn_
\ba_
\br understands the following options:
32 -
\b-b
\bba
\bac
\bck
\bkg
\bgr
\bro
\bou
\bun
\bnd
\bd _
\bC_
\bo_
\bl_
\bo_
\br
33 The background Color of the screen not covered by
36 -
\b-s
\bsw
\bwe
\bee
\bep
\bp-
\b-c
\bco
\bol
\blo
\bor
\br _
\bC_
\bo_
\bl_
\bo_
\br
37 The color of the brightest part of the sweep.
39 -
\b-s
\bsc
\bco
\bop
\bpe
\be-
\b-c
\bco
\bol
\blo
\bor
\br _
\bC_
\bo_
\bl_
\bo_
\br
40 The color of the circular part of the scope.
42 -
\b-g
\bgr
\bri
\bid
\bd-
\b-c
\bco
\bol
\blo
\bor
\br _
\bC_
\bo_
\bl_
\bo_
\br
43 The color to the grid lines overlaying the scope.
45 -
\b-t
\bte
\bex
\bxt
\bt-
\b-c
\bco
\bol
\blo
\bor
\br _
\bC_
\bo_
\bl_
\bo_
\br
46 The color of the text identifying bogies on the
49 -
\b-t
\btt
\btl
\bl _
\bi_
\bn_
\bt_
\be_
\bg_
\be_
\br
50 "Time to live": visible time of a Bogie. Try val-
51 ues between 10 (very short) and 100.
53 -
\b-m
\bmo
\bod
\bde
\be _
\bs_
\bi_
\bm_
\bu_
\bl_
\ba_
\bt_
\bi_
\bo_
\bn _
\b| _
\bp_
\bi_
\bn_
\bg
54 The sensor mode to use, the currently supported
55 modes _
\bs_
\bi_
\bm_
\bu_
\bl_
\ba_
\bt_
\be (the default) and _
\bp_
\bi_
\bn_
\bg.
57 -
\b-f
\bfo
\bon
\bnt
\bt _
\bf_
\bo_
\bn_
\bt
58 The font used to display text on the scope.
64 X Version 11 3-Nov-98 1
73 -
\b-p
\bpi
\bin
\bng
\bg-
\b-t
\bti
\bim
\bme
\beo
\bou
\but
\bt _
\bi_
\bn_
\bt
74 The amount of time in milliseconds the program
75 will wait for an answer to a ping.
77 -
\b-p
\bpi
\bin
\bng
\bg-
\b-s
\bso
\bou
\bur
\brc
\bce
\be l
\bli
\bis
\bst
\bt |
\b| f
\bfi
\bil
\ble
\be |
\b| s
\bsu
\bub
\bbn
\bne
\bet
\bt
78 Th source of the list of hosts to ping. Valid val-
79 ues are: _
\bl_
\bi_
\bs_
\bt, _
\bf_
\bi_
\bl_
\be, _
\bs_
\bu_
\bb_
\bn_
\be_
\bt. The first two values
80 are described below; and _
\bs_
\bu_
\bb_
\bn_
\be_
\bt indicates that the
81 sonar should ping all hosts in the same subnet as
82 the current machine. (All addresses are treated
83 as class C nets, therefore this will at most ping
86 -
\b-p
\bpi
\bin
\bng
\bg-
\b-f
\bfi
\bil
\ble
\be _
\bf_
\bi_
\bl_
\be_
\bn_
\ba_
\bm_
\be
87 The path to a file listing the hosts to ping.
88 This file can be in the format used by _
\b/_
\be_
\bt_
\bc_
\b/_
\bh_
\bo_
\bs_
\bt_
\bs,
89 or it can be any file that has host names as the
90 first element on each line. If you use ssh, try
93 sonar -mode ping -ping-file $HOME/.ssh/known_hosts
95 This is used only used when _
\bp_
\bi_
\bn_
\bg_
\bS_
\bo_
\bu_
\br_
\bc_
\be is set to
98 -
\b-p
\bpi
\bin
\bng
\bg-
\b-l
\bli
\bis
\bst
\bt _
\bl_
\bi_
\bs_
\bt
99 A comma separated list of hostnames, eg
100 _
\b"_
\bp_
\bi_
\bn_
\bk_
\by_
\b,_
\bb_
\br_
\ba_
\bi_
\bn_
\b,_
\bd_
\bo_
\bt_
\b". Only used when _
\bp_
\bi_
\bn_
\bg_
\bS_
\bo_
\bu_
\br_
\bc_
\be is
101 set to l
\bli
\bis
\bst
\bt.
103 -
\b-t
\bte
\bea
\bam
\bm-
\b-a
\ba-
\b-n
\bna
\bam
\bme
\be _
\bs_
\bt_
\br_
\bi_
\bn_
\bg
104 The name of team A, in simulation-mode.
106 -
\b-t
\bte
\bea
\bam
\bm-
\b-b
\bb-
\b-n
\bna
\bam
\bme
\be _
\bs_
\bt_
\br_
\bi_
\bn_
\bg
107 The name of team B, in simulation-mode.
109 -
\b-t
\bte
\bea
\bam
\bm-
\b-a
\ba-
\b-c
\bco
\bou
\bun
\bnt
\bt _
\bi_
\bn_
\bt
110 The number of bogies on team A, in simulation-
113 -
\b-t
\bte
\bea
\bam
\bm-
\b-b
\bb-
\b-c
\bco
\bou
\bun
\bnt
\bt _
\bi_
\bn_
\bt
114 The number of bogies on team B, in simulation-
117 R
\bRE
\bES
\bSO
\bOU
\bUR
\bRC
\bCE
\bES
\bS
118 Configuration of the targets to ping is best done by set-
122 b
\bba
\bac
\bck
\bkg
\bgr
\bro
\bou
\bun
\bnd
\bd _
\b(_
\bC_
\bo_
\bl_
\bo_
\br_
\b)
123 See option -background, above; default value is
124 _
\bb_
\bl_
\ba_
\bc_
\bk.
130 X Version 11 3-Nov-98 2
139 s
\bsw
\bwe
\bee
\bep
\bpC
\bCo
\bol
\blo
\bor
\br _
\b(_
\bC_
\bo_
\bl_
\bo_
\br_
\b)
140 See option -sweep-color, above; default value is
141 _
\b#_
\b0_
\b0_
\bf_
\bf_
\b0_
\b0.
143 s
\bsc
\bco
\bop
\bpe
\beC
\bCo
\bol
\blo
\bor
\br _
\b(_
\bC_
\bo_
\bl_
\bo_
\br_
\b)
144 See option -scope-color, above; default value is
145 _
\b#_
\b0_
\b0_
\b3_
\b3_
\b0_
\b0.
147 g
\bgr
\bri
\bid
\bdC
\bCo
\bol
\blo
\bor
\br _
\b(_
\bC_
\bo_
\bl_
\bo_
\br_
\b)
148 See option -grid-color, above; default value is
149 _
\b#_
\b0_
\b0_
\ba_
\ba_
\b0_
\b0.
151 t
\bte
\bex
\bxt
\btC
\bCo
\bol
\blo
\bor
\br _
\b(_
\bC_
\bo_
\bl_
\bo_
\br_
\b)
152 See option -text-color, above; default value is
153 _
\b#_
\bf_
\bf_
\bf_
\bf_
\b0_
\b0.
155 t
\btt
\btl
\bl _
\b(_
\bi_
\bn_
\bt_
\be_
\bg_
\be_
\br_
\b)
156 See option -ttl, above; default value is _
\b9_
\b0 or one
159 m
\bmo
\bod
\bde
\be _
\b(_
\bp_
\bi_
\bn_
\bg_
\b)
160 See option -mode, above. If set to d
\bde
\bef
\bfa
\bau
\bul
\blt
\bt, it
161 will ping hosts if possible, otherwise, will run
164 f
\bfo
\bon
\bnt
\bt _
\b(_
\bf_
\bo_
\bn_
\bt_
\b)
165 See option -font, above; default value is _
\bf_
\bi_
\bx_
\be_
\bd.
167 p
\bpi
\bin
\bng
\bgT
\bTi
\bim
\bme
\beo
\bou
\but
\bt _
\b(_
\bI_
\bn_
\bt_
\be_
\bg_
\be_
\br_
\b)
168 See option -pingtimeout, above; default value is
171 p
\bpi
\bin
\bng
\bgS
\bSo
\bou
\bur
\brc
\bce
\be _
\bl_
\bi_
\bs_
\bt _
\b| _
\bf_
\bi_
\bl_
\be _
\b| _
\bs_
\bu_
\bb_
\bn_
\be_
\bt
172 See option -ping-source, above. Default value is
175 p
\bpi
\bin
\bng
\bgF
\bFi
\bil
\ble
\be _
\bp_
\ba_
\bt_
\bh_
\bn_
\ba_
\bm_
\be
176 See option -ping-file, above. Default value is
177 _
\b/_
\be_
\bt_
\bc_
\b/_
\bh_
\bo_
\bs_
\bt_
\bs.
179 p
\bpi
\bin
\bng
\bgL
\bLi
\bis
\bst
\bt _
\bh_
\bo_
\bs_
\bt_
\b,_
\bh_
\bo_
\bs_
\bt_
\b,_
\bh_
\bo_
\bs_
\bt_
\b._
\b._
\b.
180 See option -ping-list, above; default value is
181 l
\blo
\boc
\bca
\bal
\blh
\bho
\bos
\bst
\bt.
183 t
\bte
\bea
\bam
\bmA
\bAN
\bNa
\bam
\bme
\be _
\bs_
\bt_
\br_
\bi_
\bn_
\bg
184 See option -team-a-name, above. Default value is
187 t
\bte
\bea
\bam
\bmB
\bBN
\bNa
\bam
\bme
\be _
\bs_
\bt_
\br_
\bi_
\bn_
\bg
188 See option -teamBName, above. Default value is
191 t
\bte
\bea
\bam
\bmA
\bAC
\bCo
\bou
\bun
\bnt
\bt _
\bi_
\bn_
\bt
192 See option -teamACount, above. Default value is
196 X Version 11 3-Nov-98 3
207 t
\bte
\bea
\bam
\bmB
\bBC
\bCo
\bou
\bun
\bnt
\bt _
\bi_
\bn_
\bt
208 See option -teamBCount, above. Default value is
212 In order to use the ping sensor, this program must be
213 installed as setuid root, so that it can create an ICMP
216 S
\bSE
\bEE
\bE A
\bAL
\bLS
\bSO
\bO
217 X
\bX(1), x
\bxs
\bsc
\bcr
\bre
\bee
\ben
\bns
\bsa
\bav
\bve
\ber
\br(1), p
\bpi
\bin
\bng
\bg(8)
219 C
\bCO
\bOP
\bPY
\bYR
\bRI
\bIG
\bGH
\bHT
\bT
220 Copyright (C) 1998 by Stephen Martin. (smartin@canada.com)
222 Permission to use, copy, modify, distribute, and sell this
223 software and its documentation for any purpose is hereby
224 granted without fee, provided that the above copyright
225 notice appear in all copies and that both that copyright
226 notice and this permission notice appear in supporting
227 documentation. No representations are made about the
228 suitability of this software for any purpose. It is pro-
229 vided "as is" without express or implied warranty.
232 A
\bAU
\bUT
\bTH
\bHO
\bOR
\bRS
\bS
233 Stephen Martin <smartin@canada.com>, 3-nov-98.
235 Thanks to Tom Kelly for suggesting a modular approach to
236 the sensor amoung other things.
238 Thomas Bahls <thommy@cs.tu-berlin.de> hacked the "ttl"
262 X Version 11 3-Nov-98 4