ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/host/ihost-perl/ihost.pl
Revision 1.34 - (view) (annotate) - [select for diffs]
Thu Mar 22 08:53:59 2001 UTC (23 years, 6 months ago) by pjm2
Branch: MAIN
CVS Tags: PROJECT_COMPLETION
Changes since 1.33: +8 -3 lines
Diff to previous 1.33
If, during a heartbeat, the host receives an ERROR response from sending
the last_modified time of its configuration, the host is expected to
reconfigure itself.  If the configuration changes many times in a short
period of time, many heartbeats may be lost if they bail out as soon as
the ERROR response is received.  This has now been changed so that a
heartbeat is completed in its entirety before the host attempts to
reconfigure with the filter manager.

Revision 1.33 - (view) (annotate) - [select for diffs]
Tue Mar 20 12:58:22 2001 UTC (23 years, 6 months ago) by pjm2
Branch: MAIN
Changes since 1.32: +4 -3 lines
Diff to previous 1.32
Increased the TCP config wait time between retries to one minute.
Fixed sparodic errors with obtaining the I.P. address that caused a host
to go all wibbly after a few days.

Revision 1.32 - (view) (annotate) - [select for diffs]
Fri Mar 16 18:25:59 2001 UTC (23 years, 6 months ago) by pjm2
Branch: MAIN
Changes since 1.31: +45 -27 lines
Diff to previous 1.31
Lots of changes in the TCP configuration and TCP heartbeats.
The aim of this is to make the ihost much more resilient when
dealing with broken servers.

Revision 1.31 - (view) (annotate) - [select for diffs]
Thu Mar 15 09:46:18 2001 UTC (23 years, 6 months ago) by pjm2
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30
Just changed the expression within the connection while loop.

Revision 1.30 - (view) (annotate) - [select for diffs]
Thu Mar 15 09:44:08 2001 UTC (23 years, 6 months ago) by pjm2
Branch: MAIN
Changes since 1.29: +1 -2 lines
Diff to previous 1.29
If we cannot connect to the filter manager, then we shall retry without
closing the socket, as it won't be open to close ;)

Revision 1.29 - (view) (annotate) - [select for diffs]
Wed Mar 14 18:49:00 2001 UTC (23 years, 6 months ago) by pjm2
Branch: MAIN
Changes since 1.28: +2 -2 lines
Diff to previous 1.28
Retry time is now ten minutes (wave of arm)

Revision 1.28 - (view) (annotate) - [select for diffs]
Wed Mar 14 18:48:33 2001 UTC (23 years, 6 months ago) by pjm2
Branch: MAIN
Changes since 1.27: +129 -97 lines
Diff to previous 1.27
Added retry waits to the configuration process.

Revision 1.27 - (view) (annotate) - [select for diffs]
Wed Mar 14 18:00:16 2001 UTC (23 years, 6 months ago) by pjm2
Branch: MAIN
Changes since 1.26: +8 -1 lines
Diff to previous 1.26
Added support for reconfiguring upon any type of heartbeat error.

Revision 1.26 - (view) (annotate) - [select for diffs]
Mon Mar 12 23:51:15 2001 UTC (23 years, 6 months ago) by tdb
Branch: MAIN
Changes since 1.25: +3 -3 lines
Diff to previous 1.25
Changed the path of the PID file... it didn't work so well when the ihost
directory is on a shared file store :)

Revision 1.25 - (view) (annotate) - [select for diffs]
Mon Mar 12 23:20:43 2001 UTC (23 years, 6 months ago) by tdb
Branch: MAIN
Changes since 1.24: +21 -1 lines
Diff to previous 1.24
ihost now writes it's PID to a file, ihost.pid. This is so the ihostchk.sh
script can verify if it's still running.

Revision 1.24 - (view) (annotate) - [select for diffs]
Tue Mar 6 08:38:42 2001 UTC (23 years, 6 months ago) by pjm2
Branch: MAIN
Changes since 1.23: +9 -1 lines
Diff to previous 1.23
The host now acts sensibly when the server either does not return anything
upon sending FILTER or if it returns a filter address that cannot be
correctly split into a hostname and pair of ports.

