Skip to content

Instantly share code, notes, and snippets.

@tracernz
Created March 16, 2018 08:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tracernz/d5467c050e2f779921458966628c25b4 to your computer and use it in GitHub Desktop.
Save tracernz/d5467c050e2f779921458966628c25b4 to your computer and use it in GitHub Desktop.
$ tail -n +1 ./tests/data/radwin_*
==> ./tests/data/radwin_5200-0150.json <==
{
"wireless": {
"discovery": {
"wireless_sensors": [
{
"sensor_deleted": "0",
"sensor_class": "rssi",
"sensor_index": "0",
"sensor_type": "radwin",
"sensor_descr": "RSSI",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "-150",
"sensor_prev": null,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": "1",
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.4458.1000.1.1.51.7.0\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "power",
"sensor_index": "0",
"sensor_type": "Radwin-Tx",
"sensor_descr": "Tx Power",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "3",
"sensor_prev": null,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": "1",
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.4458.1000.1.5.4.0\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "power",
"sensor_index": "0",
"sensor_type": "Radwin-Rx",
"sensor_descr": "Rx Power",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "-67",
"sensor_prev": null,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": "1",
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.4458.1000.1.5.9.1.0\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "distance",
"sensor_index": "0",
"sensor_type": "radwin",
"sensor_descr": "Link distance",
"sensor_divisor": "1000",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "0.3",
"sensor_prev": null,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": "1",
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.4458.1000.1.5.29.0\"]"
}
]
},
"poller": {
"wireless_sensors": [
{
"sensor_deleted": "0",
"sensor_class": "rssi",
"sensor_index": "0",
"sensor_type": "radwin",
"sensor_descr": "RSSI",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "-150",
"sensor_prev": "-150",
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": "1",
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.4458.1000.1.1.51.7.0\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "power",
"sensor_index": "0",
"sensor_type": "Radwin-Tx",
"sensor_descr": "Tx Power",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "3",
"sensor_prev": "3",
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": "1",
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.4458.1000.1.5.4.0\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "power",
"sensor_index": "0",
"sensor_type": "Radwin-Rx",
"sensor_descr": "Rx Power",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "-67",
"sensor_prev": "-67",
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": "1",
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.4458.1000.1.5.9.1.0\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "distance",
"sensor_index": "0",
"sensor_type": "radwin",
"sensor_descr": "Link distance",
"sensor_divisor": "1000",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "0.3",
"sensor_prev": "0.3",
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": "1",
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.4458.1000.1.5.29.0\"]"
}
]
}
}
}
==> ./tests/data/radwin_5550-0150.json <==
{
"wireless": {
"discovery": {
"wireless_sensors": [
{
"sensor_deleted": "0",
"sensor_class": "rssi",
"sensor_index": "0",
"sensor_type": "radwin",
"sensor_descr": "RSSI",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "-150",
"sensor_prev": null,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": "1",
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.4458.1000.1.1.51.7.0\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "power",
"sensor_index": "0",
"sensor_type": "Radwin-Tx",
"sensor_descr": "Tx Power",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "15",
"sensor_prev": null,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": "1",
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.4458.1000.1.5.4.0\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "power",
"sensor_index": "0",
"sensor_type": "Radwin-Rx",
"sensor_descr": "Rx Power",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "-49",
"sensor_prev": null,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": "1",
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.4458.1000.1.5.9.1.0\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "distance",
"sensor_index": "0",
"sensor_type": "radwin",
"sensor_descr": "Link distance",
"sensor_divisor": "1000",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "0.15",
"sensor_prev": null,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": "1",
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.4458.1000.1.5.29.0\"]"
}
]
},
"poller": {
"wireless_sensors": [
{
"sensor_deleted": "0",
"sensor_class": "rssi",
"sensor_index": "0",
"sensor_type": "radwin",
"sensor_descr": "RSSI",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "-150",
"sensor_prev": "-150",
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": "1",
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.4458.1000.1.1.51.7.0\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "power",
"sensor_index": "0",
"sensor_type": "Radwin-Tx",
"sensor_descr": "Tx Power",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "15",
"sensor_prev": "15",
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": "1",
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.4458.1000.1.5.4.0\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "power",
"sensor_index": "0",
"sensor_type": "Radwin-Rx",
"sensor_descr": "Rx Power",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "-49",
"sensor_prev": "-49",
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": "1",
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.4458.1000.1.5.9.1.0\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "distance",
"sensor_index": "0",
"sensor_type": "radwin",
"sensor_descr": "Link distance",
"sensor_divisor": "1000",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "0.15",
"sensor_prev": "0.15",
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": "1",
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.4458.1000.1.5.29.0\"]"
}
]
}
}
}
==> ./tests/data/radwin_5550-0h50.json <==
{
"wireless": {
"discovery": {
"wireless_sensors": [
{
"sensor_deleted": "0",
"sensor_class": "rssi",
"sensor_index": "0",
"sensor_type": "radwin",
"sensor_descr": "RSSI",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "-150",
"sensor_prev": null,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": "1",
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.4458.1000.1.1.51.7.0\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "power",
"sensor_index": "0",
"sensor_type": "Radwin-Tx",
"sensor_descr": "Tx Power",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "-1",
"sensor_prev": null,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": "1",
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.4458.1000.1.5.4.0\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "power",
"sensor_index": "0",
"sensor_type": "Radwin-Rx",
"sensor_descr": "Rx Power",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "-60",
"sensor_prev": null,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": "1",
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.4458.1000.1.5.9.1.0\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "distance",
"sensor_index": "0",
"sensor_type": "radwin",
"sensor_descr": "Link distance",
"sensor_divisor": "1000",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "0.15",
"sensor_prev": null,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": "1",
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.4458.1000.1.5.29.0\"]"
}
]
},
"poller": {
"wireless_sensors": [
{
"sensor_deleted": "0",
"sensor_class": "rssi",
"sensor_index": "0",
"sensor_type": "radwin",
"sensor_descr": "RSSI",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "-150",
"sensor_prev": "-150",
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": "1",
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.4458.1000.1.1.51.7.0\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "power",
"sensor_index": "0",
"sensor_type": "Radwin-Tx",
"sensor_descr": "Tx Power",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "-1",
"sensor_prev": "-1",
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": "1",
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.4458.1000.1.5.4.0\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "power",
"sensor_index": "0",
"sensor_type": "Radwin-Rx",
"sensor_descr": "Rx Power",
"sensor_divisor": "1",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "-60",
"sensor_prev": "-60",
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": "1",
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.4458.1000.1.5.9.1.0\"]"
},
{
"sensor_deleted": "0",
"sensor_class": "distance",
"sensor_index": "0",
"sensor_type": "radwin",
"sensor_descr": "Link distance",
"sensor_divisor": "1000",
"sensor_multiplier": "1",
"sensor_aggregator": "sum",
"sensor_current": "0.15",
"sensor_prev": "0.15",
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": "1",
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_oids": "[\".1.3.6.1.4.1.4458.1000.1.5.29.0\"]"
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment