#!/bin/bash # Create files for ISD 64 (Switzerland) cat > db/as/559 << EOF % SCION AS WHOIS Information AS Identifier: 559 ISD: 64 AS decimal: 559 Organization: SWITCH CH Country: CH Status: ASSIGNED Description: Core Contact: noc@switch.ch DateAllocated: 2025-05-13 EOF cat > db/as/3303 << EOF % SCION AS WHOIS Information AS Identifier: 3303 ISD: 64 AS decimal: 3303 Organization: Swisscom CH Country: CH Status: ASSIGNED Description: Core, Issuing Contact: noc@swisscom.ch DateAllocated: 2025-05-13 EOF cat > db/as/6730 << EOF % SCION AS WHOIS Information AS Identifier: 6730 ISD: 64 AS decimal: 6730 Organization: Sunrise CH Country: CH Status: ASSIGNED Description: Core Contact: noc@sunrise.ch DateAllocated: 2025-05-13 EOF cat > db/as/8300 << EOF % SCION AS WHOIS Information AS Identifier: 8300 ISD: 64 AS decimal: 8300 Organization: Swisscom Lab Country: CH Status: ASSIGNED Description: Swisscom Lab Contact: noc@swisscom.ch DateAllocated: 2025-05-13 EOF cat > db/as/8883 << EOF % SCION AS WHOIS Information AS Identifier: 8883 ISD: 64 AS decimal: 8883 Organization: UBS Switzerland Country: CH Status: ASSIGNED Description: UBS Switzerland Contact: noc@ubs.ch DateAllocated: 2025-05-13 EOF cat > db/as/12350 << EOF % SCION AS WHOIS Information AS Identifier: 12350 ISD: 64 AS decimal: 12350 Organization: VTX CH Country: CH Status: ASSIGNED Description: Core Contact: noc@vtx.ch DateAllocated: 2025-05-13 EOF cat > db/as/13030 << EOF % SCION AS WHOIS Information AS Identifier: 13030 ISD: 64 AS decimal: 13030 Organization: Init7 CH Country: CH Status: ASSIGNED Description: Core Contact: noc@init7.ch DateAllocated: 2025-05-13 EOF cat > db/as/15623 << EOF % SCION AS WHOIS Information AS Identifier: 15623 ISD: 64 AS decimal: 15623 Organization: Cyberlink Country: CH Status: ASSIGNED Description: Core Contact: noc@cyberlink.ch DateAllocated: 2025-05-13 EOF cat > db/as/24951 << EOF % SCION AS WHOIS Information AS Identifier: 24951 ISD: 64 AS decimal: 24951 Organization: EveryWare CH Country: CH Status: ASSIGNED Description: EveryWare CH Contact: noc@everyware.ch DateAllocated: 2025-05-13 EOF cat > db/as/59414 << EOF % SCION AS WHOIS Information AS Identifier: 59414 ISD: 64 AS decimal: 59414 Organization: Cyberlink AG Country: CH Status: ASSIGNED Description: Cyberlink AG Contact: noc@cyberlink.ch DateAllocated: 2025-05-13 EOF cat > db/as/59647 << EOF % SCION AS WHOIS Information AS Identifier: 59647 ISD: 64 AS decimal: 59647 Organization: EKT AG Country: CH Status: ASSIGNED Description: EKT AG Contact: noc@ekt.ch DateAllocated: 2025-05-13 EOF cat > db/as/60284 << EOF % SCION AS WHOIS Information AS Identifier: 60284 ISD: 64 AS decimal: 60284 Organization: Axpo WZ Systems CH Country: CH Status: ASSIGNED Description: Axpo WZ Systems CH Contact: noc@axpo-systems.com DateAllocated: 2025-05-13 EOF cat > db/as/64580 << EOF % SCION AS WHOIS Information AS Identifier: 64580 ISD: 64 AS decimal: 64580 Organization: Frankfurter Bankgesellschaft (Schweiz) AG Country: CH Status: ASSIGNED Description: Frankfurter Bankgesellschaft (Schweiz) AG Contact: noc@frankfurter-bankgesellschaft.ch DateAllocated: 2025-05-13 EOF cat > db/as/196722 << EOF % SCION AS WHOIS Information AS Identifier: 196722 ISD: 64 AS decimal: 196722 Organization: SNB CH Country: CH Status: ASSIGNED Description: SNB CH Contact: noc@snb.ch DateAllocated: 2025-05-13 EOF # Create files for SCION AS identifiers in ISD 64 cat > db/as/2:0:0 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:0 ISD: 64 AS decimal: Organization: Anapaya Zurich Internet Collection Country: CH Status: ASSIGNED Description: Anapaya Zurich Internet Collection Contact: noc@anapaya.net DateAllocated: 2025-05-13 EOF cat > db/as/2:0:2 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:2 ISD: 64 AS decimal: Organization: SIX Integration Environment Country: CH Status: ASSIGNED Description: Environment for Connectivity and Process verifications for dedicated test infrastructure Contact: noc@six-group.com DateAllocated: 2025-05-13 EOF cat > db/as/2:0:3 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:3 ISD: 64 AS decimal: Organization: ZKB CH Country: CH Status: ASSIGNED Description: ZKB CH Contact: noc@zkb.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:4 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:4 ISD: 64 AS decimal: Organization: Mobile Connections POC (Swisscom SIM cards) Country: CH Status: ASSIGNED Description: Mobile Connections POC (Swisscom SIM cards) Contact: noc@swisscom.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:5 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:5 ISD: 64 AS decimal: Organization: Mobile Connections POC (Swisscom SIM cards) Country: CH Status: ASSIGNED Description: Mobile Connections POC (Swisscom SIM cards) Contact: noc@swisscom.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:9 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:9 ISD: 64 AS decimal: Organization: ETH Zurich (ETHZ) Country: CH Status: ASSIGNED Description: ETH Zurich (ETHZ) Contact: noc@ethz.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:c << EOF % SCION AS WHOIS Information AS Identifier: 2:0:c ISD: 64 AS decimal: Organization: Swiss National Supercomputing Centre (CSCS) Country: CH Status: ASSIGNED Description: Swiss National Supercomputing Centre (CSCS) Contact: noc@cscs.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:13 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:13 ISD: 64 AS decimal: Organization: Anapaya CONNECT Zurich Country: CH Status: ASSIGNED Description: Core, Issuing Contact: noc@anapaya.net DateAllocated: 2025-05-13 EOF cat > db/as/2:0:17 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:17 ISD: 64 AS decimal: Organization: Axpo WZ Systems CH Country: CH Status: ASSIGNED Description: Axpo WZ Systems CH Contact: noc@axpo-systems.com DateAllocated: 2025-05-13 EOF cat > db/as/2:0:1a << EOF % SCION AS WHOIS Information AS Identifier: 2:0:1a ISD: 64 AS decimal: Organization: Anapaya Zurich Hardturm Country: CH Status: ASSIGNED Description: Anapaya Zurich Hardturm Contact: noc@anapaya.net DateAllocated: 2025-05-13 EOF cat > db/as/2:0:1b << EOF % SCION AS WHOIS Information AS Identifier: 2:0:1b ISD: 64 AS decimal: Organization: Sunrise Test AS Country: CH Status: ASSIGNED Description: Sunrise Test AS Contact: noc@sunrise.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:1d << EOF % SCION AS WHOIS Information AS Identifier: 2:0:1d ISD: 64 AS decimal: Organization: Swisscom CH Test Country: CH Status: ASSIGNED Description: Swisscom CH Test Contact: noc@swisscom.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:1f << EOF % SCION AS WHOIS Information AS Identifier: 2:0:1f ISD: 64 AS decimal: Organization: Sunrise Test AS Country: CH Status: ASSIGNED Description: Sunrise Test AS Contact: noc@sunrise.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:21 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:21 ISD: 64 AS decimal: Organization: Sunrise Test AS 3 Country: CH Status: ASSIGNED Description: Sunrise Test AS 3 Contact: noc@sunrise.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:22 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:22 ISD: 64 AS decimal: Organization: Sunrise Ambassador House CH ISD Country: CH Status: ASSIGNED Description: Sunrise Ambassador House CH ISD Contact: noc@sunrise.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:23 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:23 ISD: 64 AS decimal: Organization: InterCloud CH Zurich Country: CH Status: ASSIGNED Description: Core Contact: noc@intercloud.com DateAllocated: 2025-05-13 EOF cat > db/as/2:0:27 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:27 ISD: 64 AS decimal: Organization: Cyberlink Customer A Country: CH Status: ASSIGNED Description: Cyberlink Customer A Contact: noc@cyberlink.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:28 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:28 ISD: 64 AS decimal: Organization: Cyberlink Cloud Test AS Country: CH Status: ASSIGNED Description: Cyberlink Cloud Test AS Contact: noc@cyberlink.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:29 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:29 ISD: 64 AS decimal: Organization: VBS Country: CH Status: ASSIGNED Description: VBS Contact: noc@vbs.admin.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:2a << EOF % SCION AS WHOIS Information AS Identifier: 2:0:2a ISD: 64 AS decimal: Organization: CyberLink Country: CH Status: ASSIGNED Description: SBAS PoP Contact: noc@cyberlink.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:2b << EOF % SCION AS WHOIS Information AS Identifier: 2:0:2b ISD: 64 AS decimal: Organization: Armasuisse CYD Campus Zürich Country: CH Status: ASSIGNED Description: Armasuisse CYD Campus Zürich Contact: noc@armasuisse.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:2c << EOF % SCION AS WHOIS Information AS Identifier: 2:0:2c ISD: 64 AS decimal: Organization: Armasuisse Thun Country: CH Status: ASSIGNED Description: Armasuisse Thun Contact: noc@armasuisse.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:2d << EOF % SCION AS WHOIS Information AS Identifier: 2:0:2d ISD: 64 AS decimal: Organization: Armasuisse Lausanne Country: CH Status: ASSIGNED Description: Armasuisse Lausanne Contact: noc@armasuisse.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:30 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:30 ISD: 64 AS decimal: Organization: AWK Group AG Country: CH Status: ASSIGNED Description: AWK Group AG Contact: noc@awk.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:36 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:36 ISD: 64 AS decimal: Organization: RUAG Country: CH Status: ASSIGNED Description: RUAG Contact: noc@ruag.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:37 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:37 ISD: 64 AS decimal: Organization: UBS Country: CH Status: ASSIGNED Description: UBS Contact: noc@ubs.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:38 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:38 ISD: 64 AS decimal: Organization: UBS Country: CH Status: ASSIGNED Description: UBS Contact: noc@ubs.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:3a << EOF % SCION AS WHOIS Information AS Identifier: 2:0:3a ISD: 64 AS decimal: Organization: Mysten Country: CH Status: ASSIGNED Description: Mysten Labs Switzerland Contact: noc@mystenlabs.com DateAllocated: 2025-05-13 EOF cat > db/as/2:0:41 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:41 ISD: 64 AS decimal: Organization: RUAG Country: CH Status: ASSIGNED Description: RUAG Contact: noc@ruag.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:44 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:44 ISD: 64 AS decimal: Organization: VTX Country: CH Status: ASSIGNED Description: VTX Contact: noc@vtx.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:45 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:45 ISD: 64 AS decimal: Organization: VTX Country: CH Status: ASSIGNED Description: VTX Contact: noc@vtx.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:46 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:46 ISD: 64 AS decimal: Organization: Swisscom Country: CH Status: ASSIGNED Description: Swisscom Contact: noc@swisscom.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:4c << EOF % SCION AS WHOIS Information AS Identifier: 2:0:4c ISD: 64 AS decimal: Organization: AWS PoC Anapaya Country: CH Status: ASSIGNED Description: AWS PoC Anapaya Contact: noc@anapaya.net DateAllocated: 2025-05-13 EOF cat > db/as/2:0:4f << EOF % SCION AS WHOIS Information AS Identifier: 2:0:4f ISD: 64 AS decimal: Organization: Infoguard Honeypot Country: CH Status: ASSIGNED Description: Infoguard Honeypot Contact: noc@infoguard.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:53 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:53 ISD: 64 AS decimal: Organization: Everyware Lab 1 Country: CH Status: ASSIGNED Description: Everyware Lab 1 Contact: noc@everyware.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:54 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:54 ISD: 64 AS decimal: Organization: Everyware Lab 2 Country: CH Status: ASSIGNED Description: Everyware Lab 2 Contact: noc@everyware.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:56 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:56 ISD: 64 AS decimal: Organization: Armasuisse Andermatt Country: CH Status: ASSIGNED Description: Core Contact: noc@armasuisse.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:5d << EOF % SCION AS WHOIS Information AS Identifier: 2:0:5d ISD: 64 AS decimal: Organization: BIS Innovation Hub Centre - Switzerland Country: CH Status: ASSIGNED Description: BIS Innovation Hub Centre - Switzerland Contact: noc@bis.org DateAllocated: 2025-05-13 EOF cat > db/as/2:0:63 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:63 ISD: 64 AS decimal: Organization: smaro GmbH Country: CH Status: ASSIGNED Description: smaro GmbH Contact: noc@smaro.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:64 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:64 ISD: 64 AS decimal: Organization: Swisscom Country: CH Status: ASSIGNED Description: Swisscom Contact: noc@swisscom.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:65 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:65 ISD: 64 AS decimal: Organization: HEIG-VD Country: CH Status: ASSIGNED Description: HEIG-VD Contact: noc@heig-vd.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:66 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:66 ISD: 64 AS decimal: Organization: Kanton Solothurn Country: CH Status: ASSIGNED Description: Kanton Solothurn Contact: noc@so.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:6f << EOF % SCION AS WHOIS Information AS Identifier: 2:0:6f ISD: 64 AS decimal: Organization: SNB Lausanne Country: CH Status: ASSIGNED Description: SNB Lausanne Contact: noc@snb.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:70 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:70 ISD: 64 AS decimal: Organization: Anapaya Azure Test AS Country: CH Status: ASSIGNED Description: Anapaya Azure Test AS Contact: noc@anapaya.net DateAllocated: 2025-05-13 EOF cat > db/as/2:0:74 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:74 ISD: 64 AS decimal: Organization: Anapaya Germany GATE Service from Switzerland Country: CH Status: ASSIGNED Description: Anapaya Germany GATE Service from Switzerland Contact: noc@anapaya.net DateAllocated: 2025-05-13 EOF cat > db/as/2:0:75 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:75 ISD: 64 AS decimal: Organization: Anapaya France GATE Service from Switzerland Country: CH Status: ASSIGNED Description: Anapaya France GATE Service from Switzerland Contact: noc@anapaya.net DateAllocated: 2025-05-13 EOF cat > db/as/2:0:82 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:82 ISD: 64 AS decimal: Organization: Anapaya GlobalConnect from Switzerland Country: CH Status: ASSIGNED Description: Anapaya GlobalConnect from Switzerland Contact: noc@anapaya.net DateAllocated: 2025-05-13 EOF cat > db/as/2:0:85 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:85 ISD: 64 AS decimal: Organization: BIS Azure Country: CH Status: ASSIGNED Description: BIS Azure Contact: noc@bis.org DateAllocated: 2025-05-13 EOF cat > db/as/2:0:86 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:86 ISD: 64 AS decimal: Organization: Axpo Azure Country: CH Status: ASSIGNED Description: Axpo Azure Contact: noc@axpo-systems.com DateAllocated: 2025-05-13 EOF cat > db/as/2:0:87 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:87 ISD: 64 AS decimal: Organization: Anapaya Systems GC Country: CH Status: ASSIGNED Description: Anapaya Systems GC Contact: noc@anapaya.net DateAllocated: 2025-05-13 EOF cat > db/as/2:0:92 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:92 ISD: 64 AS decimal: Organization: PCB Country: CH Status: ASSIGNED Description: PCB Contact: noc@pcb.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:96 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:96 ISD: 64 AS decimal: Organization: Cyberlink AWS Test AS Country: CH Status: ASSIGNED Description: Cyberlink AWS Test AS Contact: noc@cyberlink.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:97 << EOF % SCION AS WHOIS Information AS Identifier: 2:0:97 ISD: 64 AS decimal: Organization: Cyberlink Azure Test AS Country: CH Status: ASSIGNED Description: Cyberlink Azure Test AS Contact: noc@cyberlink.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:9a << EOF % SCION AS WHOIS Information AS Identifier: 2:0:9a ISD: 64 AS decimal: Organization: Sunrise UPC GmbH Country: CH Status: ASSIGNED Description: Sunrise UPC GmbH Contact: noc@sunrise.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:9b << EOF % SCION AS WHOIS Information AS Identifier: 2:0:9b ISD: 64 AS decimal: Organization: Schweizerische Nationalbank Country: CH Status: ASSIGNED Description: Schweizerische Nationalbank Contact: noc@snb.ch DateAllocated: 2025-05-13 EOF cat > db/as/2:0:9c << EOF % SCION AS WHOIS Information AS Identifier: 2:0:9c ISD: 64 AS decimal: Organization: ETH Zurich (ETHZ) Country: CH Status: ASSIGNED Description: ETH Zurich (ETHZ) Contact: noc@ethz.ch DateAllocated: 2025-05-13 EOF # Create files for other ISDs (65, 66, 67, 71, 72, 74, 75) # Europe (ISD 65) cat > db/as/2:0:f << EOF % SCION AS WHOIS Information AS Identifier: 2:0:f ISD: 65 AS decimal: Organization: Anapaya CONNECT Frankfurt Country: DE Status: ASSIGNED Description: Core, Voting, Issuing Contact: noc@anapaya.net DateAllocated: 2025-05-13 EOF # Add more AS files for other ISDs... # This is just a sample, you would need to create all the files listed in the allocation table echo "Database files generated successfully."