Revision 1.23 - (view) (annotate) - [select for diffs]
Thu Mar 1 18:53:42 2001 UTC (23 years, 6 months ago) by pjm2
Branch: MAIN
Changes since 1.22: +11 -6 lines
Diff to previous 1.22
Changed the way in which the host behaves when the server goes down
mid-heartbeat.  It shouldn't complain; it will just silently withdraw.

Revision 1.22 - (view) (annotate) - [select for diffs]
Thu Mar 1 10:49:27 2001 UTC (23 years, 6 months ago) by pjm2
Branch: MAIN
Changes since 1.21: +7 -7 lines
Diff to previous 1.21
Fixed the heartbeat resilience (is that spelt right? ;-)
Hosts should no longer die when (or rather, if) the server disappears.
Heartbeats will just silently fail instead.

Revision 1.21 - (view) (annotate) - [select for diffs]
Wed Feb 28 12:25:48 2001 UTC (23 years, 6 months ago) by pjm2
Branch: MAIN
Changes since 1.20: +4 -4 lines
Diff to previous 1.20
Changes made to ensure that the ihost keeps running if it is unable to
open a socket to the filter for performing a heartbeat.

Revision 1.20 - (view) (annotate) - [select for diffs]
Wed Feb 28 10:53:13 2001 UTC (23 years, 6 months ago) by tdb
Branch: MAIN
Changes since 1.19: +2 -4 lines
Diff to previous 1.19
Eeeks. Left some debug info in, how very unprofessional of me :)

Revision 1.19 - (view) (annotate) - [select for diffs]
Wed Feb 28 10:52:16 2001 UTC (23 years, 6 months ago) by tdb
Branch: MAIN
Changes since 1.18: +5 -4 lines
Diff to previous 1.18
Although we were getting the FQDN fine, we weren't actually using it :)

Revision 1.18 - (view) (annotate) - [select for diffs]
Tue Feb 27 19:26:51 2001 UTC (23 years, 6 months ago) by pjm2
Branch: MAIN
Changes since 1.17: +4 -22 lines
Diff to previous 1.17
Removed the now unneccessary code to work out the domain name, etc.
The FQDN is provided by the server.

Revision 1.17 - (view) (annotate) - [select for diffs]
Tue Feb 27 19:14:26 2001 UTC (23 years, 6 months ago) by pjm2
Branch: MAIN
Changes since 1.16: +10 -2 lines
Diff to previous 1.16
Updated to comply with the new FilterManger configuration protocol.
Namely, the ihost now also sends "FQDN" to the server to request its fully
qualified domain name.  This simplifies the task of writing hosts as it no
longer means that the host has to work out its own machine name (which is
sometimes a non-trivial task on certain platforms)

Revision 1.16 - (view) (annotate) - [select for diffs]
Tue Feb 13 12:28:50 2001 UTC (23 years, 7 months ago) by tdb
Branch: MAIN
Changes since 1.15: +18 -4 lines
Diff to previous 1.15
It appears /etc/resolv.conf is different on some hosts, so we have to do some
careful checks.

Revision 1.15 - (view) (annotate) - [select for diffs]
Mon Feb 5 17:38:38 2001 UTC (23 years, 7 months ago) by pjm2
Branch: MAIN
Changes since 1.14: +8 -8 lines
Diff to previous 1.14
The building of disk information has been reworked to provide its
information as attribute values, as these only occur at most once, thus
reducing overall packet size.

Revision 1.14 - (view) (annotate) - [select for diffs]
Mon Feb 5 17:20:07 2001 UTC (23 years, 7 months ago) by pjm2
Branch: MAIN
Changes since 1.13: +1 -3 lines
Diff to previous 1.13
Removed the printing of the entire $disk_info string.

Revision 1.13 - (view) (annotate) - [select for diffs]
Mon Feb 5 17:14:41 2001 UTC (23 years, 7 months ago) by pjm2
Branch: MAIN
Changes since 1.12: +7 -5 lines
Diff to previous 1.12
Now using the correct names for packet values when obtaining them from the
packet hash.

Revision 1.12 - (view) (annotate) - [select for diffs]
Thu Feb 1 09:24:54 2001 UTC (23 years, 7 months ago) by pjm2
Branch: MAIN
Changes since 1.11: +37 -3 lines
Diff to previous 1.11
Tidied up the code a little, added explicit returns in the subroutines, a
couple more comments where it was deemed necessary.

Revision 1.11 - (view) (annotate) - [select for diffs]
Thu Feb 1 09:10:52 2001 UTC (23 years, 7 months ago) by pjm2
Branch: MAIN
Changes since 1.10: +14 -8 lines
Diff to previous 1.10
If the server 'disappears', then the ihost host will carry on running
until it is once again able to deliver TCP heartbeats.

Revision 1.10 - (view) (annotate) - [select for diffs]
Thu Feb 1 03:17:32 2001 UTC (23 years, 7 months ago) by tdb
Branch: MAIN
Changes since 1.9: +2 -1 lines
Diff to previous 1.9
Added sending of the uptime value.

Revision 1.9 - (view) (annotate) - [select for diffs]
Mon Jan 29 16:51:50 2001 UTC (23 years, 7 months ago) by pjm2
Branch: MAIN
Changes since 1.8: +16 -6 lines
Diff to previous 1.8
Improved the main loop.

Revision 1.8 - (view) (annotate) - [select for diffs]
Mon Jan 29 09:19:16 2001 UTC (23 years, 7 months ago) by pjm2
Branch: MAIN
Changes since 1.7: +3 -4 lines
Diff to previous 1.7
Fixed problem of domain name not being specified on the first line of the
cat'ed file.

Revision 1.7 - (view) (annotate) - [select for diffs]
Mon Jan 29 09:04:18 2001 UTC (23 years, 7 months ago) by pjm2
Branch: MAIN
Changes since 1.6: +5 -4 lines
Diff to previous 1.6
Fixed a few minor print statements.
Time is now expressed in milliseconds.
The regexp for returning the machine name has been altered.

Revision 1.6 - (view) (annotate) - [select for diffs]
Fri Jan 26 17:47:18 2001 UTC (23 years, 7 months ago) by pjm2
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5
Changed the path of perl.

Revision 1.5 - (view) (annotate) - [select for diffs]
Fri Jan 26 17:41:48 2001 UTC (23 years, 7 months ago) by pjm2
Branch: MAIN
Changes since 1.4: +1 -2 lines
Diff to previous 1.4
Machine hostname is no longer printed out.

Revision 1.4 - (view) (annotate) - [select for diffs]
Fri Jan 26 17:38:50 2001 UTC (23 years, 7 months ago) by pjm2
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3
And again...

Revision 1.3 - (view) (annotate) - [select for diffs]
Fri Jan 26 17:32:32 2001 UTC (23 years, 7 months ago) by pjm2
Branch: MAIN
Changes since 1.2: +3 -2 lines
Diff to previous 1.2
Corrected the regexp for hostname again.

Revision 1.2 - (view) (annotate) - [select for diffs]
Fri Jan 26 17:26:11 2001 UTC (23 years, 7 months ago) by pjm2
Branch: MAIN
Changes since 1.1: +3 -3 lines
Diff to previous 1.1
Modified the regular expression to return the hostname.

Revision 1.1 - (view) (annotate) - [select for diffs]
Fri Jan 26 17:09:29 2001 UTC (23 years, 7 months ago) by pjm2
Branch: MAIN
The first working version of the solely perl-based host.
Oh my word this is spangly.

Convenience Links

Links to HEAD: (view) (annotate) Links to PROJECT_COMPLETION: (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