Changes between Version 2 and Version 3 of Internal/OpenFlow/OrbitSwitches/scripts


Ignore:
Timestamp:
May 30, 2012, 9:08:23 PM (12 years ago)
Author:
akoshibe
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/OpenFlow/OrbitSwitches/scripts

    v2 v3  
    11= Miscellaneous scripts. =
    22Here you can find various hacky scripts made for various purposes, that may or may not be useful.
     3
     4=== pingmapper ===
     5A Ruby script that uses SSH to log into each imaged node and
     6 
     7 1. sets the data plane interface address to 192.168.x.y, where the node is nodex-y,
     8 1. pings the arbitrary address 192.168.0.1
     9 1. fetches the HW address of each node
     10
     11The output of this script is a list of [x,y] : HWaddr pairs that can be compared with the MAC address table in a switch to determine which port a node lives on.
     12The script forces the switch to populate its table by pinging the nonexistent address. The syntax is:
     13
     14{{{
     15ruby pingmapper.rb [MAX_X] [MAX_Y]
     16}}}
     17
     18Where the script is run from a sandbox console and MAX_X and MAX_Y are the largest x and y for a node's ID.
    319
    420=== gridmap ===
     
    3652quit
    3753}}}
    38 The functions assume underlying wires are there correctly, so it is not 100% accurate.
     54The functions assume underlying wires are there correctly, so it is not 100% accurate. This is for hipshot guesstimates when you don't need exact locations and want them fast.