1. 24 Jun, 2002 1 commit
  2. 21 Jun, 2002 1 commit
  3. 20 Jun, 2002 1 commit
    • Leigh Stoller's avatar
      Change query; do not ping remote, virtual, or those stinky fishlike · a9a6b32d
      Leigh Stoller authored
      nodes.
      Add handler for remote nodes, which now report keepalive once a
      minute. Simply look at the timestamp and change status from up to
      down if it has not responded in more than 90 seconds. This is kinda
      crude, and mostly for the benefit of the web page. The wan solver
      will use the timestamps directly.
      a9a6b32d
  4. 18 Jun, 2002 3 commits
  5. 16 Jun, 2002 1 commit
  6. 13 Jun, 2002 2 commits
  7. 11 Jun, 2002 5 commits
  8. 10 Jun, 2002 1 commit
  9. 05 Jun, 2002 3 commits
    • Robert Ricci's avatar
      Fix dumb mistake left over from debugging. · a0682e49
      Robert Ricci authored
      a0682e49
    • Robert Ricci's avatar
      Two changes: · 5a4b0497
      Robert Ricci authored
      First, remove references to the IP columns, since those are now gone.
      
      Second, we now support a "magic node" that is assumed to be equivalent
      to the TBDB_WIDEAREA_LOCALNODE (ususally boss). Updates for the magic
      node are also applied to the localnode. Right now, this magic node is
      hardcoded in this script, on the assumption that no one but us will
      ever use this script. But, we could move it to a configure variable or
      even the DB if we need to.
      5a4b0497
    • Leigh Stoller's avatar
      Changes to sshtb. Remove sshremote, and convert sshtb into a perl · 231fc2b1
      Leigh Stoller authored
      script that checks the database to see if local or remote. The problem
      with this is that the ssh syntax makes it hard to determine the host
      name by inspection. Would need to parse all the ssh args (bad idea),
      ot work backwards and try to figure out the difference between the
      command (which is not a string but a sequence of args) and the host
      and the preceeding ssh args. Hell with that! Changed sshtb to require
      a specific -host argument. Read the args and look for it. Error out of
      not found, to catch improper usage.
      
      The moral of this update: "sshtb [ssh args] -host <host> [more args ...]
      231fc2b1
  10. 04 Jun, 2002 1 commit
  11. 31 May, 2002 2 commits
    • Mac Newbold's avatar
      Big round of changes. It is now basically done and ready for widespread use. · 3c45d681
      Mac Newbold authored
       - Make configurable options specifiable on the command line (idle
         time, packets/hour, "freshness" time).
       - Check how fresh our data is, and mark it as stale if it is old.
       - Add display options. Default is show only inactive, swappable, non-stale.
         Use -s flag to show stale expts too, and -u flag to show unswappable
         ones. (-s and -u display whether they're active or not)
       - Changes in the database optimized the queries for me, so instead of
         taking 10-15 seconds to run, it now takes 1.
      See usage (idlecheck -h) for more info.
      We're now ready to put this in a cron job and in idle view of the expt
      listing web page.
      3c45d681
    • Robert Ricci's avatar
      Added a new function, TBWideareaNodeID . Given a physical node ID, · 68607a93
      Robert Ricci authored
      returns the node ID that should be used in the widearea_* tables.
      This is mainly so that we don't have to hardcode 'boss' as the local
      representative in too many places (all local node are assumed to
      have the same network characteristics as boss.)
      68607a93
  12. 30 May, 2002 1 commit
  13. 29 May, 2002 1 commit
    • Mac Newbold's avatar
      First useful version of idlecheck. · b7b88aa5
      Mac Newbold authored
      Current settings:
       - 4 packets/hour avg over last 24 hours (100pkts) is activity
       - use of a tty in last 24 hours is activity.
       - Latest report from slothd must be within last 120 minutes.
      
      Caveats:
       - Shows all expts that are not known to be active. This includes
         expts that we don't have any information on. I plan to fix this so that
         expts that are reporting are very different from those without reports.
       - Because of the above, we're quite conservative in marking nodes
         active. When the above gets fixed, this will be better.
       - Displays unswappability. We may in some cases still want to harass
         owners of unswappable expts, since they can mark it arbitrarily.
       - Currently takes ~10 seconds to run. I plan to run the queries
         through explain and try to optimize them a little better, or even
         simplify where possible.
      
      The output of this script is what will eventually get used in idle
      view of the web page. Unless optimization makes this script run in
      less than 1 second, we'll most likely need some sort of caching of
      these results before being able to use them in the web page. Perhaps
      stashing them in the db with the time the idleness was detected, so it
      is easy to get to.
      b7b88aa5
  14. 28 May, 2002 2 commits
  15. 24 May, 2002 1 commit
  16. 17 May, 2002 1 commit
  17. 16 May, 2002 1 commit
    • Robert Ricci's avatar
      New script: grabron · 8bc28a0b
      Robert Ricci authored
      This script grabs updated latency from Dave Andersen't database
      of RON information, and sticks it into the widearea_recent table.
      8bc28a0b
  18. 14 May, 2002 2 commits
  19. 13 May, 2002 2 commits
  20. 08 May, 2002 1 commit
  21. 06 May, 2002 1 commit
  22. 22 Apr, 2002 3 commits
  23. 17 Apr, 2002 1 commit
    • Robert Ricci's avatar
      Moved EventSend calls to the TBSetNodeEventState() function. This has · 15c13c32
      Robert Ricci authored
      two benefits: (1) More general (2) Regains ability to run without the
      event system. Previously, since programs that watned to set node state
      had to 'use event', this broke our ability to run without the event
      system. Now, we can do a check in libdb for the event system, and not
      use it if EVENTSYS is not set. If not, we update state in the database
      directly rather than sending an event.
      
      Also added equivalent calls for node operational mode, as well as new
      constants for both state and mode.
      
      Converted power and node_reboot to use this new scheme.
      15c13c32
  24. 15 Apr, 2002 1 commit
  25. 08 Apr, 2002 1 commit
    • Leigh Stoller's avatar
      Add generation of per-project email lists, as per Dave's request. The · 8cac9c47
      Leigh Stoller authored
      lists are stored on users:/etc/mail/lists. For example, you can send
      email to ron-users@users.emulab.net. An alias entry is added (and
      newaliases run) if there is no alias in /etc/mail/aliases (by the proxy
      of course). There are two new options to genelists (on boss):
      
      	"Use the -a option to generate lists for all projects.\n".
      	"Use the -n option to generate lists for a new user.\n";
      
      With no options, generate the all users and active users lists
      (renamed to emulab-users and emulab-active-users). With the -n option
      (used by mkacct) regen the lists for all the projects the user is a
      member of.
      
      It would be nice to archive the email, but that requires a publically
      readable directory and a u+S archive file; the mailer daemon runs as
      user daemon, and the project tree is 770, so it cannot write the
      archive file. At some point we will have to go to majordomo or spam
      filtering, when the first list is spamm'ed. Sigh.
      8cac9c47