Rene Fichtmueller d7144731e0 feat(scraper): add 100+ OEM seed scrapers + tip-llm-guided inference layer
New OEM transceiver seed scrapers (94 cron-scheduled, 24/7):
- Media/Broadcast: Evertz, Grass Valley, Haivision, Viasat
- Asian Optical: FiberHome, Oplink, Accelink, Hisense Broadband
- Optical Mfrs: Lumentum, II-VI/Coherent, Source Photonics, O-Net,
  InnoLight, AOI, Sumitomo Electric, NeoPhotonics
- Industrial: GE Grid, Schweitzer, Moxa Industrial, Cisco IE,
  Phoenix Contact, Beckhoff, Omron, ABB, Siemens, Schneider, Rockwell, Belden
- Enterprise/DC: Arista, Pica8, Pluribus, DriveNets, Cisco (Meraki/Catalyst/Nexus/ASR)
- Cloud: AWS, Azure, Google Cloud, Meta
- Storage: NetApp, Pure Storage, HPE Storage, IBM Storage, Dell Storage, Hitachi Vantara
- 5G/RAN: Samsung Networks, Nokia AirScale, Ericsson RAN, Mavenir
- Security: Check Point, Barracuda, Fortinet, Palo Alto
- Telecom Optical: ADVA, PacketLight, FiberHome, Accelink, Hisense

API: tip-llm-guided inference layer (strict schema + repair-retry + safe fallback)
- POST /api/tip-llm/infer|research-plan|extract|finding|health
- Hard JSON schema enforcement, create_finding=false on empty evidence
- Confidence gate (>= 0.4), validation with consistency check

Build: added incremental=true to scraper tsconfig (OOM prevention)
Scheduler: 87 → 94 registered workers
2026-04-27 00:00:14 +02:00

370 lines
12 KiB
TypeScript

/**
* QLogic / Marvell OEM Transceiver Catalog Seed
*
* Seeds QLogic-branded transceiver PIDs for Fibre Channel HBAs and
* iSCSI/FCoE adapters. QLogic is now owned by Marvell but continues
* shipping under the QLogic brand for FC/storage markets.
*
* Sources:
* - Marvell FC HBA product page (marvell.com/products/fibre-channel-host-bus-adapters)
* - QLogic HBA optical transceiver compatibility guides
* - SFF-8024 Fibre Channel speed codes
*
* Run: tsx packages/scraper/src/scrapers/qlogic-oem.ts
* Cron: daily at 05:15
*/
import { pool, ensureVendor } from "../utils/db";
interface QlogicPID {
pid: string;
formFactor: string;
speedGbps: number;
speed: string;
reachMeters: number;
reachLabel: string;
fiberType: string;
connector: string;
wavelengths?: string;
standard?: string;
notes?: string;
}
// Fibre Channel line-rate speeds (Gbps):
// 2G = 2.125 Gbps (1x FC)
// 4G = 4.25 Gbps (2x FC)
// 8G = 8.5 Gbps (4x FC)
// 16G = 14.025 Gbps (8x FC)
// 32G = 28.05 Gbps (16x FC)
// 64G = 56.1 Gbps (32x FC)
const QLOGIC_PIDS: QlogicPID[] = [
// ── 2G FC SFP ────────────────────────────────────────────────────────────
{
pid: "QL-SFP-2G-FC-SW",
formFactor: "SFP",
speedGbps: 2.125,
speed: "2G FC",
reachMeters: 300,
reachLabel: "SW",
fiberType: "MMF",
connector: "LC",
wavelengths: "850nm",
standard: "2GFC",
notes: "2G Fibre Channel short-wave; OM2/OM3 MMF; QLogic HBA 2G port",
},
// ── 4G FC SFP ────────────────────────────────────────────────────────────
{
pid: "QL-SFP-4G-FC-SW",
formFactor: "SFP",
speedGbps: 4.25,
speed: "4G FC",
reachMeters: 380,
reachLabel: "SW",
fiberType: "MMF",
connector: "LC",
wavelengths: "850nm",
standard: "4GFC",
notes: "4G Fibre Channel short-wave; OM3 MMF preferred",
},
// ── 8G FC SFP ────────────────────────────────────────────────────────────
{
pid: "QL-SFP-8G-FC-SW",
formFactor: "SFP",
speedGbps: 8.5,
speed: "8G FC",
reachMeters: 150,
reachLabel: "SW",
fiberType: "MMF",
connector: "LC",
wavelengths: "850nm",
standard: "8GFC",
notes: "8G Fibre Channel short-wave; OM3/OM4 MMF; QLogic QLE2560/2562 HBAs",
},
{
pid: "QL-SFP-8G-FC-LW",
formFactor: "SFP",
speedGbps: 8.5,
speed: "8G FC",
reachMeters: 10000,
reachLabel: "LW",
fiberType: "SMF",
connector: "LC",
wavelengths: "1310nm",
standard: "8GFC",
notes: "8G Fibre Channel long-wave; OS2 SMF; up to 10km",
},
// ── 16G FC SFP ───────────────────────────────────────────────────────────
{
pid: "QL-SFP-16G-FC-SW",
formFactor: "SFP",
speedGbps: 14.025,
speed: "16G FC",
reachMeters: 125,
reachLabel: "SW",
fiberType: "MMF",
connector: "LC",
wavelengths: "850nm",
standard: "16GFC",
notes: "16G FC short-wave; OM4 MMF recommended; QLogic QLE2670/2672 HBAs",
},
{
pid: "QL-SFP-16G-FC-LW",
formFactor: "SFP",
speedGbps: 14.025,
speed: "16G FC",
reachMeters: 10000,
reachLabel: "LW",
fiberType: "SMF",
connector: "LC",
wavelengths: "1310nm",
standard: "16GFC",
notes: "16G FC long-wave; OS2 SMF; campus/inter-building SANs",
},
// ── 32G FC SFP+ ──────────────────────────────────────────────────────────
{
pid: "QL-SFP-32G-FC-SW",
formFactor: "SFP+",
speedGbps: 28.05,
speed: "32G FC",
reachMeters: 100,
reachLabel: "SW",
fiberType: "MMF",
connector: "LC",
wavelengths: "850nm",
standard: "32GFC",
notes: "32G FC short-wave; OM4/OM5 MMF; QLogic QLE2740/2742 HBAs",
},
{
pid: "QL-SFP-32G-FC-LW",
formFactor: "SFP+",
speedGbps: 28.05,
speed: "32G FC",
reachMeters: 10000,
reachLabel: "LW",
fiberType: "SMF",
connector: "LC",
wavelengths: "1310nm",
standard: "32GFC",
notes: "32G FC long-wave; OS2 SMF; extended-distance SAN links",
},
// ── 64G FC SFP28 ─────────────────────────────────────────────────────────
{
pid: "QL-SFP28-64G-FC-SW",
formFactor: "SFP28",
speedGbps: 56.1,
speed: "64G FC",
reachMeters: 100,
reachLabel: "SW",
fiberType: "MMF",
connector: "LC",
wavelengths: "850nm",
standard: "64GFC",
notes: "64G FC short-wave; OM4/OM5 MMF; QLogic QLE2870 NVMe/FC HBAs",
},
// ── 32G FC QSFP28 (4x8G breakout) ────────────────────────────────────────
{
pid: "QL-QSFP28-32G-FC-4X",
formFactor: "QSFP28",
speedGbps: 32,
speed: "32G FC",
reachMeters: 100,
reachLabel: "SR4",
fiberType: "MMF",
connector: "MPO",
wavelengths: "850nm",
standard: "32GFC",
notes: "QSFP28 to 4x SFP28 32G FC breakout; OM4 MPO; director-class switches",
},
// ── iSCSI SFP ────────────────────────────────────────────────────────────
{
pid: "QL-SFP-iSCSI-1G-SX",
formFactor: "SFP",
speedGbps: 1,
speed: "1G",
reachMeters: 550,
reachLabel: "SX",
fiberType: "MMF",
connector: "LC",
wavelengths: "850nm",
standard: "1000BASE-SX",
notes: "1GbE SFP SX for QLogic iSCSI HBA optical port",
},
{
pid: "QL-SFP-iSCSI-1G-LX",
formFactor: "SFP",
speedGbps: 1,
speed: "1G",
reachMeters: 10000,
reachLabel: "LX",
fiberType: "SMF",
connector: "LC",
wavelengths: "1310nm",
standard: "1000BASE-LX",
notes: "1GbE SFP LX for QLogic iSCSI HBA optical port",
},
{
pid: "QL-SFP-iSCSI-10G-SR",
formFactor: "SFP+",
speedGbps: 10,
speed: "10G",
reachMeters: 300,
reachLabel: "SR",
fiberType: "MMF",
connector: "LC",
wavelengths: "850nm",
standard: "10GBASE-SR",
notes: "10GbE SFP+ SR for QLogic 10GbE iSCSI CNA",
},
{
pid: "QL-SFP-iSCSI-10G-LR",
formFactor: "SFP+",
speedGbps: 10,
speed: "10G",
reachMeters: 10000,
reachLabel: "LR",
fiberType: "SMF",
connector: "LC",
wavelengths: "1310nm",
standard: "10GBASE-LR",
notes: "10GbE SFP+ LR for QLogic 10GbE iSCSI CNA",
},
// ── FCoE SFP+ ────────────────────────────────────────────────────────────
{
pid: "QL-SFP-FCoE-10G-SR",
formFactor: "SFP+",
speedGbps: 10,
speed: "10G",
reachMeters: 300,
reachLabel: "SR",
fiberType: "MMF",
connector: "LC",
wavelengths: "850nm",
standard: "10GBASE-SR",
notes: "10GbE SFP+ SR for QLogic FCoE CNA (FibreChannel over Ethernet)",
},
{
pid: "QL-SFP-FCoE-10G-LR",
formFactor: "SFP+",
speedGbps: 10,
speed: "10G",
reachMeters: 10000,
reachLabel: "LR",
fiberType: "SMF",
connector: "LC",
wavelengths: "1310nm",
standard: "10GBASE-LR",
notes: "10GbE SFP+ LR for QLogic FCoE CNA",
},
// ── 25G / 100G Ethernet (Marvell FastLinQ CNAs) ───────────────────────────
{
pid: "QL-SFP-25G-SR",
formFactor: "SFP28",
speedGbps: 25,
speed: "25G",
reachMeters: 100,
reachLabel: "SR",
fiberType: "MMF",
connector: "LC",
wavelengths: "850nm",
standard: "25GBASE-SR",
notes: "25GbE SFP28 SR for Marvell FastLinQ QL41000 CNA",
},
{
pid: "QL-SFP-25G-LR",
formFactor: "SFP28",
speedGbps: 25,
speed: "25G",
reachMeters: 10000,
reachLabel: "LR",
fiberType: "SMF",
connector: "LC",
wavelengths: "1310nm",
standard: "25GBASE-LR",
notes: "25GbE SFP28 LR for Marvell FastLinQ QL41000 CNA",
},
{
pid: "QL-QSFP28-100G-SR4",
formFactor: "QSFP28",
speedGbps: 100,
speed: "100G",
reachMeters: 100,
reachLabel: "SR4",
fiberType: "MMF",
connector: "MPO",
wavelengths: "850nm",
standard: "100GBASE-SR4",
notes: "100GbE QSFP28 SR4; Marvell FastLinQ QL45000 series CNA",
},
{
pid: "QL-QSFP28-100G-LR4",
formFactor: "QSFP28",
speedGbps: 100,
speed: "100G",
reachMeters: 10000,
reachLabel: "LR4",
fiberType: "SMF",
connector: "LC",
wavelengths: "1295-1310nm",
standard: "100GBASE-LR4",
notes: "100GbE QSFP28 LR4; Marvell FastLinQ QL45000 series CNA",
},
];
export async function scrapeQlogicOem(): Promise<void> {
console.log("=== QLogic / Marvell OEM Transceiver Seed ===\n");
const vendorId = await ensureVendor(
"QLogic",
"oem",
"https://www.marvell.com/products/fibre-channel-host-bus-adapters.html",
undefined
);
let inserted = 0;
let updated = 0;
let errors = 0;
for (const p of QLOGIC_PIDS) {
const slug = `qlogic-${p.pid.toLowerCase().replace(/[^a-z0-9]+/g, "-")}`;
try {
const res = await pool.query(
`INSERT INTO transceivers
(slug, part_number, vendor_id, form_factor, speed, speed_gbps,
reach_meters, reach_label, fiber_type, connector, wavelengths,
dom_support, ieee_reference, market_status, category, notes)
VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,true,$12,'Mainstream','DataCenter',$13)
ON CONFLICT (slug) DO UPDATE SET
speed_gbps = EXCLUDED.speed_gbps,
reach_meters = CASE WHEN EXCLUDED.reach_meters > 0 THEN EXCLUDED.reach_meters ELSE transceivers.reach_meters END,
fiber_type = CASE WHEN EXCLUDED.fiber_type <> '' THEN EXCLUDED.fiber_type ELSE transceivers.fiber_type END,
wavelengths = COALESCE(EXCLUDED.wavelengths, transceivers.wavelengths),
updated_at = NOW()
RETURNING (xmax = 0) as was_inserted`,
[slug, p.pid, vendorId, p.formFactor, p.speed, p.speedGbps,
p.reachMeters, p.reachLabel, p.fiberType, p.connector,
p.wavelengths ?? null, p.standard ?? null, p.notes ?? null]
);
if (res.rows[0]?.was_inserted) inserted++; else updated++;
} catch (err) {
console.warn(` Skip ${p.pid}: ${(err as Error).message.slice(0, 80)}`);
errors++;
}
}
console.log(`\n=== QLogic OEM Seed Complete ===`);
console.log(` Inserted: ${inserted}`);
console.log(` Updated: ${updated}`);
console.log(` Errors: ${errors}`);
console.log(` Total PIDs: ${QLOGIC_PIDS.length}\n`);
}
if (require.main === module) {
scrapeQlogicOem()
.then(() => pool.end())
.catch((err) => {
console.error("Fatal:", err);
pool.end();
process.exit(1);
});
}