man xosview (Commandes) - X based system monitor

NAME

xosview - X based system monitor

SYNOPSIS

xosview [options]

DESCRIPTION

xosview is a monitor which displays the status of several system based parameters. These include CPU usage, load average, memory usage, swap space usage, network usage, interrupts, and serial port status. Each of these is displayed as a horizontal bar which is separated into color coded regions. Each region represents a percentage of the resource which is being put to a particular use. Typing a 'q' in the window will terminate xosview.

At the moment xosview runs on seven platforms (Linux, NetBSD, FreeBSD, OpenBSD, some Solaris systems, IRIX 6.5 and HPUX). Not all of the meters described below are supported on all platforms. Some of the meters may appear different depending upon the platform xosview is running on. Note that *BSD is used as an abbreviation for all three of the free BSD operating systems (NetBSD, FreeBSD, OpenBSD).

Load all platforms : load

CPU Usage Linux : user | nice | system | idle *BSD : user | nice | system | interrupt | idle IRIX : user | system | interrupt | wait | idle HPUX : user | nice | system | interrupt | idle

Memory Usage Linux : used | shared | buffers | free NetBSD : active | inactive | wired | free FreeBSD: active | inactive | wired | buffer | free OpenBSD: active | inactive | wired | free IRIX : kernel | fs | user | free HPUX : text | used | other | free

Swap Usage all platforms except IRIX: used | free

Disk Usage (bytes/sec) Linux : in | out | idle *BSD : transferred | idle HPUX : < Not Supported >

Page Swapping from/to disk all platforms except IRIX : in | out | idle

NET Usage bytes/sec Linux : in | out | idle *BSD : in | out | idle HPUX : < Not Supported >

GFX Usage swapbuffers/sec IRIX : number of swapbuffers

Interrupts "leds" which blink when an interrupt occurs. Linux : IRQs 0 - 15 *BSD : IRQs 0 - 15 (or fewer, depending on architecture) HPUX : < Not Supported >

Interrupt rate interrupts per second Linux : < Not Supported > *BSD : interrupts | free HPUX : < Not Supported >

Serial Port Status "leds" which show the serial port parameters. Linux : Both the Line Status Register (LSR) and Modem Status Register (MSR) are displayed. *BSD : < Not Supported > HPUX : < Not Supported >

Battery Level Shows the current condition of the battery (for laptops). Linux : %left | %used NetBSD : %left | %used FreeBSD: < Not Supported > OpenBSD: %left | %used HPUX : < Not Supported >

RAID status Shows the state of disks contained in your (software) RAID1/4/5 array(s) and the rebuild state of the array(s). Linux : Disk0 Disk1 Disk2 .. DiskN | Rebuild Progress

OPTIONS

Most of these command line options are just a convenient way to set one or more of xosview's resources. Please see the RESOURCES section for more details on what the resource is for.

-v Displays the version number.

-name name Sets the Resource name xosview will use (same as the -name option for typical X applications like xterm). When performing resource lookups, xosview will look under name, and then under ``xosview''. For an example, in order to request the ``stipple'' style (see /usr/share/doc/xosview/README.stipple): xosview -name xosvstipple & xosview -name xosvstipplebw &

-display display Sets the X display to display. This option overrides the xosview*display resource.

-font font Specifies the font xosview will use for labels. This option overrides the xosview*font resource.

-title title This option sets the name xosview will tell the window manager to use for the X window and icon. This option overrides the xosview*title resource.

-geometry geometry_string Sets the X geometry to geometry_string. This option overrides the xosview*geometry resource.

-usedlabels This option overrides the xosview*usedlabels resource. It is equivalent to setting xosview*usedlabels to "False".

+usedlabels This option overrides the xosview*usedlabels resource. It is equivalent to setting xosview*usedlabels to "True".

-network maxbandwidth -networkBW maxbandwidth -networkBandwidth maxbandwidth These options override the xosview*netBandwidth resource. They cause xosview to display a meter that will shows network usage, with a maximum bandwidth of maxbandwidth. Notice that setting the bandwidth to 0 no longer disables the meter -- use the ``-net'' option instead.

-pagespeed val This option overrides the xosview*pageBandWidth resource. The resource xosview*pageBandWidth will be set to val.

