| | 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. |