Technical article 105977

UUCP polling; uudemon.poll2 preferred over uudemon.poll.

OpenServer 5.0.0

Written · Last revised

Problem

The standard method for polling passive systems is somewhat
awkward.  It uses uudemon.poll and uudemon.hour/uudemon.day
to accomplish the polling.

Cause

The uusched(ADM) program queues work in the uucp spool directory. There is also an associated program called uudemon.poll (see uudemon(ADM) which controls polling but does not actually perform the poll. Instead it sets up a polling file (C.sysnxxxx) in the /usr/spool/uucp/<nodename> directory, where <nodename> would be the name of the machine to be polled.

In order to execute uudemon.poll you would need to set up an
entry in /usr/spool/cron/crontabs/root and enter the appropriate
dates and times.  When run, uudemon.poll analyzes /usr/lib/uucp/Poll
to find what sites you want to poll at this time and then sets up
the dummy C.sysnxxxx file.  It is then a uusched job (which is
run by uudemon.hour in cron) to observe the pending workfile and
run uucico to the polled site.  It is necessary to ensure that
uudemon.poll runs several minutes before uudemon.hour, to insure
the sites are polled on time.  On a heavily loaded machine, this
could potentially cause problems.

Solution

Because the above is a rather awkward method, SCO provides an alternate way to perform the same task, "uudemon.poll2".

Instead of looking in the /usr/lib/uucp/Poll file, uudemon.poll2 looks in the user-defined Poll.day and/or Poll.hour files to see which sites are to be polled, and then runs uucico directly.

To run uudemon.poll2, you would need to add an entry for
the daily daemon and an entry for the hourly daemon to the
/usr/spool/cron/crontabs/uucp crontabs file.  Example:
0 0 * * *  uudemon.poll2 -d   /* -d indicates daily daemon */
0 * * * *  uudemon.poll2      /* no flags => hourly daemon */
Note that the first field (minutes) is a 0, meaning at the top
of the hour.  If you wish to poll at a time other than the top
of the hour, put the number of minutes after the hour you want
in the first field.  Be cautioned once again not to make too
close to the top of the next hour.
The file format of /usr/lib/uucp/Poll.hour file:
nodename <tab> hour1 hour2 hour3 ...

The file format of /usr/lib/uucp/Poll.day (the days of the week are integers where Sunday is 0):

nodename <tab> day1 day2 day3 ...
Example of Poll.hour:
raven       2 6 10w

will poll "raven" at 2am, 6am, and 10am (the appended w will poll at 10am only if there is work to be done).

See also

SCO XENIX System V Operating System Installation and Maintenance Guide for more information on building a uucp network.

SCO System Administrator's Guide, the section talking about "Building a Remote Network with UUCP"

From the Xinuos technical article database, record 105977. Reproduced with permission. The original is at www.sco.com/ta/105977, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.