| 1 | #Copyright (c) 2011 Polytechnic of New York University
|
|---|
| 2 | #
|
|---|
| 3 | # Permission is hereby granted, free of charge, to any person obtaining a copy
|
|---|
| 4 | # of this software and associated documentation files (the "Software"), to deal
|
|---|
| 5 | # in the Software without restriction, including without limitation the rights
|
|---|
| 6 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell# copies of the Software, and to permit persons to whom the Software is
|
|---|
| 7 | # furnished to do so, subject to the following conditions:
|
|---|
| 8 | #
|
|---|
| 9 | # The above copyright notice and this permission notice shall be included in
|
|---|
| 10 | # all copies or substantial portions of the Software.
|
|---|
| 11 | #
|
|---|
| 12 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|---|
| 13 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|---|
| 14 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|---|
| 15 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|---|
| 16 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|---|
| 17 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|---|
| 18 | # THE SOFTWARE.
|
|---|
| 19 |
|
|---|
| 20 | # Specifically, the contents of "wimaxcu_app.rb" was copied into the first application below.
|
|---|
| 21 |
|
|---|
| 22 | defApplication('wimaxcu_app', 'wimaxcu') do |app|
|
|---|
| 23 | app.path = "/usr/bin/wmxstat"
|
|---|
| 24 | app.shortDescription = "Wrapper around 'wimaxcu status link'"
|
|---|
| 25 | app.description = <<TEXT
|
|---|
| 26 | This is a wrapper around the wimaxcu scan command used.
|
|---|
| 27 | This application is using OML4R
|
|---|
| 28 | TEXT
|
|---|
| 29 |
|
|---|
| 30 | #The Measurement Points for this application
|
|---|
| 31 | app.defMeasurement('status_link') do |m|
|
|---|
| 32 | m.defMetric('freq', :long)
|
|---|
| 33 | m.defMetric('signal', :string)
|
|---|
| 34 | m.defMetric('rssi', :long)
|
|---|
| 35 | m.defMetric('cinr', :long)
|
|---|
| 36 | end
|
|---|
| 37 | end
|
|---|