Code Monkey home page Code Monkey logo

atlas_tools's Introduction

atlas_tools

This repository provides a collection of command line tools for the RIPE Atlas network. In particular, the tools allow you to:

  1. Create measurements.
  2. Parse JSON-formatted measurement results (experimental)
  3. Select Atlas probes based on their area.

Most of the tools are work-in-progress, so don't expect too much.

Creating measurements

Here's an example showing how you can fire off measurements from the command line. You will need an API key (denoted as API_KEY).

$ ./create_measurement.py -o dns -u www.example.org CA 1 API_KEY

This will create a one-off DNS measurement using the probe's resolver. The measurement will attempt to resolve www.example.org on a randomly chosen probe in Canada.

Parse JSON-formatted measurement results

Note that this tool is incomplete and experimental and you are better off using RIPE Atlas Sagan. Nevertheless, here's how you would do it:

$ ./parser.py MEASUREMENT.JSON

The tool is meant to provide line-based results which can be piped into tools such as grep.

Select Atlas probes based on their area

The distribution of Atlas probes is not uniform and several autonomous systems (AS) contain a large fraction of all Atlas probes. The tool probe_selector.py will randomly sample probes from the given 2-letter country code (or WW for world wide). The sampling is done on the AS level which means that there will be a maximum of one probe for each AS. The output is a list of probe IDs.

Here's how you can select 10 random probes in 10 distinct ASes in Italy:

$ ./probe_selector.py IT 10

Alternatives

Don't like atlas_tools? Luckily, there are a bunch of great alternatives such as RIPE Atlas Sagan for parsing results, ripe-atlas-community-contrib which provides various small tools, and RIPE Atlas Command Line Manager which provides a command line manager.

Contact

Contact: Philipp Winter [email protected]
OpenPGP fingerprint: B369 E7A2 18FE CEAD EB96 8C73 CF70 89E3 D7FD C0D0

atlas_tools's People

Contributors

collina avatar nullhypothesis avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.