Create new measurement from old measurment
Hi! Is there a simple way in the webinterface to start a new measurement identical to an old one? (just duplicate them with new start-stop settings, in my case I want to duplicate one-off measurements) Thanks Klaus
We don’t really have a means of a completely /copying/ a measurement, but we do allow for re-selection of probes used for a previous measurement. In other words: Using the UI * Go to Create a new measurement <https://atlas.ripe.net/measurements/form/> * Define the same parameters (packets, size, etc.) as your older measurement * Select “Reuse a set from an old measurement” * In the window that appears, type in the measurement id you wish to duplicate and then give the number of probes you want to use from that selection. To use all of them, you must give the total number of probes in that measurement. Using the API This is a lot easier, as you simply have to modify the |probes| value in your POST request. Say for example that your original measurement looked like this: | { "definitions": [ { "target": "example.com", "af": 6, "packets": 3, "size": 48, "description": "Ping measurement to example.com", "interval": 240, "resolve_on_probe": false, "type": "ping" } ], "probes": [ { "type": "area", "value": "WW", "requested": 50 } ], "is_oneoff": false } | Assuming that the old measurement had id |123456789|, The new one would be a near-copy save for the |probes| section: | { "definitions": [ { "target": "example.com", "af": 6, "packets": 3, "size": 48, "description": "Ping measurement to example.com", "interval": 240, "resolve_on_probe": false, "type": "ping" } ], "probes": [ { "type": "msm", "value": "123456789", "requested": 50 } ], "is_oneoff": false } | Note however that like every measurement you create, there’s no way to guarantee that every probe you request will be available. Especially for one-offs, if the probe is down or overly busy, such selected probe(s) won’t be allocated to your measurement.
One addendum to my explanation: we do have a ticket in our queue <http://roadmap.ripe.net/ripe-atlas/> to enable outright cloning of measurements, so this will happen in the future. For now though, the method I outlined here should handle what you need.
participants (2)
-
Daniel Quinn
-
Klaus Darilion