tutorial: using ripestat - ripe network coordination centre · 2018-08-17 · ripe ripestat, menog...

34
Tutorial: Using RIPEstat MENOG 13 Christian Teuschel

Upload: others

Post on 21-Jun-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data

TutorialUsing RIPEstatMENOG 13

Christian Teuschel

RIPE RIPEstat MENOG 13

Recap From the RIPEstat Presentation

bull Information system for Internet number resources

bull Data_ Routing data

- Collected by RIS httprisripenet_ Registration data (whois)

_ RIPE Database amp other RIR databases_ MaxMindrsquos geolocation data_ Blacklist data _ And many more httpsstatripenetdata-sources

2

RIPE RIPEstat MENOG 13

Three Interfaces of RIPEstat

3

httpsstatripenetdatarouting-statusdatajsonresource=AS3333

RIPEstat Web Interface

RIPEstat Widget API

RIPEstat Data API RIPEstat Text

RIPE RIPEstat MENOG 13

RIPEstat Web Interfacebull Finding Information on RIPEstat

4

Search input

Links to most used features

RIPEstat related articles on

RIPE Labs

Recent new features

RIPE RIPEstat MENOG 13

RIPEstat Web Interfacebull Information structure on RIPEstat

5

bull FAQbull Data Sourcesbull Widget Listbull Top Queriesbull Feedback

bull Interfaces amp APIsbull Demosbull Roadmapbull Changelog

bull Notable Network Eventsbull Compare Resultsbull Looking For Abuse Informationbull Global Internet Statistics

RIPE RIPEstat MENOG 13

1 Querying for a Resource (Web Interface)

6

Search box

Your ASN amp network prefix Sample resources

Example Enter ldquoAS3333rdquo in the search box

RIPE RIPEstat MENOG 13

1 Querying for a Resource (Web Interface)

Result page

7

Search box

Widgets grouped into thematic tabs Widgets display

different types of information

RIPE RIPEstat MENOG 13

1 Querying for a Resource (Web Interface) Tasks

_ What network announces 140785090_ Is 192342 routed_ In which country is 9122942023 used_ What is its corresponding INETNUM object_ What widget provides real-time routing status_ By what percent did the number of prefixes announced by Kuwait increase over the last two years

_ How would you share interesting network events with a colleague

8

RIPE RIPEstat MENOG 13

2 MyViewsCreate custom views

9

bull Click theldquoMyViewrdquo Button

bull Drag and drop a widget onto the ldquoMyViewrdquo button

RIPE RIPEstat MENOG 13

2 MyViews

10

Newly created MyView

MyViews are only visible to you An option to share your views will be available soon

RIPE RIPEstat MENOG 13

2 MyViewsCustomise MyViews

11

bull Renamebull Re-orderbull Control visibilitybull Remove

Re-order widgets as you like

RIPE RIPEstat MENOG 13

2 MyViews Tasks

_ Create a RIPE Access account (if you donrsquot already have one)_ Create a MyView for a prefix containing the following widgets

_ Routing Status_ Looking Glass_ Routing History

_ Create another MyView with at least two widgets and give it a meaningful name

12

RIPE RIPEstat MENOG 13

Create SSO AccountTasks

_ Go to the ldquoLoginrdquo page_ ldquoclick here to create onerdquo

13

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)bull Compare results in different widgets

14

Go to ldquoUse Casesrdquo gt ldquoCompare Resultsrdquo

Select a widget

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)bull Compare results in different widgets

15

Enter a resourcebull Select the ldquoPrefix Size Distributionrdquo widgetbull Enter ldquoAS1205rdquo

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)In-widget comparison

16

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)Tasks

_ Compare the number of announced prefixes for two networks over the past two years using the widget comparison page

_ How does the Internet in Kuwait compare to the UK Use in-widget comparison

17

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder

18

Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo

In-depth information about abuse

Enter the IP address

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

19

Email contact to report abuse to

Rating of the contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

20

Details about the resource and abuse contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTasks

_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion

What can you do in these cases_ No abuse contact found_ No response on an abuse report

21

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated

and highly-interactive manner

bull Go to httpsstatripenetwidgetbgplay

22

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

23

Interactive graph visualisation

Control timeline

BGP event ASN orASN path details

Selection timeline

Control panel - Covered time period- RRC selection

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

24

Examples

- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlayTasks

_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network

25

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site Embedding widgets

_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site

_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api

26

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site

27

Prefix Count widget

AS Path Length widget

This ISP embedded widgets on its page

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site (Task)Tasks

_ Create a simple dashboard page to monitor your network_ Create a simple HTML page

_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml

_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo

28

RIPE RIPEstat MENOG 13

7 RIPEstat Data API Using raw data output

_ What is the conceptThe RIPEstat Data API provides the lowest level of access to data This data can be fed into custom applications or just used for scripting

_ RIPEstat Widget API documentation httpsstatripenetdocsdata_api

29

RIPE RIPEstat MENOG 13

7 RIPEstat Data API (Task)Tasks

_ Use your browser to retrieve all announced prefixes for the AS6412_ A simple check on your resource if it is seen on the Internet

_ Create a simple script using resource-overview or routing-status

30

RIPE RIPEstat MENOG 13

8 RIPE AtlasCreating a user-defined measurement

_ httpsatlasripenet

31

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API

_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)

_ Result codes for a check show the state

32

State Result Code

Ok

Warning

Error

0

1

2

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)Example of a Python based check

33

if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))

if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message

Page 2: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data

RIPE RIPEstat MENOG 13

Recap From the RIPEstat Presentation

bull Information system for Internet number resources

bull Data_ Routing data

- Collected by RIS httprisripenet_ Registration data (whois)

_ RIPE Database amp other RIR databases_ MaxMindrsquos geolocation data_ Blacklist data _ And many more httpsstatripenetdata-sources

2

RIPE RIPEstat MENOG 13

Three Interfaces of RIPEstat

3

httpsstatripenetdatarouting-statusdatajsonresource=AS3333

RIPEstat Web Interface

RIPEstat Widget API

RIPEstat Data API RIPEstat Text

RIPE RIPEstat MENOG 13

RIPEstat Web Interfacebull Finding Information on RIPEstat

4

Search input

Links to most used features

RIPEstat related articles on

RIPE Labs

Recent new features

RIPE RIPEstat MENOG 13

RIPEstat Web Interfacebull Information structure on RIPEstat

5

bull FAQbull Data Sourcesbull Widget Listbull Top Queriesbull Feedback

bull Interfaces amp APIsbull Demosbull Roadmapbull Changelog

bull Notable Network Eventsbull Compare Resultsbull Looking For Abuse Informationbull Global Internet Statistics

RIPE RIPEstat MENOG 13

1 Querying for a Resource (Web Interface)

6

Search box

Your ASN amp network prefix Sample resources

Example Enter ldquoAS3333rdquo in the search box

RIPE RIPEstat MENOG 13

1 Querying for a Resource (Web Interface)

Result page

7

Search box

Widgets grouped into thematic tabs Widgets display

different types of information

RIPE RIPEstat MENOG 13

1 Querying for a Resource (Web Interface) Tasks

_ What network announces 140785090_ Is 192342 routed_ In which country is 9122942023 used_ What is its corresponding INETNUM object_ What widget provides real-time routing status_ By what percent did the number of prefixes announced by Kuwait increase over the last two years

_ How would you share interesting network events with a colleague

8

RIPE RIPEstat MENOG 13

2 MyViewsCreate custom views

9

bull Click theldquoMyViewrdquo Button

bull Drag and drop a widget onto the ldquoMyViewrdquo button

RIPE RIPEstat MENOG 13

2 MyViews

10

Newly created MyView

MyViews are only visible to you An option to share your views will be available soon

RIPE RIPEstat MENOG 13

2 MyViewsCustomise MyViews

11

bull Renamebull Re-orderbull Control visibilitybull Remove

Re-order widgets as you like

RIPE RIPEstat MENOG 13

2 MyViews Tasks

_ Create a RIPE Access account (if you donrsquot already have one)_ Create a MyView for a prefix containing the following widgets

_ Routing Status_ Looking Glass_ Routing History

_ Create another MyView with at least two widgets and give it a meaningful name

12

RIPE RIPEstat MENOG 13

Create SSO AccountTasks

_ Go to the ldquoLoginrdquo page_ ldquoclick here to create onerdquo

13

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)bull Compare results in different widgets

14

Go to ldquoUse Casesrdquo gt ldquoCompare Resultsrdquo

Select a widget

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)bull Compare results in different widgets

15

Enter a resourcebull Select the ldquoPrefix Size Distributionrdquo widgetbull Enter ldquoAS1205rdquo

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)In-widget comparison

16

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)Tasks

_ Compare the number of announced prefixes for two networks over the past two years using the widget comparison page

_ How does the Internet in Kuwait compare to the UK Use in-widget comparison

17

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder

18

Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo

In-depth information about abuse

Enter the IP address

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

19

Email contact to report abuse to

Rating of the contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

20

Details about the resource and abuse contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTasks

_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion

What can you do in these cases_ No abuse contact found_ No response on an abuse report

21

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated

and highly-interactive manner

bull Go to httpsstatripenetwidgetbgplay

22

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

23

Interactive graph visualisation

Control timeline

BGP event ASN orASN path details

Selection timeline

Control panel - Covered time period- RRC selection

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

24

Examples

- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlayTasks

_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network

25

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site Embedding widgets

_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site

_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api

26

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site

27

Prefix Count widget

AS Path Length widget

This ISP embedded widgets on its page

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site (Task)Tasks

_ Create a simple dashboard page to monitor your network_ Create a simple HTML page

