ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/idar/idar.c
Revision 1.15 - (view) (annotate) - [select for diffs]
Thu Apr 10 12:31:19 2003 UTC (21 years, 1 month ago) by pajs
Branch: MAIN
CVS Tags: IDAR_1_1
Changes since 1.14: +100 -73 lines
Diff to previous 1.14
Proper resize support by catching SIGWINCH. Done some tiding. Added the ability
to do process stats (r).

Changed the megabytes units to have 2d.p. so it would show more than units of
100k/sec.

Revision 1.14 - (view) (annotate) - [select for diffs]
Wed Apr 9 21:55:10 2003 UTC (21 years, 1 month ago) by pajs
Branch: MAIN
Changes since 1.13: +214 -54 lines
Diff to previous 1.13
Now copes with resizing with regard to x-coord. This also copes with
units changing. (u or U)

It still doesn't do resizing properly tho :)

Revision 1.13 - (view) (annotate) - [select for diffs]
Wed Apr 9 20:13:53 2003 UTC (21 years, 1 month ago) by pajs
Branch: MAIN
Changes since 1.12: +14 -1 lines
Diff to previous 1.12
Ok, im sure this prob isn't the "right" way to do resizing.. but it seems
to work.

Revision 1.12 - (view) (annotate) - [select for diffs]
Thu Apr 3 10:59:28 2003 UTC (21 years, 2 months ago) by pajs
Branch: MAIN
Changes since 1.11: +1 -0 lines
Diff to previous 1.11
Fixed bug which caused it to seg fault if given a invalid host. (I
carefully did the check, then forgot to call exit(1).. Ooops :) )

Revision 1.11 - (view) (annotate) - [select for diffs]
Wed Apr 2 15:47:25 2003 UTC (21 years, 2 months ago) by pajs
Branch: MAIN
CVS Tags: IDAR_1_0
Changes since 1.10: +1 -0 lines
Diff to previous 1.10
Now works on freebsd too :)

Revision 1.10 - (view) (annotate) - [select for diffs]
Wed Apr 2 15:41:01 2003 UTC (21 years, 2 months ago) by pajs
Branch: MAIN
Changes since 1.9: +1 -0 lines
Diff to previous 1.9
Linux now working.

Revision 1.9 - (view) (annotate) - [select for diffs]
Wed Apr 2 15:23:26 2003 UTC (21 years, 2 months ago) by pajs
Branch: MAIN
Changes since 1.8: +71 -0 lines
Diff to previous 1.8
(unchecked) This update should mean it will compile on linux and freebsd.
I think we've got to the point where it should be called 1.1 :)
(If this actually works that is :) )

Revision 1.8 - (view) (annotate) - [select for diffs]
Sun Mar 30 23:21:55 2003 UTC (21 years, 2 months ago) by pajs
Branch: MAIN
Changes since 1.7: +87 -5 lines
Diff to previous 1.7
Now allows the user to choose whats being displayed. Currently only allows
the toggling of what we display by default, but its minor work adding the
others. I think may need to change the display structure, as i dont think
i will end up implementing like my original plan was.

Currently it does
'm' (memory)
's' (swap)
'l' (load)
'd' (disk_io)
'n' (network)
'p' (paging)
'c' (cpu)

Revision 1.7 - (view) (annotate) - [select for diffs]
Sun Mar 30 22:16:20 2003 UTC (21 years, 2 months ago) by pajs
Branch: MAIN
Changes since 1.6: +85 -11 lines
Diff to previous 1.6
Added support for sorting on the fly. I have followed a basic convention of
a capital letter will do sorting, and a lower case letter will change the
display properties.

Currently q or Q will quit.
C will sort by CPU
S will sort by Swap
M will sort by Memory
L will sort by Load
N will sort by Network. Network sorting is toggled thru 3 options. First
time it will sort by rx+tx. 2nd time it will sort by rx, 3rd time tx. Then
it will repeat to the start again.

The display function has been updated slightly. The arguments it takes
(num_lines) now means the number of lines on the screen, rather than
the number of hosts to display. A status of what its sorting by has been
added to the bottom line. This line could be used for other "stuff" in the
future as well.

Revision 1.6 - (view) (annotate) - [select for diffs]
Sun Mar 30 17:11:26 2003 UTC (21 years, 2 months ago) by tdb
Branch: MAIN
Changes since 1.5: +5 -0 lines
Diff to previous 1.5
Now tests for either curses or ncurses. By default prefers to use curses,
but will use ncurses if curses is not available or if forced by a configure
flag. Also minor other tweaks.

Revision 1.5 - (view) (annotate) - [select for diffs]
Sun Mar 30 10:58:21 2003 UTC (21 years, 2 months ago) by pajs
Branch: MAIN
Changes since 1.4: +27 -10 lines
Diff to previous 1.4
Allows the user to hit "q" to quit the program. The program is now interactive,
as it now uses select to work out if it needs to do something from the user, or
from the TCP connection.

Revision 1.4 - (view) (annotate) - [select for diffs]
Sun Mar 30 01:14:49 2003 UTC (21 years, 2 months ago) by pajs
Branch: MAIN
Changes since 1.3: +79 -41 lines
Diff to previous 1.3
Now uses ncurses. Not complete, but more infustructure layed down.

Revision 1.3 - (view) (annotate) - [select for diffs]
Sat Mar 29 19:27:36 2003 UTC (21 years, 2 months ago) by tdb
Branch: MAIN
Changes since 1.2: +24 -0 lines
Diff to previous 1.2
Initial stab at the autoconf/automake stuff for idar. Not sure it's
perfect, I've done a lot of this sort of stuff today ;)

Revision 1.2 - (view) (annotate) - [select for diffs]
Fri Mar 28 18:42:57 2003 UTC (21 years, 2 months ago) by pajs
Branch: MAIN
Changes since 1.1: +123 -24 lines
Diff to previous 1.1
The display function has been updated in preperation for being able to
display what the user wishes on request.

What to sort by is now a optional command line argument. Valid arguments are
currently cpu, mem and load. This will also eventually be able to be changed
"on the fly". The infastructure for doing this has been built in in this
change.

Revision 1.1 - (view) (annotate) - [select for diffs]
Fri Mar 28 15:37:05 2003 UTC (21 years, 2 months ago) by pajs
Branch: MAIN
idar is a "top like" client which displays data collected by ihost.
It currently displays cpu, load, pageing, mem, swap, net and disk io.
There is infastructure to display much more in the future, and to be able
to sort on more than just CPU.

genmergesort is macro written by mtr to sort a linked list.

Inital version 1.0 This compiles and works. It requires libxml2 (but it
may work against libxml, but this has not been checked). It also requires
ukcprog. This will not currently compile on linux (as it lacks strlcpy).

Usage is

idar <-d number_lines_to_display> machine_name port <"fqdn1;fqdn2;fqdn3">

Convenience Links

Links to HEAD: (view) (annotate) Links to IDAR_1_1: (view) (annotate)

Compare Revisions

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a