-ints +ints -interrupts +interrupts Equivalent to -int and +int.

-intrate +intrate Equivalent to -irqrate and +irqrate.

-xrm resource_string This switch allows any of xosview's resources to be set on the command line. An example of how the xosview*memFreeColor could be set using this option is shown below (Note the use of " to prevent the shell from expanding '*' or from creating two separate arguments, 'xosview*memfreeColor:' and 'purple'): -xrm "xosview*memFreeColor: purple"

X RESOURCES

The following is a list of X resources supported by xosview. Each has a default value assigned to it. These values can be found in the file Xdefaults which can be obtained in the source distribution of xosview. They can be overridden in the usual places (/usr/lib/X11/app-defaults/XOsview, $HOME/.Xdefaults, etc.).

It should be noted that it is OK to have a resource defined for a port of xosview that does not support the feature the resource configures. Xosview will simply ignore the resources that are set for it but not supported on a given platform.

General Resources

xosview*title: name The string that xosview will use for the X window title. Normally xosview will use 'xosview@machine_name' for a title. This resource overrides the default behavior.

xosview*geometry: geometry_string This is a standard X geometry string that defines the size and location of the X window used by xosview.

xosview*display: name The name of the display where xosview will contact the X server for drawing its window.

xosview*pixmapName: name The filename of an X pixmap (xpm) file for use as a background image.

xosview*captions: (True or False) If True then xosview will display meter captions.

xosview*labels: (True or False) If True then xosview will display meter labels.

xosview*meterLabelColor: color The color to use for the meter labels.

xosview*usedlabels: (True or False) If True then xosview will display labels that show the percentage of the resource (or absolute amount, depending on the meter) being used. This option requires that the labels option also be set to True.

xosview*usedLabelColor: color The color to use for "used" labels.

xosview*borderwidth: width The width of the border for the xosview window.

xosview*font: font This is the font that xosview will use.

xosview*background: color This is the color that will be used for the background.

xosview*foreground: color This is the color that will be used for the foreground.

xosview*enableStipple: (True or False) Change to true to try stipple support. This is primarily for users stuck with 1-bit monitors/display cards. Try setting enableStipple true. Please give us feedback on this, if you use it. It needs some more work, but no one has given us any feedback so far.

xosview*graphNumCols: number This defines the number of sample bars drawn when a meter is in scrolling graph mode. This also has the side-effect of defining the width of the graph columns. This is only used by meters which have graph mode enabled.

Load Meter Resources

xosview*loadWarnColor: color This is the color that the load meter will use once the load average is greater than 1.

xosview*loadProcColor: color This is the color that the load meter will use to display the load average when it is less than or equal to 1.

xosview*loadWarnThreshold: int This number (which must be an integer >= 1) sets the value at which the loadmeter changes its status and color from "normal" to "alarm". The default value is 2.

xosview*loadDecay: (True or False) You should probably leave this at the default value (False). The load is already a time-averaged value!

CPU Meter Resources

xosview*cpu: (True or False) If True then xosview will display a cpu meter. On linux SMP machines this will cause a separate meter to be displayed for each cpu if Jerome Forissier's kernel patch has been applied. See the 'README.linux' file for more details. On IRIX 6.5, the resource cpuFormat decides which meters are created for multiple CPUs.

xosview*cpuFormat: (single, all, both or auto) IRIX only. If single, only a cumulative meter for all CPU is created. All creates a meter for each CPU, but no cumulative meter. Both creates one cumulative meter and one per cpu. auto behaves like single on uniprocessor system, and like both on multiprocessor systems.

Memory Meter Resources

Swap Meter Resources

Page Swapping Meter Resources

xosview*pageBandWidth: maxEvents This number is used to specify the expected maximum bandwidth (in events / sec) for the page meter. When the expected maximum bandwidth (maxEvents) is exceeded then the page meter will display the relative percentage of page swapping (25% in, 75% out).

Gfx Meter Resources

xosview*gfx: (True or False) If True xosview will display the GfxMeter. The value is sampled once per second, due to the usage of sadc to sample data.

xosview*gfxWarnColor: color This is the color that the gfx meter will use once the warn state is reached.