_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml

_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo

28

RIPE RIPEstat MENOG 13

7 RIPEstat Data API Using raw data output

_ What is the conceptThe RIPEstat Data API provides the lowest level of access to data This data can be fed into custom applications or just used for scripting

_ RIPEstat Widget API documentation httpsstatripenetdocsdata_api

29

RIPE RIPEstat MENOG 13

7 RIPEstat Data API (Task)Tasks

_ Use your browser to retrieve all announced prefixes for the AS6412_ A simple check on your resource if it is seen on the Internet

_ Create a simple script using resource-overview or routing-status

30

RIPE RIPEstat MENOG 13

8 RIPE AtlasCreating a user-defined measurement

_ httpsatlasripenet

31

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API

_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)

_ Result codes for a check show the state

32

State Result Code

Ok

Warning

Error

0

1

2

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)Example of a Python based check

33

if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))

if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message

Page 3: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data

RIPE RIPEstat MENOG 13

Three Interfaces of RIPEstat

3

httpsstatripenetdatarouting-statusdatajsonresource=AS3333

RIPEstat Web Interface

RIPEstat Widget API

RIPEstat Data API RIPEstat Text

RIPE RIPEstat MENOG 13

RIPEstat Web Interfacebull Finding Information on RIPEstat

4

Search input

Links to most used features

RIPEstat related articles on

RIPE Labs

Recent new features

RIPE RIPEstat MENOG 13

RIPEstat Web Interfacebull Information structure on RIPEstat

5

bull FAQbull Data Sourcesbull Widget Listbull Top Queriesbull Feedback

bull Interfaces amp APIsbull Demosbull Roadmapbull Changelog

bull Notable Network Eventsbull Compare Resultsbull Looking For Abuse Informationbull Global Internet Statistics

RIPE RIPEstat MENOG 13

1 Querying for a Resource (Web Interface)

6

Search box

Your ASN amp network prefix Sample resources

Example Enter ldquoAS3333rdquo in the search box

RIPE RIPEstat MENOG 13

1 Querying for a Resource (Web Interface)

Result page

7

Search box

Widgets grouped into thematic tabs Widgets display

different types of information

RIPE RIPEstat MENOG 13

1 Querying for a Resource (Web Interface) Tasks

_ What network announces 140785090_ Is 192342 routed_ In which country is 9122942023 used_ What is its corresponding INETNUM object_ What widget provides real-time routing status_ By what percent did the number of prefixes announced by Kuwait increase over the last two years

_ How would you share interesting network events with a colleague

8

RIPE RIPEstat MENOG 13

2 MyViewsCreate custom views

9

bull Click theldquoMyViewrdquo Button

bull Drag and drop a widget onto the ldquoMyViewrdquo button

RIPE RIPEstat MENOG 13

2 MyViews

10

Newly created MyView

MyViews are only visible to you An option to share your views will be available soon

RIPE RIPEstat MENOG 13

2 MyViewsCustomise MyViews

11

bull Renamebull Re-orderbull Control visibilitybull Remove

Re-order widgets as you like

RIPE RIPEstat MENOG 13

2 MyViews Tasks

_ Create a RIPE Access account (if you donrsquot already have one)_ Create a MyView for a prefix containing the following widgets

_ Routing Status_ Looking Glass_ Routing History

_ Create another MyView with at least two widgets and give it a meaningful name

12

RIPE RIPEstat MENOG 13

Create SSO AccountTasks

_ Go to the ldquoLoginrdquo page_ ldquoclick here to create onerdquo

13

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)bull Compare results in different widgets

14

Go to ldquoUse Casesrdquo gt ldquoCompare Resultsrdquo

Select a widget

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)bull Compare results in different widgets

15

Enter a resourcebull Select the ldquoPrefix Size Distributionrdquo widgetbull Enter ldquoAS1205rdquo

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)In-widget comparison

16

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)Tasks

_ Compare the number of announced prefixes for two networks over the past two years using the widget comparison page

_ How does the Internet in Kuwait compare to the UK Use in-widget comparison

17

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder

18

Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo

In-depth information about abuse

Enter the IP address

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

19

Email contact to report abuse to

Rating of the contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

20

Details about the resource and abuse contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTasks

_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion

What can you do in these cases_ No abuse contact found_ No response on an abuse report

21

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated

and highly-interactive manner

bull Go to httpsstatripenetwidgetbgplay

22

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

23

Interactive graph visualisation

Control timeline

BGP event ASN orASN path details

Selection timeline

Control panel - Covered time period- RRC selection

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

24

Examples

- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlayTasks

_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network

25

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site Embedding widgets

_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site

_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api

26

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site

27

Prefix Count widget

AS Path Length widget

This ISP embedded widgets on its page

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site (Task)Tasks

_ Create a simple dashboard page to monitor your network_ Create a simple HTML page

_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml

_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo

28

RIPE RIPEstat MENOG 13

7 RIPEstat Data API Using raw data output

_ What is the conceptThe RIPEstat Data API provides the lowest level of access to data This data can be fed into custom applications or just used for scripting

_ RIPEstat Widget API documentation httpsstatripenetdocsdata_api

29

RIPE RIPEstat MENOG 13

7 RIPEstat Data API (Task)Tasks

_ Use your browser to retrieve all announced prefixes for the AS6412_ A simple check on your resource if it is seen on the Internet

_ Create a simple script using resource-overview or routing-status

30

RIPE RIPEstat MENOG 13

8 RIPE AtlasCreating a user-defined measurement

_ httpsatlasripenet

31

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API

_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)

_ Result codes for a check show the state

32

State Result Code

Ok

Warning

Error

0

1

2

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)Example of a Python based check

33

if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))

if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message

Page 4: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data

RIPE RIPEstat MENOG 13

RIPEstat Web Interfacebull Finding Information on RIPEstat

4

Search input

Links to most used features

RIPEstat related articles on

RIPE Labs

Recent new features

RIPE RIPEstat MENOG 13

RIPEstat Web Interfacebull Information structure on RIPEstat

5

bull FAQbull Data Sourcesbull Widget Listbull Top Queriesbull Feedback

bull Interfaces amp APIsbull Demosbull Roadmapbull Changelog

bull Notable Network Eventsbull Compare Resultsbull Looking For Abuse Informationbull Global Internet Statistics

RIPE RIPEstat MENOG 13

1 Querying for a Resource (Web Interface)

6

Search box

Your ASN amp network prefix Sample resources

Example Enter ldquoAS3333rdquo in the search box

RIPE RIPEstat MENOG 13

1 Querying for a Resource (Web Interface)

Result page

7

Search box

Widgets grouped into thematic tabs Widgets display

different types of information

RIPE RIPEstat MENOG 13

1 Querying for a Resource (Web Interface) Tasks

_ What network announces 140785090_ Is 192342 routed_ In which country is 9122942023 used_ What is its corresponding INETNUM object_ What widget provides real-time routing status_ By what percent did the number of prefixes announced by Kuwait increase over the last two years

_ How would you share interesting network events with a colleague

8

RIPE RIPEstat MENOG 13

2 MyViewsCreate custom views

9

bull Click theldquoMyViewrdquo Button

bull Drag and drop a widget onto the ldquoMyViewrdquo button

RIPE RIPEstat MENOG 13

2 MyViews

10

Newly created MyView

MyViews are only visible to you An option to share your views will be available soon

RIPE RIPEstat MENOG 13

2 MyViewsCustomise MyViews

11

bull Renamebull Re-orderbull Control visibilitybull Remove

Re-order widgets as you like

RIPE RIPEstat MENOG 13

2 MyViews Tasks

_ Create a RIPE Access account (if you donrsquot already have one)_ Create a MyView for a prefix containing the following widgets

_ Routing Status_ Looking Glass_ Routing History

_ Create another MyView with at least two widgets and give it a meaningful name

12

RIPE RIPEstat MENOG 13

Create SSO AccountTasks

_ Go to the ldquoLoginrdquo page_ ldquoclick here to create onerdquo

13

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)bull Compare results in different widgets

14

Go to ldquoUse Casesrdquo gt ldquoCompare Resultsrdquo

Select a widget

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)bull Compare results in different widgets

15

Enter a resourcebull Select the ldquoPrefix Size Distributionrdquo widgetbull Enter ldquoAS1205rdquo

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)In-widget comparison

16

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)Tasks

_ Compare the number of announced prefixes for two networks over the past two years using the widget comparison page

_ How does the Internet in Kuwait compare to the UK Use in-widget comparison

17

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder

18

Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo

In-depth information about abuse

Enter the IP address

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

19

Email contact to report abuse to

Rating of the contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

20

Details about the resource and abuse contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTasks

_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion

What can you do in these cases_ No abuse contact found_ No response on an abuse report

21

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated

and highly-interactive manner

bull Go to httpsstatripenetwidgetbgplay

22

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

23

Interactive graph visualisation

Control timeline

BGP event ASN orASN path details

Selection timeline

Control panel - Covered time period- RRC selection

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

24

Examples

- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlayTasks

_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network

25

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site Embedding widgets

_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site

_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api

26

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site

27

Prefix Count widget

AS Path Length widget

This ISP embedded widgets on its page

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site (Task)Tasks

_ Create a simple dashboard page to monitor your network_ Create a simple HTML page

_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml

_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo

28

RIPE RIPEstat MENOG 13

7 RIPEstat Data API Using raw data output

_ What is the conceptThe RIPEstat Data API provides the lowest level of access to data This data can be fed into custom applications or just used for scripting

_ RIPEstat Widget API documentation httpsstatripenetdocsdata_api

29

RIPE RIPEstat MENOG 13

7 RIPEstat Data API (Task)Tasks

_ Use your browser to retrieve all announced prefixes for the AS6412_ A simple check on your resource if it is seen on the Internet

_ Create a simple script using resource-overview or routing-status

30

RIPE RIPEstat MENOG 13

8 RIPE AtlasCreating a user-defined measurement

_ httpsatlasripenet

31

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API

_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)

_ Result codes for a check show the state

32

State Result Code

Ok

Warning

Error

0

1

2

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)Example of a Python based check

33

if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))

if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message

Page 5: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data

RIPE RIPEstat MENOG 13

RIPEstat Web Interfacebull Information structure on RIPEstat

5

bull FAQbull Data Sourcesbull Widget Listbull Top Queriesbull Feedback

bull Interfaces amp APIsbull Demosbull Roadmapbull Changelog

bull Notable Network Eventsbull Compare Resultsbull Looking For Abuse Informationbull Global Internet Statistics

RIPE RIPEstat MENOG 13

1 Querying for a Resource (Web Interface)

6

Search box

Your ASN amp network prefix Sample resources

Example Enter ldquoAS3333rdquo in the search box

RIPE RIPEstat MENOG 13

1 Querying for a Resource (Web Interface)

Result page

7

Search box

Widgets grouped into thematic tabs Widgets display

different types of information

RIPE RIPEstat MENOG 13

1 Querying for a Resource (Web Interface) Tasks

_ What network announces 140785090_ Is 192342 routed_ In which country is 9122942023 used_ What is its corresponding INETNUM object_ What widget provides real-time routing status_ By what percent did the number of prefixes announced by Kuwait increase over the last two years

_ How would you share interesting network events with a colleague

8

RIPE RIPEstat MENOG 13

2 MyViewsCreate custom views

9

bull Click theldquoMyViewrdquo Button

bull Drag and drop a widget onto the ldquoMyViewrdquo button

RIPE RIPEstat MENOG 13

2 MyViews

10

Newly created MyView

MyViews are only visible to you An option to share your views will be available soon

RIPE RIPEstat MENOG 13

2 MyViewsCustomise MyViews

11

bull Renamebull Re-orderbull Control visibilitybull Remove

Re-order widgets as you like

RIPE RIPEstat MENOG 13

2 MyViews Tasks

_ Create a RIPE Access account (if you donrsquot already have one)_ Create a MyView for a prefix containing the following widgets

_ Routing Status_ Looking Glass_ Routing History

_ Create another MyView with at least two widgets and give it a meaningful name

12

RIPE RIPEstat MENOG 13

Create SSO AccountTasks

_ Go to the ldquoLoginrdquo page_ ldquoclick here to create onerdquo

13

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)bull Compare results in different widgets

14

Go to ldquoUse Casesrdquo gt ldquoCompare Resultsrdquo

Select a widget

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)bull Compare results in different widgets

15

Enter a resourcebull Select the ldquoPrefix Size Distributionrdquo widgetbull Enter ldquoAS1205rdquo

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)In-widget comparison

16

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)Tasks

_ Compare the number of announced prefixes for two networks over the past two years using the widget comparison page

_ How does the Internet in Kuwait compare to the UK Use in-widget comparison

17

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder

18

Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo

In-depth information about abuse

Enter the IP address

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

19

Email contact to report abuse to

Rating of the contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

20

Details about the resource and abuse contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTasks

_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion

What can you do in these cases_ No abuse contact found_ No response on an abuse report

21

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated

and highly-interactive manner

bull Go to httpsstatripenetwidgetbgplay

22

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

23

Interactive graph visualisation

Control timeline

BGP event ASN orASN path details

Selection timeline

Control panel - Covered time period- RRC selection

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

24

Examples

- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlayTasks

_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network

25

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site Embedding widgets

_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site

_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api

26

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site

27

Prefix Count widget

AS Path Length widget

This ISP embedded widgets on its page

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site (Task)Tasks

_ Create a simple dashboard page to monitor your network_ Create a simple HTML page

_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml

_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo

28

RIPE RIPEstat MENOG 13

7 RIPEstat Data API Using raw data output

_ What is the conceptThe RIPEstat Data API provides the lowest level of access to data This data can be fed into custom applications or just used for scripting

_ RIPEstat Widget API documentation httpsstatripenetdocsdata_api

29

RIPE RIPEstat MENOG 13

7 RIPEstat Data API (Task)Tasks

_ Use your browser to retrieve all announced prefixes for the AS6412_ A simple check on your resource if it is seen on the Internet

_ Create a simple script using resource-overview or routing-status

30

RIPE RIPEstat MENOG 13

8 RIPE AtlasCreating a user-defined measurement

_ httpsatlasripenet

31

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API

_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)

_ Result codes for a check show the state

32

State Result Code

Ok

Warning

Error

0

1

2

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)Example of a Python based check

33

if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))

if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message

Page 6: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data

RIPE RIPEstat MENOG 13

1 Querying for a Resource (Web Interface)

6

Search box

Your ASN amp network prefix Sample resources

Example Enter ldquoAS3333rdquo in the search box

RIPE RIPEstat MENOG 13

1 Querying for a Resource (Web Interface)

Result page

7

Search box

Widgets grouped into thematic tabs Widgets display

different types of information

RIPE RIPEstat MENOG 13

1 Querying for a Resource (Web Interface) Tasks

_ What network announces 140785090_ Is 192342 routed_ In which country is 9122942023 used_ What is its corresponding INETNUM object_ What widget provides real-time routing status_ By what percent did the number of prefixes announced by Kuwait increase over the last two years

_ How would you share interesting network events with a colleague

8

RIPE RIPEstat MENOG 13

2 MyViewsCreate custom views

9

bull Click theldquoMyViewrdquo Button

bull Drag and drop a widget onto the ldquoMyViewrdquo button

RIPE RIPEstat MENOG 13

2 MyViews

10

Newly created MyView

MyViews are only visible to you An option to share your views will be available soon

RIPE RIPEstat MENOG 13

2 MyViewsCustomise MyViews

11

bull Renamebull Re-orderbull Control visibilitybull Remove

Re-order widgets as you like

RIPE RIPEstat MENOG 13

2 MyViews Tasks

_ Create a RIPE Access account (if you donrsquot already have one)_ Create a MyView for a prefix containing the following widgets

_ Routing Status_ Looking Glass_ Routing History

_ Create another MyView with at least two widgets and give it a meaningful name

12

RIPE RIPEstat MENOG 13

Create SSO AccountTasks

_ Go to the ldquoLoginrdquo page_ ldquoclick here to create onerdquo

13

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)bull Compare results in different widgets

14

Go to ldquoUse Casesrdquo gt ldquoCompare Resultsrdquo

Select a widget

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)bull Compare results in different widgets

15

Enter a resourcebull Select the ldquoPrefix Size Distributionrdquo widgetbull Enter ldquoAS1205rdquo

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)In-widget comparison

16

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)Tasks

_ Compare the number of announced prefixes for two networks over the past two years using the widget comparison page

_ How does the Internet in Kuwait compare to the UK Use in-widget comparison

17

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder

18

Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo

In-depth information about abuse

Enter the IP address

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

19

Email contact to report abuse to

Rating of the contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

20

Details about the resource and abuse contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTasks

_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion

What can you do in these cases_ No abuse contact found_ No response on an abuse report

21

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated

and highly-interactive manner

bull Go to httpsstatripenetwidgetbgplay

22

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

23

Interactive graph visualisation

Control timeline

BGP event ASN orASN path details

Selection timeline

Control panel - Covered time period- RRC selection

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

24

Examples

- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlayTasks

_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network

25

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site Embedding widgets

_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site

_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api

26

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site

27

Prefix Count widget

AS Path Length widget

This ISP embedded widgets on its page

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site (Task)Tasks

_ Create a simple dashboard page to monitor your network_ Create a simple HTML page

_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml

_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo

28

RIPE RIPEstat MENOG 13

7 RIPEstat Data API Using raw data output

_ What is the conceptThe RIPEstat Data API provides the lowest level of access to data This data can be fed into custom applications or just used for scripting

_ RIPEstat Widget API documentation httpsstatripenetdocsdata_api

29

RIPE RIPEstat MENOG 13

7 RIPEstat Data API (Task)Tasks

_ Use your browser to retrieve all announced prefixes for the AS6412_ A simple check on your resource if it is seen on the Internet

_ Create a simple script using resource-overview or routing-status

30

RIPE RIPEstat MENOG 13

8 RIPE AtlasCreating a user-defined measurement

_ httpsatlasripenet

31

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API

_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)

_ Result codes for a check show the state

32

State Result Code

Ok

Warning

Error

0

1

2

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)Example of a Python based check

33

if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))

if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message

Page 7: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data

RIPE RIPEstat MENOG 13

1 Querying for a Resource (Web Interface)

Result page

7

Search box

Widgets grouped into thematic tabs Widgets display

different types of information

RIPE RIPEstat MENOG 13

1 Querying for a Resource (Web Interface) Tasks

_ What network announces 140785090_ Is 192342 routed_ In which country is 9122942023 used_ What is its corresponding INETNUM object_ What widget provides real-time routing status_ By what percent did the number of prefixes announced by Kuwait increase over the last two years

_ How would you share interesting network events with a colleague

8

RIPE RIPEstat MENOG 13

2 MyViewsCreate custom views

9

bull Click theldquoMyViewrdquo Button

bull Drag and drop a widget onto the ldquoMyViewrdquo button

RIPE RIPEstat MENOG 13

2 MyViews

10

Newly created MyView

MyViews are only visible to you An option to share your views will be available soon

