| 86 | {{{ |
| 87 | node.addApplication("test:app:iperf") do |app| |
| 88 | app.setProperty('udp', true) |
| 89 | app.setProperty('server', true) |
| 90 | app.setProperty('interval', "1") |
| 91 | app.setProperty('bind', "10.41.255.255") |
| 92 | app.measure('UDP_Rich_Info', :samples =>1) |
| 93 | end |
| 94 | }}} |
| 95 | |
| 96 | * As before, this application is contained in a subdirectory accessed through ''/test/app/''. |
| 97 | |
| 98 | This adds the ''iperf'' application functionality to the group. ''iperf'' is an application which measures connectivity by sending data packets between groups. |
| 99 | |
| 100 | ''setProperty'' is fairly self-explanatory. It simply configures individual parameters germane to the operation of iperf. |
| 101 | |
| 102 | Here, ''app.measure'' is interesting because it is only one of the possible measurements that can be taken by the iperf app. For the others, see the ''iperf.rb'' code. |
| 103 | |
| 104 | {{{ |
| 105 | node.exec('ifconfig', ['wmx0 10.41.14.1 netmask 255.255.0.0 up']) |
| 106 | }}} |
| 107 | |
| 108 | ''node.exec'' launches a program from the terminal. Specifically, this execution launches ifconfig and configure the WiMAX card manually. This is a useful demonstration of how to 'force' certain behavior from the nodes. |