xosview*gfxAlarmColor: color This is the color that the gfx meter will use once the alarm state is reached.

xosview*gfxSwapColor: color This is the color that the gfx meter will use in normal state

xosview*gfxWarnThreshold: int This number (which must be an integer >= 1) of swapbuffers per second and pipe at which the gfxmeter changes its status and color from "normal" to "warn". The default value is 60.

xosview*gfxAlarmThreshold: int This number (which must be an integer >= gfxWarnThreshold) of swapbuffers per second and pipe at which the gfxmeter changes its status and color from "warn" to "alarm". The default value is 120.

xosview*gfxDecay: (True or False) You should probably leave this at the default value (False). The gfx does not work in decay mode.

Network Meter Resources

xosview*net: (True or False) If True xosview will display the NetMeter. Linux users will have to configure their kernels and setup some ip accounting rules to make this work. See the file README.linux which comes with the xosview distribution for details.

xosview*netBandwidth: maxBytes This number is used to specify the expected maximum bandwidth (in bytes / sec) for the meter. When the expected maximum bandwidth (maxBytes) is exceeded then the network meter will display the relative percentage of network usage (25% incoming, 75% outgoing).

xosview*netIface: interface If False, xosview will display the data received/transmitted by any of the network interfaces. Otherwise, xosview will only display the data received/transmitted by the specified network interface.

xosview*netBackground: color This is the color that the network meter will use for the "idle" field.

NFSStats (Client) Resources

xosview*NFSStats: (True or False) If True then xosview will display a meter to monitor NFS client stats.

xosview*NFSStatReTransColor: color The color to be used for retransmit stats.

xosview*NFSStatAuthRefrshColor: color The color to be used for auth refresh stats.

xosview*NFSStatCallsColor: color The color to be used for call stats.

xosview*NFSStatIdleColor: color The color to be used for idle stats.

NFSDStats (Server) Resources

xosview*NFSDStats: (True or False) If True xosview will display a meter for NFS server/daemon stats.

xosview*NFSDStatCallsColor: color The color to be used for call stats.

xosview*NFSDStatBadCallsColor: color The color to be used for bad stats.

xosview*NFSDStatUDPColor: color The color to be used for UDP stats.

xosview*NFSDStatTCPColor: color The color to be used for TCP stats.

xosview*NFSDStatIdleColor: color The color to be used for idle stats.

Serial Meter Resources

xosview*serial(0-9): (True, False, or portBase) If True then xosview will display a serial meter for ttySx. The portbase will be autodetected. Because autodetection can fail, (if the port is locked by ppp/slip for example) you can specify the portbase instead of "True". If a portBase is used then xosview will use it instead of trying to autodetect.

For this to work on Linux xosview needs to be suid root in order to have access to the ports. See the file README.linux which comes with the xosview distribution for more details.

xosview*serialOnColor: color This is the color the serial meter will use for bits that are set.

xosview*serialOffColor: color This is the color the serial meter will use for bits that are not set.

Interrupt Meter Resources

xosview*interrupts: (True or False) If True then xosview will display an interrupt meter.

xosview*intOnColor: color This is the color that will be used to show "active" interrupts.

xosview*intOffColor: color This is the color that will be used to show "inactive" interrupts.

Lm Sensors Temperature Resources

xosview*lmstempHighest: 100 Highest temp value displayed, default 100.

xosview*lmstempActColor: color Color of actual temperature.

xosview*lmstempHighColor: color Color above alarm temperature, also used to indicate alarm.

xosview*lmstempIdleColor: color Color between actual and alarm temperatures.

