Changes between Version 2 and Version 3 of Internal/OpenFlow/OrbitSwitches/scripts
- Timestamp:
- May 30, 2012, 9:08:23 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Internal/OpenFlow/OrbitSwitches/scripts
v2 v3 1 1 = Miscellaneous scripts. = 2 2 Here you can find various hacky scripts made for various purposes, that may or may not be useful. 3 4 === pingmapper === 5 A 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 11 The 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. 12 The script forces the switch to populate its table by pinging the nonexistent address. The syntax is: 13 14 {{{ 15 ruby pingmapper.rb [MAX_X] [MAX_Y] 16 }}} 17 18 Where 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. 3 19 4 20 === gridmap === … … 36 52 quit 37 53 }}} 38 The functions assume underlying wires are there correctly, so it is not 100% accurate. 54 The 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.