RIPE RIPEstat MENOG 13

2 MyViewsCustomise MyViews

11

bull Renamebull Re-orderbull Control visibilitybull Remove

Re-order widgets as you like

RIPE RIPEstat MENOG 13

2 MyViews Tasks

_ Create a RIPE Access account (if you donrsquot already have one)_ Create a MyView for a prefix containing the following widgets

_ Routing Status_ Looking Glass_ Routing History

_ Create another MyView with at least two widgets and give it a meaningful name

12

RIPE RIPEstat MENOG 13

Create SSO AccountTasks

_ Go to the ldquoLoginrdquo page_ ldquoclick here to create onerdquo

13

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)bull Compare results in different widgets

14

Go to ldquoUse Casesrdquo gt ldquoCompare Resultsrdquo

Select a widget

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)bull Compare results in different widgets

15

Enter a resourcebull Select the ldquoPrefix Size Distributionrdquo widgetbull Enter ldquoAS1205rdquo

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)In-widget comparison

16

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)Tasks

_ Compare the number of announced prefixes for two networks over the past two years using the widget comparison page

_ How does the Internet in Kuwait compare to the UK Use in-widget comparison

17

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder

18

Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo

In-depth information about abuse

Enter the IP address

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

19

Email contact to report abuse to

Rating of the contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

20

Details about the resource and abuse contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTasks

_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion

What can you do in these cases_ No abuse contact found_ No response on an abuse report

21

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated

and highly-interactive manner

bull Go to httpsstatripenetwidgetbgplay

22

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

23

Interactive graph visualisation

Control timeline

BGP event ASN orASN path details

Selection timeline

Control panel - Covered time period- RRC selection

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

24

Examples

- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlayTasks

_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network

25

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site Embedding widgets

_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site

_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api

26

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site

27

Prefix Count widget

AS Path Length widget

This ISP embedded widgets on its page

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site (Task)Tasks

_ Create a simple dashboard page to monitor your network_ Create a simple HTML page

_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml

_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo

28

RIPE RIPEstat MENOG 13

7 RIPEstat Data API Using raw data output

_ What is the conceptThe RIPEstat Data API provides the lowest level of access to data This data can be fed into custom applications or just used for scripting

_ RIPEstat Widget API documentation httpsstatripenetdocsdata_api

29

RIPE RIPEstat MENOG 13

7 RIPEstat Data API (Task)Tasks

_ Use your browser to retrieve all announced prefixes for the AS6412_ A simple check on your resource if it is seen on the Internet

_ Create a simple script using resource-overview or routing-status

30

RIPE RIPEstat MENOG 13

8 RIPE AtlasCreating a user-defined measurement

_ httpsatlasripenet

31

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API

_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)

_ Result codes for a check show the state

32

State Result Code

Ok

Warning

Error

0

1

2

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)Example of a Python based check

33

if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))

if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message

Page 8: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data

RIPE RIPEstat MENOG 13

1 Querying for a Resource (Web Interface) Tasks

_ What network announces 140785090_ Is 192342 routed_ In which country is 9122942023 used_ What is its corresponding INETNUM object_ What widget provides real-time routing status_ By what percent did the number of prefixes announced by Kuwait increase over the last two years

_ How would you share interesting network events with a colleague

8

RIPE RIPEstat MENOG 13

2 MyViewsCreate custom views

9

bull Click theldquoMyViewrdquo Button

bull Drag and drop a widget onto the ldquoMyViewrdquo button

RIPE RIPEstat MENOG 13

2 MyViews

10

Newly created MyView

MyViews are only visible to you An option to share your views will be available soon

RIPE RIPEstat MENOG 13

2 MyViewsCustomise MyViews

11

bull Renamebull Re-orderbull Control visibilitybull Remove

Re-order widgets as you like

RIPE RIPEstat MENOG 13

2 MyViews Tasks

_ Create a RIPE Access account (if you donrsquot already have one)_ Create a MyView for a prefix containing the following widgets

_ Routing Status_ Looking Glass_ Routing History

_ Create another MyView with at least two widgets and give it a meaningful name

12

RIPE RIPEstat MENOG 13

Create SSO AccountTasks

_ Go to the ldquoLoginrdquo page_ ldquoclick here to create onerdquo

13

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)bull Compare results in different widgets

14

Go to ldquoUse Casesrdquo gt ldquoCompare Resultsrdquo

Select a widget

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)bull Compare results in different widgets

15

Enter a resourcebull Select the ldquoPrefix Size Distributionrdquo widgetbull Enter ldquoAS1205rdquo

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)In-widget comparison

16

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)Tasks

_ Compare the number of announced prefixes for two networks over the past two years using the widget comparison page

_ How does the Internet in Kuwait compare to the UK Use in-widget comparison

17

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder

18

Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo

In-depth information about abuse

Enter the IP address

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

19

Email contact to report abuse to

Rating of the contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

20

Details about the resource and abuse contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTasks

_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion

What can you do in these cases_ No abuse contact found_ No response on an abuse report

21

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated

and highly-interactive manner

bull Go to httpsstatripenetwidgetbgplay

22

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

23

Interactive graph visualisation

Control timeline

BGP event ASN orASN path details

Selection timeline

Control panel - Covered time period- RRC selection

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

24

Examples

- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlayTasks

_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network

25

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site Embedding widgets

_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site

_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api

26

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site

27

Prefix Count widget

AS Path Length widget

This ISP embedded widgets on its page

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site (Task)Tasks

_ Create a simple dashboard page to monitor your network_ Create a simple HTML page

_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml

_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo

28

RIPE RIPEstat MENOG 13

7 RIPEstat Data API Using raw data output

_ What is the conceptThe RIPEstat Data API provides the lowest level of access to data This data can be fed into custom applications or just used for scripting

_ RIPEstat Widget API documentation httpsstatripenetdocsdata_api

29

RIPE RIPEstat MENOG 13

7 RIPEstat Data API (Task)Tasks

_ Use your browser to retrieve all announced prefixes for the AS6412_ A simple check on your resource if it is seen on the Internet

_ Create a simple script using resource-overview or routing-status

30

RIPE RIPEstat MENOG 13

8 RIPE AtlasCreating a user-defined measurement

_ httpsatlasripenet

31

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API

_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)

_ Result codes for a check show the state

32

State Result Code

Ok

Warning

Error

0

1

2

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)Example of a Python based check

33

if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))

if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message

Page 9: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data

RIPE RIPEstat MENOG 13

2 MyViewsCreate custom views

9

bull Click theldquoMyViewrdquo Button

bull Drag and drop a widget onto the ldquoMyViewrdquo button

RIPE RIPEstat MENOG 13

2 MyViews

10

Newly created MyView

MyViews are only visible to you An option to share your views will be available soon

RIPE RIPEstat MENOG 13

2 MyViewsCustomise MyViews

11

bull Renamebull Re-orderbull Control visibilitybull Remove

Re-order widgets as you like

RIPE RIPEstat MENOG 13

2 MyViews Tasks

_ Create a RIPE Access account (if you donrsquot already have one)_ Create a MyView for a prefix containing the following widgets

_ Routing Status_ Looking Glass_ Routing History

_ Create another MyView with at least two widgets and give it a meaningful name

12

RIPE RIPEstat MENOG 13

Create SSO AccountTasks

_ Go to the ldquoLoginrdquo page_ ldquoclick here to create onerdquo

13

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)bull Compare results in different widgets

14

Go to ldquoUse Casesrdquo gt ldquoCompare Resultsrdquo

Select a widget

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)bull Compare results in different widgets

15

Enter a resourcebull Select the ldquoPrefix Size Distributionrdquo widgetbull Enter ldquoAS1205rdquo

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)In-widget comparison

16

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)Tasks

_ Compare the number of announced prefixes for two networks over the past two years using the widget comparison page

_ How does the Internet in Kuwait compare to the UK Use in-widget comparison

17

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder

18

Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo

In-depth information about abuse

Enter the IP address

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

19

Email contact to report abuse to

Rating of the contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

20

Details about the resource and abuse contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTasks

_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion

What can you do in these cases_ No abuse contact found_ No response on an abuse report

21

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated

and highly-interactive manner

bull Go to httpsstatripenetwidgetbgplay

22

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

23

Interactive graph visualisation

Control timeline

BGP event ASN orASN path details

Selection timeline

Control panel - Covered time period- RRC selection

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

24

Examples

- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlayTasks

_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network

25

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site Embedding widgets

_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site

_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api

26

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site

27

Prefix Count widget

AS Path Length widget

This ISP embedded widgets on its page

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site (Task)Tasks

_ Create a simple dashboard page to monitor your network_ Create a simple HTML page

_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml

_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo

28

RIPE RIPEstat MENOG 13

7 RIPEstat Data API Using raw data output

_ What is the conceptThe RIPEstat Data API provides the lowest level of access to data This data can be fed into custom applications or just used for scripting

_ RIPEstat Widget API documentation httpsstatripenetdocsdata_api

29

RIPE RIPEstat MENOG 13

7 RIPEstat Data API (Task)Tasks

_ Use your browser to retrieve all announced prefixes for the AS6412_ A simple check on your resource if it is seen on the Internet

_ Create a simple script using resource-overview or routing-status

30

RIPE RIPEstat MENOG 13

8 RIPE AtlasCreating a user-defined measurement

_ httpsatlasripenet

31

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API

_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)

_ Result codes for a check show the state

32

State Result Code

Ok

Warning

Error

0

1

2

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)Example of a Python based check

33

if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))

if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message

Page 10: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data

RIPE RIPEstat MENOG 13

2 MyViews

10

