ripe-bgp-state
スター14
フォーク3
更新日2026年2月28日 01:52
Fetches global BGP state data from RIPE NCC for a specific resource.
インストール
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SKILL.md
readonlyメニュー
Fetches global BGP state data from RIPE NCC for a specific resource.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Fetches DNS chain data from RIPE NCC for a specific domain. This skill must be used whenever the user asks for a 'chain', 'full path', or 'multi-step' DNS resolution
Returns the number of BGP updates seen for a resource.
SOC 職業分類に基づく
| name | ripe-bgp-state |
| description | Fetches global BGP state data from RIPE NCC for a specific resource. |
| metadata | {"category":"network"} |
This skill queries the RIPE Stat API to retrieve global BGP state information for a specific IP prefix or ASN.
Set the resource variable in the variables argument to the IP prefix or ASN you wish to query (e.g., 1.1.1.0/24).
import requests
import json
import sys
resource = locals().get("resource") or (sys.argv[1] if len(sys.argv) > 1 else None)
if resource:
response = requests.get("https://stat.ripe.net/data/bgp-state/data.json", params={"resource": resource})
print(json.dumps(response.json(), indent=2))
else:
print("Error: The 'resource' variable is required. Please provide it in the 'variables' argument.")
resource: The IP prefix or ASN to query (e.g., 1.1.1.0/24 or AS3333).A JSON object containing:
status: Request status.data: Contains bgp_state list with route details (path, source_id, target_prefix, etc.).