1. 12 Jun, 2014 1 commit
    • Kirk Webb's avatar
      Update the use of realpath across all perl scripts · 3f167217
      Kirk Webb authored
      Change to use the realpath function in the 'Cwd' module instead of
      calling realpath via the shell.  The shell command varies in its
      reaction to a missing final path component.  On some platforms (Linux,
      FBSD10+) realpath reports an error if the final component doesn't exist
      on the filesystem.  On others (FBSD < 10), it does not report an error.
      
      The perl function from 'Cwd' emulates the same behavior as FBSD prior to
      version 10, which is the behavior the scripts expect.
      
      From here on out, instead of using `realpath`, do the following:
      
      use Cwd qw(realpath);
      ..
      ..
      my $realpath = realpath($somepath);
      3f167217
  2. 11 Jun, 2014 5 commits
  3. 10 Jun, 2014 1 commit
  4. 09 Jun, 2014 2 commits
  5. 06 Jun, 2014 9 commits
    • Leigh Stoller's avatar
      Lessons learned from my first attempt to use this to debug a problem · 508bd9e5
      Leigh Stoller authored
      for Nick! The output format needed some, uh, tweaks.
      508bd9e5
    • Leigh Stoller's avatar
      Add uky2 · e975057d
      Leigh Stoller authored
      e975057d
    • Leigh Stoller's avatar
      Updates. · 5946216b
      Leigh Stoller authored
      5946216b
    • Leigh Stoller's avatar
      Comment out the range. · 3d5a3797
      Leigh Stoller authored
      3d5a3797
    • Leigh Stoller's avatar
      New script, analogous to Mike's node_traffic script. Basically, it · b885ce89
      Leigh Stoller authored
      was driving me nuts that we do not have an easy way to see what is
      going on *inside* the fabric.
      
      So this one reports on traffic across trunk links and interconnects
      out of the fabric.  Basic operation is pretty simple:
      
      	Usage: switch_traffic [-rs] [-i seconds] [switch[:switch] ...]
      	Reports traffic across trunk links and interconnects
      	-h          This message
      	-i seconds  Show stats over a <seconds>-period interval
      
      So with no arguments will give portstats style output of all trunk
      links and interconnects in the database. Trunk links are aggregate
      numbers of all of the trunk wires that connect two switches.
      
      The -i option gives traffic over an interval, which is much more
      useful than the raw packet numbers, since on most of our switches
      those numbers have probably rolled over a few times.
      
      You can optionally specify specific switches and interconnects on the
      command line. For example:
      
      boss> wap switch_traffic -i 10 cisco3 ion
      Trunk                    InOctets      InUpkts   InNUpkts   ...
      ----------------------------------------------------------- ...
      cisco3:cisco10                128            0          1   ...
      cisco3:cisco8                2681            7          4   ...
      cisco3:cisco1                4493           25          7   ...
      cisco3:cisco9                 192            0          1   ...
      cisco3:cisco4                 128            0          2   ...
      pg-atla:ion                     0            0          0   ...
      pg-hous:ion                     0            0          0   ...
      pg-losa:ion                     0            0          0   ...
      pg-salt:ion                  2952            0         42   ...
      pg-wash:ion                     0            0          0   ...
      
      NOTE that the above output is abbreviated so it does not wrap in the
      git log, but you get the idea.
      
      Or you can specify a specific trunk link:
      
      	boss> wap switch_traffic -i 10 cisco3:cisco8
      
      Okay this is all pretty basic and eventually it would be nice to take
      these numbers and feed them into mrtg or rrdtool so we can view pretty
      graphs, but this as far as I can take it for now.
      
      Maybe in the short term it would be enough to record the numbers every
      5 minutes or so and put the results into a file.
      b885ce89
    • Leigh Stoller's avatar
    • Leigh Stoller's avatar
      Add current_speed(). · 6787124e
      Leigh Stoller authored
      6787124e
    • Leigh Stoller's avatar
      Add LookupByType(). · 78f183ff
      Leigh Stoller authored
      78f183ff
    • Leigh Stoller's avatar
      a49ace41
  6. 04 Jun, 2014 11 commits
  7. 03 Jun, 2014 1 commit
  8. 02 Jun, 2014 9 commits
  9. 30 May, 2014 1 commit
    • Mike Hibler's avatar
      Change sshtb to allow "-host $BOSSNODE". · f4d4dd0e
      Mike Hibler authored
      Needed when boss is the tip server (i.e., for IPMI consoles).
      
      Somehow this vaguely feels like a potential flaw. Prior to this,
      a misconfigured sshtb command that specified boss would fail.
      Now it will succeed and run in the one place it can cause the
      most damage.
      
      Also, fix a couple of nits in the console code.
      f4d4dd0e