Newly created MyView

MyViews are only visible to you An option to share your views will be available soon

RIPE RIPEstat MENOG 13

2 MyViewsCustomise MyViews

11

bull Renamebull Re-orderbull Control visibilitybull Remove

Re-order widgets as you like

RIPE RIPEstat MENOG 13

2 MyViews Tasks

_ Create a RIPE Access account (if you donrsquot already have one)_ Create a MyView for a prefix containing the following widgets

_ Routing Status_ Looking Glass_ Routing History

_ Create another MyView with at least two widgets and give it a meaningful name

12

RIPE RIPEstat MENOG 13

Create SSO AccountTasks

_ Go to the ldquoLoginrdquo page_ ldquoclick here to create onerdquo

13

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)bull Compare results in different widgets

14

Go to ldquoUse Casesrdquo gt ldquoCompare Resultsrdquo

Select a widget

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)bull Compare results in different widgets

15

Enter a resourcebull Select the ldquoPrefix Size Distributionrdquo widgetbull Enter ldquoAS1205rdquo

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)In-widget comparison

16

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)Tasks

_ Compare the number of announced prefixes for two networks over the past two years using the widget comparison page

_ How does the Internet in Kuwait compare to the UK Use in-widget comparison

17

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder

18

Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo

In-depth information about abuse

Enter the IP address

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

19

Email contact to report abuse to

Rating of the contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

20

Details about the resource and abuse contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTasks

_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion

What can you do in these cases_ No abuse contact found_ No response on an abuse report

21

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated

and highly-interactive manner

bull Go to httpsstatripenetwidgetbgplay

22

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

23

Interactive graph visualisation

Control timeline

BGP event ASN orASN path details

Selection timeline

Control panel - Covered time period- RRC selection

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

24

Examples

- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlayTasks

_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network

25

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site Embedding widgets

_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site

_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api

26

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site

27

Prefix Count widget

AS Path Length widget

This ISP embedded widgets on its page

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site (Task)Tasks

_ Create a simple dashboard page to monitor your network_ Create a simple HTML page

_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml

_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo

28

RIPE RIPEstat MENOG 13

7 RIPEstat Data API Using raw data output

_ What is the conceptThe RIPEstat Data API provides the lowest level of access to data This data can be fed into custom applications or just used for scripting

_ RIPEstat Widget API documentation httpsstatripenetdocsdata_api

29

RIPE RIPEstat MENOG 13

7 RIPEstat Data API (Task)Tasks

_ Use your browser to retrieve all announced prefixes for the AS6412_ A simple check on your resource if it is seen on the Internet

_ Create a simple script using resource-overview or routing-status

30

RIPE RIPEstat MENOG 13

8 RIPE AtlasCreating a user-defined measurement

_ httpsatlasripenet

31

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API

_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)

_ Result codes for a check show the state

32

State Result Code

Ok

Warning

Error

0

1

2

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)Example of a Python based check

33

if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))

if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message

Page 11: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data

RIPE RIPEstat MENOG 13

2 MyViewsCustomise MyViews

11

bull Renamebull Re-orderbull Control visibilitybull Remove

Re-order widgets as you like

RIPE RIPEstat MENOG 13

2 MyViews Tasks

_ Create a RIPE Access account (if you donrsquot already have one)_ Create a MyView for a prefix containing the following widgets

_ Routing Status_ Looking Glass_ Routing History

_ Create another MyView with at least two widgets and give it a meaningful name

12

RIPE RIPEstat MENOG 13

Create SSO AccountTasks

_ Go to the ldquoLoginrdquo page_ ldquoclick here to create onerdquo

13

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)bull Compare results in different widgets

14

Go to ldquoUse Casesrdquo gt ldquoCompare Resultsrdquo

Select a widget

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)bull Compare results in different widgets

15

Enter a resourcebull Select the ldquoPrefix Size Distributionrdquo widgetbull Enter ldquoAS1205rdquo

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)In-widget comparison

16

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)Tasks

_ Compare the number of announced prefixes for two networks over the past two years using the widget comparison page

_ How does the Internet in Kuwait compare to the UK Use in-widget comparison

17

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder

18

Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo

In-depth information about abuse

Enter the IP address

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

19

Email contact to report abuse to

Rating of the contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

20

Details about the resource and abuse contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTasks

_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion

What can you do in these cases_ No abuse contact found_ No response on an abuse report

21

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated

and highly-interactive manner

bull Go to httpsstatripenetwidgetbgplay

22

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

23

Interactive graph visualisation

Control timeline

BGP event ASN orASN path details

Selection timeline

Control panel - Covered time period- RRC selection

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

24

Examples

- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlayTasks

_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network

25

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site Embedding widgets

_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site

_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api

26

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site

27

Prefix Count widget

AS Path Length widget

This ISP embedded widgets on its page

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site (Task)Tasks

_ Create a simple dashboard page to monitor your network_ Create a simple HTML page

_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml

_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo

28

RIPE RIPEstat MENOG 13

7 RIPEstat Data API Using raw data output

_ What is the conceptThe RIPEstat Data API provides the lowest level of access to data This data can be fed into custom applications or just used for scripting

_ RIPEstat Widget API documentation httpsstatripenetdocsdata_api

29

RIPE RIPEstat MENOG 13

7 RIPEstat Data API (Task)Tasks

_ Use your browser to retrieve all announced prefixes for the AS6412_ A simple check on your resource if it is seen on the Internet

_ Create a simple script using resource-overview or routing-status

30

RIPE RIPEstat MENOG 13

8 RIPE AtlasCreating a user-defined measurement

_ httpsatlasripenet

31

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API

_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)

_ Result codes for a check show the state

32

State Result Code

Ok

Warning

Error

0

1

2

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)Example of a Python based check

33

if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))

if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message

Page 12: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data

RIPE RIPEstat MENOG 13

2 MyViews Tasks

_ Create a RIPE Access account (if you donrsquot already have one)_ Create a MyView for a prefix containing the following widgets

_ Routing Status_ Looking Glass_ Routing History

_ Create another MyView with at least two widgets and give it a meaningful name

12

RIPE RIPEstat MENOG 13

Create SSO AccountTasks

_ Go to the ldquoLoginrdquo page_ ldquoclick here to create onerdquo

13

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)bull Compare results in different widgets

14

Go to ldquoUse Casesrdquo gt ldquoCompare Resultsrdquo

Select a widget

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)bull Compare results in different widgets

15

Enter a resourcebull Select the ldquoPrefix Size Distributionrdquo widgetbull Enter ldquoAS1205rdquo

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)In-widget comparison

16

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)Tasks

_ Compare the number of announced prefixes for two networks over the past two years using the widget comparison page

_ How does the Internet in Kuwait compare to the UK Use in-widget comparison

17

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder

18

Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo

In-depth information about abuse

Enter the IP address

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

19

Email contact to report abuse to

Rating of the contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

20

Details about the resource and abuse contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTasks

_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion

What can you do in these cases_ No abuse contact found_ No response on an abuse report

21

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated

and highly-interactive manner

bull Go to httpsstatripenetwidgetbgplay

22

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

23

Interactive graph visualisation

Control timeline

BGP event ASN orASN path details

Selection timeline

Control panel - Covered time period- RRC selection

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

24

Examples

- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlayTasks

_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network

25

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site Embedding widgets

_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site

_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api

26

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site

27

Prefix Count widget

AS Path Length widget

This ISP embedded widgets on its page

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site (Task)Tasks

_ Create a simple dashboard page to monitor your network_ Create a simple HTML page

_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml

_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo

28

RIPE RIPEstat MENOG 13

7 RIPEstat Data API Using raw data output

_ What is the conceptThe RIPEstat Data API provides the lowest level of access to data This data can be fed into custom applications or just used for scripting

_ RIPEstat Widget API documentation httpsstatripenetdocsdata_api

29

RIPE RIPEstat MENOG 13

7 RIPEstat Data API (Task)Tasks

_ Use your browser to retrieve all announced prefixes for the AS6412_ A simple check on your resource if it is seen on the Internet

_ Create a simple script using resource-overview or routing-status

30

RIPE RIPEstat MENOG 13

8 RIPE AtlasCreating a user-defined measurement

_ httpsatlasripenet

31

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API

_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)

_ Result codes for a check show the state

32

State Result Code

Ok

Warning

Error

0

1

2

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)Example of a Python based check

33

if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))

if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message

Page 13: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data

RIPE RIPEstat MENOG 13

Create SSO AccountTasks

_ Go to the ldquoLoginrdquo page_ ldquoclick here to create onerdquo

13

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)bull Compare results in different widgets

14

Go to ldquoUse Casesrdquo gt ldquoCompare Resultsrdquo

Select a widget

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)bull Compare results in different widgets

15

Enter a resourcebull Select the ldquoPrefix Size Distributionrdquo widgetbull Enter ldquoAS1205rdquo

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)In-widget comparison

16

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)Tasks

_ Compare the number of announced prefixes for two networks over the past two years using the widget comparison page

_ How does the Internet in Kuwait compare to the UK Use in-widget comparison

17

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder

18

Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo

In-depth information about abuse

Enter the IP address

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

19

Email contact to report abuse to

Rating of the contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

20

Details about the resource and abuse contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTasks

_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion

What can you do in these cases_ No abuse contact found_ No response on an abuse report

21

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated

and highly-interactive manner

bull Go to httpsstatripenetwidgetbgplay

22

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

23

Interactive graph visualisation

Control timeline

BGP event ASN orASN path details

Selection timeline

Control panel - Covered time period- RRC selection

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

24

Examples

- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlayTasks

_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network

