1sonar(6x) XScreenSaver manual sonar(6x)
2
3
4
6 sonar - display a sonar scope
7
9 sonar [-ping hosts-or-subnets] [-ping-timeout int] [-delay usecs]
10 [-speed ratio] [-sweep-size ratio] [-font-size points] [-team-a-name
11 string] [-team-b-name string] [-team-a-count int] [-team-b-count int]
12 [-no-dns] [-no-times] [-no-wobble] [-debug] [-fps]
13
15 This draws a sonar screen that pings (get it?) the hosts on your local
16 network, and plots their distance (response time) from you. The three
17 rings represent ping times of approximately 2.5, 70 and 2,000 millisec‐
18 onds respectively.
19
20 Alternately, it can run a simulation that doesn't involve hosts.
21
23 sonar understands the following options:
24
25 -ping hosts-or-subnets
26 The list of things to ping, separated by commas or spaces.
27 Elements of this list may be:
28
29 simulation Run in simulation mode instead of pinging real
30 hosts.
31
32 hostname Ping the given host.
33
34 A.B.C.D Ping the given IP address.
35
36 subnet Ping the local class C subnet (the nearest 255
37 addresses).
38
39 subnet/NN Ping a different-sized local subnet: e.g., sub‐
40 net/28 would ping a 4-bit subnet (the nearest 15
41 addresses).
42
43 A.B.C.D/NN Ping an arbitrary other subnet. The IP address
44 specifies the base address, and the part after the
45 slash is how wide the subnet is. Typical values
46 are /24 (for 255 addresses) and /28 (for 15
47 addresses).
48
49 filename Ping the hosts listed in the given file. This file
50 can be in the format used by /etc/hosts, or it can
51 be any file that has host names as the first or
52 second element on each line. If you use ssh, try
53 this:
54
55 sonar -ping $HOME/.ssh/known_hosts
56
57 -ping-timeout int
58 The amount of time in milliseconds the program will wait for an
59 answer to a ping.
60
61 -delay int
62 Delay between frames, in microseconds. Default 20000.
63
64 -speed ratio
65 Less than 1 for slower, greater than 1 for faster. Default 1.
66
67 -sweep-size ratio
68 How big the glowing sweep area should be. Default 0.3.
69
70 -font-size points
71 How large the text should be. Default 10 points.
72
73 -no-wobble
74 Keep the display stationary instead of very slowly wobbling
75 back and forth.
76
77 -no-dns Do not attempt to resolve IP addresses to hostnames.
78
79 -no-times
80 Do not display ping times beneath the host names.
81
82 -team-a-name string
83 In simulation mode, the name of team A.
84
85 -team-b-name string
86 In simulation mode, the name of team B.
87
88 -team-a-count int
89 In simulation mode, the number of bogies on team A.
90
91 -team-b-count int
92 In simulation mode, the number of bogies on team B.
93
94 -fps Display the current frame rate, polygon count, and CPU load.
95
97 On most Unix systems, this program must be installed as setuid root in
98 order to ping hosts. This is because root privileges are needed to
99 create an ICMP RAW socket. Privileges are disavowed shortly after
100 startup (just after connecting to the X server) so this is believed to
101 be safe:
102 chown root:root sonar
103 chmod u+s sonar
104 It is not necessary to make it setuid on MacOS systems, because on Mac‐
105 OS, unprivileged programs can ping by using ICMP DGRAM sockets instead
106 of ICMP RAW.
107
108 In ping-mode, the display is a logarithmic scale, calibrated so that
109 the three rings represent ping times of approximately 2.5, 70 and 2,000
110 milliseconds respectively.
111
112 This means that if any the hosts you are pinging take longer than 2
113 seconds to respond, they won't show up; and if you are pinging several
114 hosts with very fast response times, they will all appear close to the
115 center of the screen (making their names hard to read.)
116
118 X(1), xscreensaver(1), ping(8)
119
121 Copyright © 2000-2008 by Jamie Zawinski <jwz@jwz.org>
122 Copyright © 1998 by Stephen Martin. <smartin@canada.com>
123
124 Permission to use, copy, modify, distribute, and sell this software and
125 its documentation for any purpose is hereby granted without fee, pro‐
126 vided that the above copyright notice appear in all copies and that
127 both that copyright notice and this permission notice appear in sup‐
128 porting documentation. No representations are made about the suitabil‐
129 ity of this software for any purpose. It is provided "as is" without
130 express or implied warranty.
131
132
134 Stephen Martin <smartin@canada.com>, 3-nov-1998.
135
136 Subnet support, etc. added by Jamie Zawinski, 17-Jul-2000.
137
138 Rewritten using OpenGL instead of X11 by Jamie Zawinski, 12-Aug-2008.
139
140
141
142X Version 11 5.15-3.fc14 (18-Oct-2011) sonar(6x)