xosview*lmstempN: filename Name of temperature file from /proc/sys/dev/sensors/*/*, N=1..

Note if more files with same name exists, only the first is found. There is currently no possibility to configure equal named files on different busses (which would be rarely necessary, I hope).

eg.

xosview*lmstemp1: temp xosview*lmstemp2: remote_temp

xosview*lmstempLabelN: Labelstring N-th label for above temperatures, default is TMP.

Battery Meter Resources

xosview*battery: (True or False) If True then xosview will display a battery meter. Linux users will need to have APM support in their kernels for this to work. See the file README.linux which comes with the xosview distribution for more details.

xosview*batteryLeftColor: color This is the color that will be used to show the amount of battery power left.

xosview*batteryUsedColor: color This is the color that will be used to show the amount of battery power used.

Disk Meter Resources

xosview*diskBandwidth: bandwidth This number is used to specify the expected maximum bandwidth in bytes per second for the disk meter.

xosview*diskWriteColor: color This color will be used for the linux meter to show writes.

xosview*diskReadColor: color This color will be used for the linux meter to show reads.

RAID Meter Resources

xosview*RAIDdevicecount: int Please enter your RAID device count (n) here or 0 if you don't have any supported RAID devices. xosview then will display n RAID state displays.

xosview*RAIDdiskOnlineColor: color

xosview*RAIDdiskFailureColor: color These colors will be used for indicating working/online or failed/offline disks. The order (from left to right) is the same as in /proc/mdstat.

xosview*RAIDresyncdoneColor: color

xosview*RAIDresynctodoColor: color

xosview*RAIDresynccompleteColor: color If a resync/rebuild of the RAID array is in progress, the "done" and "todo" colors will be used. If no rebuild/resync is running, then the "complete" color will be shown.

BUGS

Here is a list of known bugs. Reports of unknown bugs are appreciated and should be directed to:

Mike Romberg (mike.romberg@noaa.gov) General xosview bugs and bugs related to the Linux and HPUX ports.

Brian Grayson (bgrayson@netbsd.org) Bugs related to the NetBSD port. I am also a catch-all for bug reports for the other *BSDs and SunOS.

Stefan Eilemann (eile@sgi.com) Bugs related to the IRIX port.

OBTAINING

The most current version of xosview can be found at the following sites:

http://xosview.sourceforge.net ftp://sunsite.unc.edu/pub/Linux/system/status/xstatus

For *BSD users with the ports/package system, the sysutils/xosview tree ought to also have a version that is just as up-to-date.

AUTHORS

Mike Romberg (romberg@fsl.noaa.gov) Original author, Linux and HPUX ports.

Brian Grayson (bgrayson@netbsd.org) NetBSD port and most of the nice enhancements for version 1.4, initial work on FreeBSD port.

Scott McNab (jedi@tartarus.uwa.edu.au) Added the scrolling graph mode.

Tom Pavel (pavel@slac.stanford.edu) Most of the FreeBSD support, more resource-handling improvements.

Greg Onufer (exodus@cheers.bungi.com) SunOS port.

Stefan Eilemann (eile@sgi.com) IRIX 6.5 port.

Sheldon Hearn (axl@iafrica.com) FreeBSD libdevstat-based diskmeter support.

David W. Talmage (talmage@jefferson.cmf.nrl.navy.mil) Added battery-meter support to NetBSD.

Oleg Safiullin (form@openbsd.org) OpenBSD interrupt-meter support.

Werner Fink (werner@suse.de) Originator of the loadmeter.

Massimiliano Ghilardi ( ghilardi@cibs.sns.it ) Linux pagemeter.

Carsten Schabacker (cschaba@spock.central.de) Made extensions to the serial-meter.

Paal Beyer <pbeyer@online.no> Ported the linux memstat kernel module to linux-2.1

Jerome Forissier <forissier@isia.cma.fr> Maintains the linux SMP kernel patch which xosview uses to display meters for each cpu. This patch can be found at the following URL: http://www-isia.cma.fr/~forissie/smp_kernel_patch/

Tomer Klainer <mandor@cs.huji.ac.il> Initial port to BSDI.

Arno Augustin (Arno.Augustin@3SOFT.de) Solaris disk and network meters.

Alberto BARSELLA <ishark@lsh01.univ-lille1.fr> Fixes for linux diskmeter + ip_chains support

Thomas Waldmann (ThomasWaldmann@gmx.de) Linux raid meter, bitfieldmeter. Many cosmetic fixes.

Leopold Toetsch <lt@toetsch.at> Linux lms temp meter.

David O'Brien (obrien@nuxi.com) FreeBSD 4.* updates, and a few other suggestions.

Christos Zoulas (christos@netbsd.org) C++ standard compliance and other NetBSD fixes.

And many others who have sent in small fixes and improvements.