25

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site Embedding widgets

_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site

_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api

26

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site

27

Prefix Count widget

AS Path Length widget

This ISP embedded widgets on its page

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site (Task)Tasks

_ Create a simple dashboard page to monitor your network_ Create a simple HTML page

_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml

_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo

28

RIPE RIPEstat MENOG 13

7 RIPEstat Data API Using raw data output

_ What is the conceptThe RIPEstat Data API provides the lowest level of access to data This data can be fed into custom applications or just used for scripting

_ RIPEstat Widget API documentation httpsstatripenetdocsdata_api

29

RIPE RIPEstat MENOG 13

7 RIPEstat Data API (Task)Tasks

_ Use your browser to retrieve all announced prefixes for the AS6412_ A simple check on your resource if it is seen on the Internet

_ Create a simple script using resource-overview or routing-status

30

RIPE RIPEstat MENOG 13

8 RIPE AtlasCreating a user-defined measurement

_ httpsatlasripenet

31

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API

_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)

_ Result codes for a check show the state

32

State Result Code

Ok

Warning

Error

0

1

2

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)Example of a Python based check

33

if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))

if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message

Page 14: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)bull Compare results in different widgets

14

Go to ldquoUse Casesrdquo gt ldquoCompare Resultsrdquo

Select a widget

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)bull Compare results in different widgets

15

Enter a resourcebull Select the ldquoPrefix Size Distributionrdquo widgetbull Enter ldquoAS1205rdquo

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)In-widget comparison

16

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)Tasks

_ Compare the number of announced prefixes for two networks over the past two years using the widget comparison page

_ How does the Internet in Kuwait compare to the UK Use in-widget comparison

17

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder

18

Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo

In-depth information about abuse

Enter the IP address

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

19

Email contact to report abuse to

Rating of the contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

20

Details about the resource and abuse contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTasks

_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion

What can you do in these cases_ No abuse contact found_ No response on an abuse report

21

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated

and highly-interactive manner

bull Go to httpsstatripenetwidgetbgplay

22

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

23

Interactive graph visualisation

Control timeline

BGP event ASN orASN path details

Selection timeline

Control panel - Covered time period- RRC selection

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

24

Examples

- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlayTasks

_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network

25

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site Embedding widgets

_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site

_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api

26

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site

27

Prefix Count widget

AS Path Length widget

This ISP embedded widgets on its page

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site (Task)Tasks

_ Create a simple dashboard page to monitor your network_ Create a simple HTML page

_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml

_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo

28

RIPE RIPEstat MENOG 13

7 RIPEstat Data API Using raw data output

_ What is the conceptThe RIPEstat Data API provides the lowest level of access to data This data can be fed into custom applications or just used for scripting

_ RIPEstat Widget API documentation httpsstatripenetdocsdata_api

29

RIPE RIPEstat MENOG 13

7 RIPEstat Data API (Task)Tasks

_ Use your browser to retrieve all announced prefixes for the AS6412_ A simple check on your resource if it is seen on the Internet

_ Create a simple script using resource-overview or routing-status

30

RIPE RIPEstat MENOG 13

8 RIPE AtlasCreating a user-defined measurement

_ httpsatlasripenet

31

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API

_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)

_ Result codes for a check show the state

32

State Result Code

Ok

Warning

Error

0

1

2

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)Example of a Python based check

33

if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))

if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message

Page 15: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)bull Compare results in different widgets

15

Enter a resourcebull Select the ldquoPrefix Size Distributionrdquo widgetbull Enter ldquoAS1205rdquo

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)In-widget comparison

16

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)Tasks

_ Compare the number of announced prefixes for two networks over the past two years using the widget comparison page

_ How does the Internet in Kuwait compare to the UK Use in-widget comparison

17

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder

18

Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo

In-depth information about abuse

Enter the IP address

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

19

Email contact to report abuse to

Rating of the contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

20

Details about the resource and abuse contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTasks

_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion

What can you do in these cases_ No abuse contact found_ No response on an abuse report

21

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated

and highly-interactive manner

bull Go to httpsstatripenetwidgetbgplay

22

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

23

Interactive graph visualisation

Control timeline

BGP event ASN orASN path details

Selection timeline

Control panel - Covered time period- RRC selection

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

24

Examples

- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlayTasks

_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network

25

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site Embedding widgets

_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site

_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api

26

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site

27

Prefix Count widget

AS Path Length widget

This ISP embedded widgets on its page

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site (Task)Tasks

_ Create a simple dashboard page to monitor your network_ Create a simple HTML page

_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml

_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo

28

RIPE RIPEstat MENOG 13

7 RIPEstat Data API Using raw data output

_ What is the conceptThe RIPEstat Data API provides the lowest level of access to data This data can be fed into custom applications or just used for scripting

_ RIPEstat Widget API documentation httpsstatripenetdocsdata_api

29

RIPE RIPEstat MENOG 13

7 RIPEstat Data API (Task)Tasks

_ Use your browser to retrieve all announced prefixes for the AS6412_ A simple check on your resource if it is seen on the Internet

_ Create a simple script using resource-overview or routing-status

30

RIPE RIPEstat MENOG 13

8 RIPE AtlasCreating a user-defined measurement

_ httpsatlasripenet

31

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API

_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)

_ Result codes for a check show the state

32

State Result Code

Ok

Warning

Error

0

1

2

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)Example of a Python based check

33

if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))

if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message

Page 16: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)In-widget comparison

16

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)Tasks

_ Compare the number of announced prefixes for two networks over the past two years using the widget comparison page

_ How does the Internet in Kuwait compare to the UK Use in-widget comparison

17

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder

18

Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo

In-depth information about abuse

Enter the IP address

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

19

Email contact to report abuse to

Rating of the contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

20

Details about the resource and abuse contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTasks

_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion

What can you do in these cases_ No abuse contact found_ No response on an abuse report

21

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated

and highly-interactive manner

bull Go to httpsstatripenetwidgetbgplay

22

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

23

Interactive graph visualisation

Control timeline

BGP event ASN orASN path details

Selection timeline

Control panel - Covered time period- RRC selection

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

24

Examples

- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlayTasks

_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network

25

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site Embedding widgets

_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site

_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api

26

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site

27

Prefix Count widget

AS Path Length widget

This ISP embedded widgets on its page

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site (Task)Tasks

_ Create a simple dashboard page to monitor your network_ Create a simple HTML page

_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml

_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo

28

RIPE RIPEstat MENOG 13

7 RIPEstat Data API Using raw data output

_ What is the conceptThe RIPEstat Data API provides the lowest level of access to data This data can be fed into custom applications or just used for scripting

_ RIPEstat Widget API documentation httpsstatripenetdocsdata_api

29

RIPE RIPEstat MENOG 13

7 RIPEstat Data API (Task)Tasks

_ Use your browser to retrieve all announced prefixes for the AS6412_ A simple check on your resource if it is seen on the Internet

_ Create a simple script using resource-overview or routing-status

30

RIPE RIPEstat MENOG 13

8 RIPE AtlasCreating a user-defined measurement

_ httpsatlasripenet

31

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API

_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)

_ Result codes for a check show the state

32

State Result Code

Ok

Warning

Error

0

1

2

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)Example of a Python based check

33

if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))

if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message

Page 17: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data

RIPE RIPEstat MENOG 13

3 Comparing Resources (Web Interface)Tasks

_ Compare the number of announced prefixes for two networks over the past two years using the widget comparison page

_ How does the Internet in Kuwait compare to the UK Use in-widget comparison

17

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder

18

Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo

In-depth information about abuse

Enter the IP address

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

19

Email contact to report abuse to

Rating of the contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

20

Details about the resource and abuse contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTasks

_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion

What can you do in these cases_ No abuse contact found_ No response on an abuse report

21

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated

and highly-interactive manner

bull Go to httpsstatripenetwidgetbgplay

22

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

23

Interactive graph visualisation

Control timeline

BGP event ASN orASN path details

Selection timeline

Control panel - Covered time period- RRC selection

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

24

Examples

- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlayTasks

_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network

25

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site Embedding widgets

_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site

_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api

26

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site

27

Prefix Count widget

AS Path Length widget

This ISP embedded widgets on its page

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site (Task)Tasks

_ Create a simple dashboard page to monitor your network_ Create a simple HTML page

_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml

_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo

28

RIPE RIPEstat MENOG 13

7 RIPEstat Data API Using raw data output

_ What is the conceptThe RIPEstat Data API provides the lowest level of access to data This data can be fed into custom applications or just used for scripting

_ RIPEstat Widget API documentation httpsstatripenetdocsdata_api

29

RIPE RIPEstat MENOG 13

7 RIPEstat Data API (Task)Tasks

_ Use your browser to retrieve all announced prefixes for the AS6412_ A simple check on your resource if it is seen on the Internet

_ Create a simple script using resource-overview or routing-status

30

RIPE RIPEstat MENOG 13

8 RIPE AtlasCreating a user-defined measurement

_ httpsatlasripenet

31

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API

_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)

_ Result codes for a check show the state

32

State Result Code

Ok

Warning

Error

0

1

2

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)Example of a Python based check

33

if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))

if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message

Page 18: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTake action in an abuse case with the Abuse Contact Finder

18

Go to ldquoUse Casesrdquo gt ldquoLooking For Abuse Informationrdquo

In-depth information about abuse

Enter the IP address

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

19

Email contact to report abuse to

Rating of the contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

20

Details about the resource and abuse contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTasks

_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion

What can you do in these cases_ No abuse contact found_ No response on an abuse report

21

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated

and highly-interactive manner

bull Go to httpsstatripenetwidgetbgplay

