Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
sonar(1)
Edit
PageHistory
Diff
Info
LikePages
Sonar !!!Sonar NAME SYNOPSIS DESCRIPTION OPTIONS RESOURCES NOTES SEE ALSO COPYRIGHT AUTHORS ---- !!NAME sonar - display a sonar scope !!SYNOPSIS __sonar__ [[-ping ''hosts-or-subnets''] [[-background ''color''] [[-sweep-color ''color''] [[-low-color ''color''] [[-scope-color ''color''] [[-grid-color ''color''] [[-text-color ''color''] [[-ttl ''integer''] [[-font ''font''] [[-ping-timeout ''int''] [[-team-a-name ''string''] [[-team-b-name ''string''] [[-team-a-count ''int''] [[-team-b-count ''int''] [[-debug] !!DESCRIPTION The ''sonar'' program displays a sonar scope on the computer's screen. This scope polls a sensor as the sweep goes around the scope and displays what it finds as bogies on the screen. The program is designed to support different modes representing different types of sensors. Currently the only implemented sensors are a simulator, and a network ping function that pings hosts and plots the results on the scope. !!OPTIONS ''sonar'' understands the following options: __-background__ ''Color'' The background Color of the screen not covered by the scope. __-sweep-color__ ''Color'' The color of the brightest part of the sweep. __-scope-color__ ''Color'' The color of the circular part of the scope. __-grid-color__ ''Color'' The color to the grid lines overlaying the scope. __-text-color__ ''Color'' The color of the text identifying bogies on the scope. __-ttl__ ''integer'' __-font__ ''font'' The font used to display text on the scope. Default __-ping-timeout__ ''int'' The amount of time in milliseconds the program will wait for an answer to a ping. __-ping__ ''hosts-or-subnets'' The list of things to ping, separated by commas or spaces. Elements of this list may be: __simulation__ to run in simulation mode, instead of pinging real hosts (this is the default if the program is not installed setuid); ''hostname'' to ping the given host; ''A.B.C.D'' to ping the given IP address; __subnet__ to ping the local class C subnet (the nearest 255 addresses); __subnet/__''NN'' to ping a different-sized local subnet: e.g., __subnet/28__ would ping a 4-bit subnet (the nearest 15 addresses); ''A.B.C.D/NN'' to ping an arbitrary other subnet: the IP address specifies the base address, and the part after the slash is how wide the subnet is. Typical values are /24 (for 255 addresses) and /28 (for 15 addresses.) ''filename'' to ping the hosts listed in the given file. This file can be in the format used by ''/etc/hosts'', or it can be any file that has host names as the first element on each line. If you use ssh, try this: sonar -ping $HOME/.ssh/known_hosts __-team-a-name__ ''string'' In simulation mode, the name of team A. __-team-b-name__ ''string'' In simulation mode, the name of team B. __-team-a-count__ ''int'' In simulation mode, the number of bogies on team A. __-team-b-count__ ''int'' In simulation mode, the number of bogies on team B. !!RESOURCES Configuration of the targets to ping is best done by setting X Resources. __background__ ''(Color)'' See option -background, above; default value is ''black''. __sweepColor__ ''(Color)'' See option -sweep-color, above; default value is ''#00ff00''. __scopeColor__ ''(Color)'' See option -scope-color, above; default value is ''#003300''. __gridColor__ ''(Color)'' See option -grid-color, above; default value is ''#00aa00''. __textColor__ ''(Color)'' See option -text-color, above; default value is ''#ffff00''. __ttl__ ''(integer)'' See option -ttl, above; default value is ''90'' or one sweep. __ping__ ''(string)'' See option -ping, above. If set to __default__, it will ping the contents of /etc/hosts if possible, otherwise, will run in simulation-mode. __font__ ''(font)'' See option -font, above; default value is ''fixed''. __pingTimeout__ ''(Integer)'' See option -pingtimeout, above; default value is 3000. __teamAName__ ''string'' See option -team-a-name, above. Default value is __F18__. __teamBName__ ''string'' See option -teamBName, above. Default value is __MIG__. __teamACount__ ''int'' See option -teamACount, above. Default value is 4. __teamBCount__ ''int'' See option -teamBCount, above. Default value is 4. !!NOTES In order to use the ping sensor, this program must be installed as setuid root, so that it can create an ICMP socket. Root privileges are disavowed shortly after startup (just after connecting to the X server and reading the resource database) so this is ''believed'' to be a safe thing to do, but it is usually recommended that you have as few setuid programs around as possible, on general principles. chown root.root sonar chmod u+s sonar !!SEE ALSO X(1), xscreensaver(1), ping(8) !!COPYRIGHT Copyright 1998 by Stephen Martin. (smartin@canada.com) Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. No representations are made about the suitability of this software for any purpose. It is provided !!AUTHORS Stephen Martin Thanks to Tom Kelly for suggesting a modular approach to the sensor amoung other things. Thomas Bahls Better subnet support and command-line processing by Jamie Zawinski, 17-Jul-00. ----
2 pages link to
sonar(1)
:
xscreensaver(1)
Man1s
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.