NAME sdtperfmeter - the CDE Performance Meter SYNOPSIS sdtperfmeter [ -a ] [ -s sample-time ] [ -l ] [ -n sample- filename ] [ -p page-length ] [ -t meter ] [ -C meter ceil- ing ] [ -H ] [ -L ] [ -S ] [ -V ] [ -Wn ] [ +Wn ] [ -? ] [ hostname ] DESCRIPTION The sdtperfmeter client displays performance statistics for a given hostname. If no host is specified, statistics on the current host are metered. You can display performance values in a solid or line strip chart. The performance data automatically scales to accommodate increasing or decreasing values for the host machine. The sdtperfmeter property sheet provides a simple interface for accessing all of the application resources. OPTIONS -a Display all the performance statistics meters simul- taneously. -s sample-time Set the sample time interval in seconds. -l Turn statistic logging on. -n sample-filename Specifies the filename to log the statistics to. If the file exists, the data is appended. -p page-length Sets the page length for perfmeter samples written to file. The default is 60 lines per page. -t meter Specifies a meter to display. This option can be present multiple times. meter The following meters are currently available: cpu Percent of CPU being usage. pkts Ethernet packets per second. page Paging activity in pages per second. swap Jobs swapped per second. intr Number of device interrupts per second. disk Disk traffic in transfers per second. cntxt Number of context switches per second. load Average number of runnable processes over the last minute. colls Collisions per second detected on the ethernet. errs Errors per second on receiving packets. -v Show version number -C meter ceiling Set a ceiling value for a given meter. Any data value above this ceiling will drawn in the limit color. -H Display meters in a horizontal orientation. -L Display the meters as line strip charts. -S Display the meters as solid line strip charts. -V Display meters in a vertical orientation. -Wn Hide the Window Manager Title decoration. +Wn Show the Window Manager Title decoration. -? Print the program usage on stderr. hostname The hostname of the machine to monitor. RESOURCES The sdtperfmeter application allows the user to specify behavior through X11 resources, the command line interface, and property sheets. The X11 resources can be added to your Sdtperfmeter located in your XAPPLRESDIR. There are three kinds of resources types: general, host, and meter. The following definitions contain examples of how to define these resources. The general resources include all of the standard X resources plus a few application specific ones and apply to the entire application. To set any general resource, define it as follows: Sdtperfmeter*name: value The host resources apply to a specific host machine To set any host resource, define it as follows: Sdtperfmeter.host*name: value The meter resources apply to a specific meter. To set any meter resource, define it as follows: Sdtperfmeter*meter.name: value or as a host specific meter resource: Sdtperfmeter.host.meter.name: value Following is a list of the defined resources: center, expand; cf3 cf3 cf3 cf3 lf3w(2c) lf3w(2c) lf3w(1c) lf3w(2c) . Name Class Type Default _ autoLoadByHost AutoLoadByHost Boolean False background Background String white canvasColor CanvasColor int 0 collectWhenIconized CollectWhenIconized Boolean False curMax CurMax int displayList DisplayList StringTable cpu foreground Foreground String black graphType GraphType String line loadByHost LoadByHost Boolean True labelColor LabelColor int 1 labelFont LabelFont XmFontList fixed limit Limit int limitColor LimitColor int 1 log Log Boolean True logFilename LogFilename String logPageLength LogPageLength int 60 machineNames MachineNames StringTable maxMax MaxMax int meterColor MeterColor int 1 minMax MinMax int direction Direction String vertical saveByHost SaveByHost Boolean True saveAsFile SaveAsHost Boolean False sampleTime SampleTime int 2 sizeToFit SizeToFit Boolean True showLimit ShowLimit Boolean False showMenubar ShowMenubar Boolean False showStatus ShowStatus Boolean False showTitle ShowTitle Boolean False wrapCount WrapCount int 10 autoLoadByHost Automatically load host specific resource when the mon- itor host is changed. background The background color of the application canvasColor This resource specifies the Canvas Color. This is an index into the application color palette. collectWhenIconized If True, the application will continue to sample when iconized. curMax Set the current sampling limit. displayList Specifies the list of meters to display. The supported values are: cpu, pkts, page, swap, intr, disk, cntx, load, coll, errs foreground The foreground color of the application graphType Specifies the type of meter to display. The supported values are: line, solid. loadByHost If True, load the resources by hostname. labelColor Sets the meter label color. This is an index into the application color palette. labelFont Set the meter label FontList. limit Set the limit data value. Any sample data above this limit will be drawn in the limitColor limitColor Sets the meter limit color. This is an index into the application color palette. log If True, turn on logging to the file specified in log- Filename. logFilename Specifies the file to log statistics to. logPageLength Sets the log output page length. machineNames Specifies a list of commonly monitored hostnames. This list is displayed in the property sheet. maxMax Set the upper data sampling limit. meterColor Sets the upper data sampling limit. This is an index into the application color palette. minMax Set the lower data sampling limit. orientation Set the orientation of the visible meters. The sup- ported values are: horizontal, vertical. saveByHost If True, save the resources by hostname. saveAsFile If True, prompt the user for a filename to save the resource too. sampleTime This specifies the monitor sample time interval. resizeable If True, this allows the canvas area to grow and shrink as needed depending on number and type of visible meters. showLimit Display the limit line fi the graphType is line or solid. showMenubar Display the Menubar and the pulldown menus. showStatus Display the status line which contains the name of the remote host. showTitle Show the Window Manager Title decorations. wrapCount Set the meter wrap count in the current orientation. TRANSLATIONS The sdtperfmeter application defines a set of translations, which map keyboard events into actions, on the meter canvas. These translations allow quick access to commonly used com- mands and can be reconfigured. The default meter canvas translations are: <Key>a: PmShow(all) <Key>c: PmShow(cpu) <Key>d: PmShow(disk) <Key>e: PmShow(errs) <Key>g: PmShow(page) <Key>i: PmShow(intr) <Key>k: PmShow(pkts) <Key>l: PmShow(load) <Key>m: PmToggle(menubar) <Key>m: PmToggle(monitor) <Key>o: PmShow(coll) <Key>p: PmShow(props) <Key>q: PmQuit() <Key>s: PmToggle(graphstyle) <Key>t: PmToggle(showlimitline) <Key>w: PmShow(swap) <Key>x: PmShow(cntx) <Key>y: PmToggle(orientation) <Key>1: PmInterval(sample, 1) <Key>2: PmInterval(sample, 2) <Key>3: PmInterval(sample, 3) <Key>4: PmInterval(sample, 4) <Key>5: PmInterval(sample, 5) <Key>6: PmInterval(sample, 6) <Key>7: PmInterval(sample, 7) <Key>8: PmInterval(sample, 8) <Key>9: PmInterval(sample, 9) To override the default translations, add the following resource to your .Xdefaults or Sdtperfmeter application resource file: Sdtperfmeter*Canvas.translations: #override <Key>a: PmShow(all)0.. ACTIONS The sdtperfmeter application defines the following action procedures: PmShow(meter) Show the specified meter. The supported meter values are: all, cpu, pkts, page, swap, intr, disk, cntx, load, coll, errs. PmToggle(resource) Toggle various resources. The supported resource values are: orientation, graphstyle, log, monitor, menubar, title. PmInterval(interval,value) Set the interval to the specified value. The supported intervals are: sample. PmQuit() Quit the application. EXIT STATUS 0 successful completion >0 an error occurred FILES $HOME/.dt/Desktop/$HOME.resources User resource file. $HOME/sdtperfmeterlog$PID Default logfile name, where $PID is substituted by get- pid(). SEE ALSO netstat(1M), rpc.rstatd(1M), vmstat(1M), NOTES The rpc.rstatd (1M) daemon must be running on the machine being metered.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |