ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/idar/idar.c
Revision 1.24 - (view) (annotate) - [select for diffs]
Wed Jun 2 16:13:06 2004 UTC (20 years, 6 months ago) by ats
Branch: MAIN
CVS Tags: HEAD
Changes since 1.23: +1 -1 lines
Diff to previous 1.23
Include ukcprog.h after all the system headers, so that it defines
get_host_addr correctly on Linux.

Revision 1.23 - (view) (annotate) - [select for diffs]
Wed Jun 2 16:11:48 2004 UTC (20 years, 6 months ago) by ats
Branch: MAIN
Changes since 1.22: +1 -1 lines
Diff to previous 1.22
getch() returns int.

Revision 1.22 - (view) (annotate) - [select for diffs]
Wed Jun 2 16:06:48 2004 UTC (20 years, 6 months ago) by ats
Branch: MAIN
Changes since 1.21: +2 -0 lines
Diff to previous 1.21
Fix memory leak.

Revision 1.21 - (view) (annotate) - [select for diffs]
Fri Sep 26 21:22:43 2003 UTC (21 years, 3 months ago) by tdb
Branch: MAIN
CVS Tags: IDAR_1_2
Changes since 1.20: +1 -1 lines
Diff to previous 1.20
Update some old URL's etc.

Revision 1.20 - (view) (annotate) - [select for diffs]
Thu Aug 21 21:10:34 2003 UTC (21 years, 4 months ago) by tdb
Branch: MAIN
Changes since 1.19: +1 -0 lines
Diff to previous 1.19
Fix bug #7 using patch given by Adam Sampson.
Added include to compile on Linux.

Revision 1.19 - (view) (annotate) - [select for diffs]
Thu Aug 21 20:36:41 2003 UTC (21 years, 4 months ago) by tdb
Branch: MAIN
Changes since 1.18: +1 -0 lines
Diff to previous 1.18
Add a default option to the command line parsing. This does the same as
the -h flag and shows the usage. The intention is to catch unknown flags
and tell the user, rather than printing a warning and loading anyway.

Revision 1.18 - (view) (annotate) - [select for diffs]
Thu Aug 21 14:00:55 2003 UTC (21 years, 4 months ago) by tdb
Branch: MAIN
Changes since 1.17: +1 -1 lines
Diff to previous 1.17
Typo fix :-)

Revision 1.17 - (view) (annotate) - [select for diffs]
Thu Aug 21 13:51:19 2003 UTC (21 years, 4 months ago) by tdb
Branch: MAIN
Changes since 1.16: +56 -26 lines
Diff to previous 1.16
Tidy up of my previous commit to make the command line arguments optional.

- Made the default hostname 'i-scream'. Users could have this in their
  hosts file, or they might have a CNAME to their server.
- Added a usage function listing new command line arguments.
- Made the server name and port be options (-s and -p) instead of args.
- Changed the sort option from -s to -o (order).
- Made the host list an option (-l) instead of an argument.
- Added sort options for net and disk io.

This should be slightly tidier than before, and more useful.

Revision 1.16 - (view) (annotate) - [select for diffs]
Mon Jun 9 13:47:58 2003 UTC (21 years, 6 months ago) by tdb
Branch: MAIN
Changes since 1.15: +6 -6 lines
Diff to previous 1.15
Add option to build default hostname/port in at compile time. This makes
it easier for users to run where the sysadmin has preconfigured idar to
automatically connect. Pete might want to tidy this up a bit ;)

Revision 1.15 - (view) (annotate) - [select for diffs]
Thu Apr 10 12:31:19 2003 UTC (21 years, 8 months 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, 8 months 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, 8 months 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, 8 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, 8 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, 8 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, 8 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, 8 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, 8 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, 8 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, 8 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, 9 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, 9 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, 9 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, 9 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)

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