22

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

23

Interactive graph visualisation

Control timeline

BGP event ASN orASN path details

Selection timeline

Control panel - Covered time period- RRC selection

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

24

Examples

- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlayTasks

_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network

25

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site Embedding widgets

_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site

_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api

26

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site

27

Prefix Count widget

AS Path Length widget

This ISP embedded widgets on its page

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site (Task)Tasks

_ Create a simple dashboard page to monitor your network_ Create a simple HTML page

_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml

_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo

28

RIPE RIPEstat MENOG 13

7 RIPEstat Data API Using raw data output

_ What is the conceptThe RIPEstat Data API provides the lowest level of access to data This data can be fed into custom applications or just used for scripting

_ RIPEstat Widget API documentation httpsstatripenetdocsdata_api

29

RIPE RIPEstat MENOG 13

7 RIPEstat Data API (Task)Tasks

_ Use your browser to retrieve all announced prefixes for the AS6412_ A simple check on your resource if it is seen on the Internet

_ Create a simple script using resource-overview or routing-status

30

RIPE RIPEstat MENOG 13

8 RIPE AtlasCreating a user-defined measurement

_ httpsatlasripenet

31

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API

_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)

_ Result codes for a check show the state

32

State Result Code

Ok

Warning

Error

0

1

2

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)Example of a Python based check

33

if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))

if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message

Page 19: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

19

Email contact to report abuse to

Rating of the contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

20

Details about the resource and abuse contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTasks

_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion

What can you do in these cases_ No abuse contact found_ No response on an abuse report

21

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated

and highly-interactive manner

bull Go to httpsstatripenetwidgetbgplay

22

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

23

Interactive graph visualisation

Control timeline

BGP event ASN orASN path details

Selection timeline

Control panel - Covered time period- RRC selection

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

24

Examples

- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlayTasks

_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network

25

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site Embedding widgets

_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site

_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api

26

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site

27

Prefix Count widget

AS Path Length widget

This ISP embedded widgets on its page

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site (Task)Tasks

_ Create a simple dashboard page to monitor your network_ Create a simple HTML page

_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml

_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo

28

RIPE RIPEstat MENOG 13

7 RIPEstat Data API Using raw data output

_ What is the conceptThe RIPEstat Data API provides the lowest level of access to data This data can be fed into custom applications or just used for scripting

_ RIPEstat Widget API documentation httpsstatripenetdocsdata_api

29

RIPE RIPEstat MENOG 13

7 RIPEstat Data API (Task)Tasks

_ Use your browser to retrieve all announced prefixes for the AS6412_ A simple check on your resource if it is seen on the Internet

_ Create a simple script using resource-overview or routing-status

30

RIPE RIPEstat MENOG 13

8 RIPE AtlasCreating a user-defined measurement

_ httpsatlasripenet

31

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API

_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)

_ Result codes for a check show the state

32

State Result Code

Ok

Warning

Error

0

1

2

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)Example of a Python based check

33

if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))

if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message

Page 20: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting Abuse

20

Details about the resource and abuse contact

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTasks

_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion

What can you do in these cases_ No abuse contact found_ No response on an abuse report

21

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated

and highly-interactive manner

bull Go to httpsstatripenetwidgetbgplay

22

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

23

Interactive graph visualisation

Control timeline

BGP event ASN orASN path details

Selection timeline

Control panel - Covered time period- RRC selection

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

24

Examples

- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlayTasks

_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network

25

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site Embedding widgets

_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site

_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api

26

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site

27

Prefix Count widget

AS Path Length widget

This ISP embedded widgets on its page

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site (Task)Tasks

_ Create a simple dashboard page to monitor your network_ Create a simple HTML page

_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml

_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo

28

RIPE RIPEstat MENOG 13

7 RIPEstat Data API Using raw data output

_ What is the conceptThe RIPEstat Data API provides the lowest level of access to data This data can be fed into custom applications or just used for scripting

_ RIPEstat Widget API documentation httpsstatripenetdocsdata_api

29

RIPE RIPEstat MENOG 13

7 RIPEstat Data API (Task)Tasks

_ Use your browser to retrieve all announced prefixes for the AS6412_ A simple check on your resource if it is seen on the Internet

_ Create a simple script using resource-overview or routing-status

30

RIPE RIPEstat MENOG 13

8 RIPE AtlasCreating a user-defined measurement

_ httpsatlasripenet

31

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API

_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)

_ Result codes for a check show the state

32

State Result Code

Ok

Warning

Error

0

1

2

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)Example of a Python based check

33

if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))

if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message

Page 21: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data

RIPE RIPEstat MENOG 13

4 Finding Abuse Contacts amp Reporting AbuseTasks

_ What is the abuse contact for 19302022 or the hotel network_ Check an IP address from your home network_ Discussion

What can you do in these cases_ No abuse contact found_ No response on an abuse report

21

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated

and highly-interactive manner

bull Go to httpsstatripenetwidgetbgplay

22

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

23

Interactive graph visualisation

Control timeline

BGP event ASN orASN path details

Selection timeline

Control panel - Covered time period- RRC selection

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

24

Examples

- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlayTasks

_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network

25

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site Embedding widgets

_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site

_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api

26

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site

27

Prefix Count widget

AS Path Length widget

This ISP embedded widgets on its page

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site (Task)Tasks

_ Create a simple dashboard page to monitor your network_ Create a simple HTML page

_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml

_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo

28

RIPE RIPEstat MENOG 13

7 RIPEstat Data API Using raw data output

_ What is the conceptThe RIPEstat Data API provides the lowest level of access to data This data can be fed into custom applications or just used for scripting

_ RIPEstat Widget API documentation httpsstatripenetdocsdata_api

29

RIPE RIPEstat MENOG 13

7 RIPEstat Data API (Task)Tasks

_ Use your browser to retrieve all announced prefixes for the AS6412_ A simple check on your resource if it is seen on the Internet

_ Create a simple script using resource-overview or routing-status

30

RIPE RIPEstat MENOG 13

8 RIPE AtlasCreating a user-defined measurement

_ httpsatlasripenet

31

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API

_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)

_ Result codes for a check show the state

32

State Result Code

Ok

Warning

Error

0

1

2

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)Example of a Python based check

33

if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))

if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message

Page 22: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

bull Use BGPlay to see how your network is routed- BGPlay is a tool that show routing history in an animated

and highly-interactive manner

bull Go to httpsstatripenetwidgetbgplay

22

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

23

Interactive graph visualisation

Control timeline

BGP event ASN orASN path details

Selection timeline

Control panel - Covered time period- RRC selection

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

24

Examples

- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlayTasks

_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network

25

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site Embedding widgets

_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site

_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api

26

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site

27

Prefix Count widget

AS Path Length widget

This ISP embedded widgets on its page

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site (Task)Tasks

_ Create a simple dashboard page to monitor your network_ Create a simple HTML page

_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml

_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo

28

RIPE RIPEstat MENOG 13

7 RIPEstat Data API Using raw data output

_ What is the conceptThe RIPEstat Data API provides the lowest level of access to data This data can be fed into custom applications or just used for scripting

_ RIPEstat Widget API documentation httpsstatripenetdocsdata_api

29

RIPE RIPEstat MENOG 13

7 RIPEstat Data API (Task)Tasks

_ Use your browser to retrieve all announced prefixes for the AS6412_ A simple check on your resource if it is seen on the Internet

_ Create a simple script using resource-overview or routing-status

30

RIPE RIPEstat MENOG 13

8 RIPE AtlasCreating a user-defined measurement

_ httpsatlasripenet

31

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API

_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)

_ Result codes for a check show the state

32

State Result Code

Ok

Warning

Error

0

1

2

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)Example of a Python based check

33

if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))

if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message

Page 23: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

23

Interactive graph visualisation

Control timeline

BGP event ASN orASN path details

Selection timeline

Control panel - Covered time period- RRC selection

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

24

Examples

- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlayTasks

_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network

25

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site Embedding widgets

_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site

_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api

26

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site

27

Prefix Count widget

AS Path Length widget

This ISP embedded widgets on its page

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site (Task)Tasks

_ Create a simple dashboard page to monitor your network_ Create a simple HTML page

_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml

_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo

28

RIPE RIPEstat MENOG 13

7 RIPEstat Data API Using raw data output

_ What is the conceptThe RIPEstat Data API provides the lowest level of access to data This data can be fed into custom applications or just used for scripting

_ RIPEstat Widget API documentation httpsstatripenetdocsdata_api

29

RIPE RIPEstat MENOG 13

7 RIPEstat Data API (Task)Tasks

_ Use your browser to retrieve all announced prefixes for the AS6412_ A simple check on your resource if it is seen on the Internet

_ Create a simple script using resource-overview or routing-status

30

RIPE RIPEstat MENOG 13

8 RIPE AtlasCreating a user-defined measurement

_ httpsatlasripenet

31

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API

_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)

_ Result codes for a check show the state

32

State Result Code

Ok

Warning

Error

0

1

2

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)Example of a Python based check

33

if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))

if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message

Page 24: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlay

24

Examples

- Prefix with announcements amp withdrawals 8420564024- Check IPv6 connectivity 200167c2e848- Multi-homed prefix 199780024

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlayTasks

_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network

25

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site Embedding widgets

_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site

_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api

26

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site

27

Prefix Count widget

AS Path Length widget

This ISP embedded widgets on its page

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site (Task)Tasks

_ Create a simple dashboard page to monitor your network_ Create a simple HTML page

_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml

_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo

28

RIPE RIPEstat MENOG 13

7 RIPEstat Data API Using raw data output

_ What is the conceptThe RIPEstat Data API provides the lowest level of access to data This data can be fed into custom applications or just used for scripting

_ RIPEstat Widget API documentation httpsstatripenetdocsdata_api

29

RIPE RIPEstat MENOG 13

7 RIPEstat Data API (Task)Tasks

_ Use your browser to retrieve all announced prefixes for the AS6412_ A simple check on your resource if it is seen on the Internet

_ Create a simple script using resource-overview or routing-status

30

RIPE RIPEstat MENOG 13

8 RIPE AtlasCreating a user-defined measurement

_ httpsatlasripenet

31

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API

_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)

_ Result codes for a check show the state

32

State Result Code

Ok

Warning

Error

0

1

2

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)Example of a Python based check

33

if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))

if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message

Page 25: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data

RIPE RIPEstat MENOG 13

5 Letrsquos BGPlayTasks

_ Find the up-stream provider for AS1205_ Is AS3333 multi-homed_ Check the IPv6 connectivity of your own network

25

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site Embedding widgets

_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site

_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api

26

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site

27

Prefix Count widget

AS Path Length widget

This ISP embedded widgets on its page

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site (Task)Tasks

_ Create a simple dashboard page to monitor your network_ Create a simple HTML page

_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml

_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo

28

RIPE RIPEstat MENOG 13

7 RIPEstat Data API Using raw data output

_ What is the conceptThe RIPEstat Data API provides the lowest level of access to data This data can be fed into custom applications or just used for scripting

_ RIPEstat Widget API documentation httpsstatripenetdocsdata_api

29

RIPE RIPEstat MENOG 13

7 RIPEstat Data API (Task)Tasks

_ Use your browser to retrieve all announced prefixes for the AS6412_ A simple check on your resource if it is seen on the Internet

_ Create a simple script using resource-overview or routing-status

30

RIPE RIPEstat MENOG 13

8 RIPE AtlasCreating a user-defined measurement

_ httpsatlasripenet

31

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API

_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)

_ Result codes for a check show the state

32

State Result Code

Ok

Warning

Error

0

1

2

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)Example of a Python based check

33

if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))

if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message

Page 26: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site Embedding widgets

_ What is the conceptWidgets are based purely on web standards and were developed with embeddability in mind Every widget available via the RIPEstat web interface can be embedded on your own site

_ RIPEstat Widget API documentation httpsstatripenetdocswidget_api

26

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site

27

Prefix Count widget

AS Path Length widget

This ISP embedded widgets on its page

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site (Task)Tasks

_ Create a simple dashboard page to monitor your network_ Create a simple HTML page

_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml

_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo

28

RIPE RIPEstat MENOG 13

7 RIPEstat Data API Using raw data output

_ What is the conceptThe RIPEstat Data API provides the lowest level of access to data This data can be fed into custom applications or just used for scripting

_ RIPEstat Widget API documentation httpsstatripenetdocsdata_api

29

RIPE RIPEstat MENOG 13

7 RIPEstat Data API (Task)Tasks

_ Use your browser to retrieve all announced prefixes for the AS6412_ A simple check on your resource if it is seen on the Internet

_ Create a simple script using resource-overview or routing-status

30

RIPE RIPEstat MENOG 13

8 RIPE AtlasCreating a user-defined measurement

_ httpsatlasripenet

31

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API

_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)

_ Result codes for a check show the state

32

State Result Code

Ok

Warning

Error

0

1

2

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)Example of a Python based check

33

if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))

if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message

Page 27: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site

27

Prefix Count widget

AS Path Length widget

This ISP embedded widgets on its page

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site (Task)Tasks

_ Create a simple dashboard page to monitor your network_ Create a simple HTML page

_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml

_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo

28

RIPE RIPEstat MENOG 13

7 RIPEstat Data API Using raw data output

_ What is the conceptThe RIPEstat Data API provides the lowest level of access to data This data can be fed into custom applications or just used for scripting

_ RIPEstat Widget API documentation httpsstatripenetdocsdata_api

29

RIPE RIPEstat MENOG 13

7 RIPEstat Data API (Task)Tasks

_ Use your browser to retrieve all announced prefixes for the AS6412_ A simple check on your resource if it is seen on the Internet

_ Create a simple script using resource-overview or routing-status

30

RIPE RIPEstat MENOG 13

8 RIPE AtlasCreating a user-defined measurement

_ httpsatlasripenet

31

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API

_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)

_ Result codes for a check show the state

32

State Result Code

Ok

Warning

Error

0

1

2

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)Example of a Python based check

33

if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))

if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message

Page 28: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data

RIPE RIPEstat MENOG 13

6 Embedding Widgets On Your Own Site (Task)Tasks

_ Create a simple dashboard page to monitor your network_ Create a simple HTML page

_ download the sample page httpsstatripenetwidgetsmenogwidget_homehtml

_ Embed three widgets of your choice_ Make the widget smaller and remove the RIPEstat logo

28

RIPE RIPEstat MENOG 13

7 RIPEstat Data API Using raw data output

_ What is the conceptThe RIPEstat Data API provides the lowest level of access to data This data can be fed into custom applications or just used for scripting

_ RIPEstat Widget API documentation httpsstatripenetdocsdata_api

29

RIPE RIPEstat MENOG 13

7 RIPEstat Data API (Task)Tasks

_ Use your browser to retrieve all announced prefixes for the AS6412_ A simple check on your resource if it is seen on the Internet

_ Create a simple script using resource-overview or routing-status

30

RIPE RIPEstat MENOG 13

8 RIPE AtlasCreating a user-defined measurement

_ httpsatlasripenet

31

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API

_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)

_ Result codes for a check show the state

32

State Result Code

Ok

Warning

Error

0

1

2

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)Example of a Python based check

33

if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))

if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message

Page 29: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data

RIPE RIPEstat MENOG 13

7 RIPEstat Data API Using raw data output

_ What is the conceptThe RIPEstat Data API provides the lowest level of access to data This data can be fed into custom applications or just used for scripting

_ RIPEstat Widget API documentation httpsstatripenetdocsdata_api

29

RIPE RIPEstat MENOG 13

7 RIPEstat Data API (Task)Tasks

_ Use your browser to retrieve all announced prefixes for the AS6412_ A simple check on your resource if it is seen on the Internet

_ Create a simple script using resource-overview or routing-status

30

RIPE RIPEstat MENOG 13

8 RIPE AtlasCreating a user-defined measurement

_ httpsatlasripenet

31

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API

_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)

_ Result codes for a check show the state

32

State Result Code

Ok

Warning

Error

0

1

2

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)Example of a Python based check

33

if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))

if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message

Page 30: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data

RIPE RIPEstat MENOG 13

7 RIPEstat Data API (Task)Tasks

_ Use your browser to retrieve all announced prefixes for the AS6412_ A simple check on your resource if it is seen on the Internet

_ Create a simple script using resource-overview or routing-status

30

RIPE RIPEstat MENOG 13

8 RIPE AtlasCreating a user-defined measurement

_ httpsatlasripenet

31

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API

_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)

_ Result codes for a check show the state

32

State Result Code

Ok

Warning

Error

0

1

2

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)Example of a Python based check

33

if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))

if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message

Page 31: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data

RIPE RIPEstat MENOG 13

8 RIPE AtlasCreating a user-defined measurement

_ httpsatlasripenet

31

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API

_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)

_ Result codes for a check show the state

32

State Result Code

Ok

Warning

Error

0

1

2

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)Example of a Python based check

33

if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))

if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message

Page 32: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)_ Create a Nagios check using the RIPEstat Data API

_ Nagios is a monitoring tool that supports the development of custom checks (like other similar tools)

_ Result codes for a check show the state

32

State Result Code

Ok

Warning

Error

0

1

2

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)Example of a Python based check

33

if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))

if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message

Page 33: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data

RIPE RIPEstat MENOG 13

9 Create a Nagios check (optional)Example of a Python based check

33

if argstransit transit = argstransitsplit()origin = argsoriginsplit()nagios_status = 0origin_errors = 0transit_errors = 0nagios_message = url = httpssdatalooking-glassdatajsonresource=s (argsstatserver urllib2quote(argsprefix ))lookingglass_raw = urllib2urlopen(url)lookingglass_json = jsonload(lookingglass_raw)if lookingglass_json[data_call_status] = supported print WARN s is under maintance (argsstatserver) sysexit(1)for rrc in lookingglass_json[data][rrcs] for peer in lookingglass_json[data][rrcs][rrc][entries] aspath = peer[as_path]split() details = peer[details][0]split() peer_addr = details[0] nexthop = details[2] router_id = details[3] if len(aspath) gt argsminpath if aspath[-1] not in origin origin_errors += 1 nagios_message = nagios_message + ( Origin missmatch s (s) s (rrc peer_addr aspath[-1])) if argstransit if aspath[-2] not in transit transit_errors += 1 nagios_message = nagios_message + ( Transit missmatch s (s) s (rrc peer_addr aspath[-2]))

if origin_errors == 0 and transit_errors == 0 nagios_message = OK s Origin is s (argsprefix argsorigin) if argstransit nagios_message = s and all transits match s (nagios_message argstransit) elif origin_errors gt= argscrit or transit_errors gt= argscrit nagios_status = 2 nagios_message = ERROR + nagios_messageelif origin_errors gt= argswarn or transit_errors gt= argswarn nagios_status = 1 nagios_message = WARN + nagios_message

Page 34: Tutorial: Using RIPEstat - RIPE Network Coordination Centre · 2018-08-17 · RIPE RIPEstat, MENOG 13 RIPEstat Web Interface •Information structure on RIPEstat 5 • FAQ • Data