Netpulse_SasS/server/migrations/0014_ncm_profiles.sql
byrsapty 205dd5e079 Пакування: runner міграцій і вшитий у бінарник фронтенд
netpulse-migrate замість PowerShell-скрипта: у контейнері немає ані
psql, ані PowerShell, а тягнути клієнт Postgres в образ заради одного
запуску — це половина дистрибутива на порожньому місці.

Міграції вшиті через embed і переїхали в server/migrations: embed не
бачить нічого за межами кореня свого модуля, а міграції поруч із
бінарником, який їх накочує, не можуть розійтися версіями.

Накочування під advisory-блокуванням: два інстанси при rolling update
інакше застосували б ту саму міграцію двічі. Кожен файл в одній
транзакції разом із записом у schema_migrations; виняток — continuous
aggregates, які TimescaleDB забороняє в транзакції. Змінена вже
застосована міграція зупиняє запуск: у різних інсталяціях інакше
опиниться різна схема під одним номером.

Перевірено на чистій базі: 23 міграції, 101 таблиця, повторний запуск
каже «схема актуальна».

Веб віддає сам API через embed: на self-hosted це прибирає з інструкції
встановлення цілий компонент. Три політики кешування — назавжди для
assets із хешем у імені, ніколи для index.html, коротко для решти.

Знайдено живим прогоном: невідомий шлях під /api/ віддавав 200 з
index.html, і клієнт падав на розборі HTML як JSON замість чесного 404.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-25 01:01:55 +03:00

1124 lines
65 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- =====================================================================
-- NetPulse :: 0014_ncm_profiles.sql
-- Каталог команд збору конфігу: 147 платформ, 67 вендорів.
--
-- ФАЙЛ ЗГЕНЕРОВАНО. Джерело — db/profiles/catalog.json.
-- Правити тут безглуздо: наступна збірка перезапише. Щоб додати
-- платформу, відредагуй каталог і виконай db/profiles/build.py.
--
-- Промпти й команди вимкнення пейджера задані за родиною CLI й
-- перевіряються на живому залізі перед промисловим ужитком: одна
-- родина покриває десятки платформ, і дрібні відхилення трапляються.
-- =====================================================================
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, '3com-4500', '3Com 4500', '3com', 'ssh', '["screen-length 0 temporary", "display current-configuration"]', '[\]>]\s*$',
false, '["^!Last configuration was updated"]', '["(password|cipher) \\S+", "snmp-agent community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, '3com-superstack3-4500', '3Com SuperStack3_4500', '3com', 'ssh', '["screen-length 0 temporary", "display current-configuration"]', '[\]>]\s*$',
false, '["^!Last configuration was updated"]', '["(password|cipher) \\S+", "snmp-agent community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 3
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'addpac-apos', 'AddPac APOS', 'addpac', 'ssh', '["show running-config"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- альтернативи: info configure flat
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'alcatel-7302', 'Alcatel 7302', 'alcatel', 'ssh', '["terminal length 0", "environment inhibit-alarms mode batch terminal-timeout timeout:30"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'alcatel-aos', 'Alcatel AOS', 'alcatel', 'ssh', '["terminal length 0", "show configuration snapshot"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'alcatel-os62xx', 'Alcatel OS62xx', 'alcatel', 'ssh', '["terminal length 0", "show running-config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 6; альтернативи: show bof, configure li, info
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'alcatel-timos', 'Alcatel TIMOS', 'alcatel', 'ssh', '["terminal length 0", "admin display"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'alliedtelesis-at8000', 'AlliedTelesis AT8000', 'alliedtelesis', 'ssh', '["show config"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'alliedtelesis-at8000s', 'AlliedTelesis AT8000S', 'alliedtelesis', 'ssh', '["show running-config"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'alliedtelesis-at8100', 'AlliedTelesis AT8100', 'alliedtelesis', 'ssh', '["show running-config"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'alliedtelesis-at8500', 'AlliedTelesis AT8500', 'alliedtelesis', 'ssh', '["show config dynamic"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'alliedtelesis-at9400', 'AlliedTelesis AT9400', 'alliedtelesis', 'ssh', '["show config dynamic"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'alliedtelesis-at9900', 'AlliedTelesis AT9900', 'alliedtelesis', 'ssh', '["show config dynamic"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'alstec-24xx', 'Alstec 24xx', 'alstec', 'ssh', '["show running-config"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'alstec-7200', 'Alstec 7200', 'alstec', 'ssh', '["show running-config"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- startup: show startup-config
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'alstec-als', 'Alstec ALS', 'alstec', 'ssh', '["show running-config"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- startup: show startup-config
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'alstec-mspu', 'Alstec MSPU', 'alstec', 'ssh', '["show running-config"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- startup: show startup-config
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'angtel-topaz', 'Angtel Topaz', 'angtel', 'ssh', '["show running-config"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'arista-eos', 'Arista EOS', 'arista', 'ssh', '["terminal length 0", "show running-config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 2
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'aruba-arubaos', 'Aruba ArubaOS', 'aruba', 'ssh', '["no page", "show running-config"]', '[>#]\s*$',
true, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- альтернативи: cf get
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'audiocodes-mediant2000', 'Audiocodes Mediant2000', 'audiocodes', 'ssh', '["conf"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 4
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'bdcom-ios', 'BDCOM IOS', 'bdcom', 'ssh', '["terminal length 0", "show running-config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- startup: show configuration
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'bdcom-xpon', 'BDCOM xPON', 'bdcom', 'ssh', '["terminal length 0", "show running-config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 2
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'brocade-adx', 'Brocade ADX', 'brocade', 'ssh', '["terminal length 0", "show running-config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 2
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'brocade-cer', 'Brocade CER', 'brocade', 'ssh', '["terminal length 0", "show config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 2
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'brocade-cer-adv', 'Brocade CER-ADV', 'brocade', 'ssh', '["terminal length 0", "show config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 1
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'brocade-fabricos', 'Brocade FabricOS', 'brocade', 'ssh', '["terminal length 0", "configshow"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 2
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'brocade-ironware', 'Brocade IronWare', 'brocade', 'ssh', '["terminal length 0", "show config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 1
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'carelink-swg', 'Carelink SWG', 'carelink', 'ssh', '["show running-config"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 3
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'cdata-xpon', 'CData xPON', 'cdata', 'ssh', '["screen-length 0 temporary", "show current-config"]', '[\]>]\s*$',
false, '["^!Last configuration was updated"]', '["(password|cipher) \\S+", "snmp-agent community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'cisco-1900', 'Cisco 1900', 'cisco', 'ssh', '["terminal length 0", "show running-config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- альтернативи: show running-config
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'cisco-aireos', 'Cisco AireOS', 'cisco', 'ssh', '["terminal length 0", "show run-config commands"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 3
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'cisco-asa', 'Cisco ASA', 'cisco', 'ssh', '["terminal length 0", "more system:running-config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'cisco-catos', 'Cisco CatOS', 'cisco', 'ssh', '["terminal length 0", "show config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'cisco-fwsm', 'Cisco FWSM', 'cisco', 'ssh', '["terminal length 0", "terminal pager 0", "show running-config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- startup: show startup-config; службових рядків на початку: 3
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'cisco-ios', 'Cisco IOS', 'cisco', 'ssh', '["terminal length 0", "show running-config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 3
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'cisco-iosxr', 'Cisco IOSXR', 'cisco', 'ssh', '["terminal length 0", "show running-config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 3
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'cisco-nxos', 'Cisco NXOS', 'cisco', 'ssh', '["terminal length 0", "show running-config | no-more"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'cisco-sanos', 'Cisco SANOS', 'cisco', 'ssh', '["terminal length 0", "show running-config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 5
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'cisco-scos', 'Cisco SCOS', 'cisco', 'ssh', '["terminal length 0", "show running-config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'cisco-smb', 'Cisco SMB', 'cisco', 'ssh', '["terminal length 0", "show running-config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'cisco-wlc', 'Cisco WLC', 'cisco', 'ssh', '["terminal length 0", "show run-config commands"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- startup: show startup-config
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'dcn-dcws', 'DCN DCWS', 'dcn', 'ssh', '["terminal length 0", "show running-config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'dell-powerconnect55xx', 'Dell Powerconnect55xx', 'dell', 'ssh', '["show running-config"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 5
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'dell-powerconnect62xx', 'Dell Powerconnect62xx', 'dell', 'ssh', '["show running-config"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'dlink-dgs3100', 'DLink DGS3100', 'dlink', 'ssh', '["disable clipaging", "show configuration running"]', '[>#:]\s*$',
false, '["^#-+", "^# \\w+ Configuration"]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'dlink-dvg', 'DLink DVG', 'dlink', 'ssh', '["cat /tmp/etc/default/config.json"]', '[>#:]\s*$',
false, '["^#-+", "^# \\w+ Configuration"]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 1; альтернативи: show config current_config
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'dlink-dxs', 'DLink DxS', 'dlink', 'ssh', '["disable clipaging", "show config active"]', '[>#:]\s*$',
false, '["^#-+", "^# \\w+ Configuration"]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 3
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'dlink-dxs-cisco-cli', 'DLink DxS_Cisco_CLI', 'dlink', 'ssh', '["disable clipaging", "show running-config"]', '[>#:]\s*$',
false, '["^#-+", "^# \\w+ Configuration"]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- startup: show startup-config; службових рядків на початку: 3
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'dlink-dxs-industrial-cli', 'DLink DxS_Industrial_CLI', 'dlink', 'ssh', '["disable clipaging", "show running-config"]', '[>#:]\s*$',
false, '["^#-+", "^# \\w+ Configuration"]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 1
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'edgecore-es', 'EdgeCore ES', 'edgecore', 'ssh', '["terminal length 0", "show running-config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 1
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'eltex-esr', 'Eltex ESR', 'eltex', 'ssh', '["terminal datadump", "show running-config"]', '[>#]\s*$',
true, '[]', '["(password|encrypted) \\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'eltex-lte', 'Eltex LTE', 'eltex', 'ssh', '["terminal datadump", "show running-config"]', '[>#]\s*$',
true, '[]', '["(password|encrypted) \\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'eltex-ltp', 'Eltex LTP', 'eltex', 'ssh', '["terminal datadump", "show running-config"]', '[>#]\s*$',
true, '[]', '["(password|encrypted) \\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'eltex-ltp16n', 'Eltex LTP16N', 'eltex', 'ssh', '["terminal datadump", "show running-config"]', '[>#]\s*$',
true, '[]', '["(password|encrypted) \\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- startup: show startup-config
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'eltex-ma4000', 'Eltex MA4000', 'eltex', 'ssh', '["terminal datadump", "show running-config"]', '[>#]\s*$',
true, '[]', '["(password|encrypted) \\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- startup: show startup-config
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'eltex-mes', 'Eltex MES', 'eltex', 'ssh', '["terminal datadump", "show running-config"]', '[>#]\s*$',
true, '[]', '["(password|encrypted) \\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- startup: show startup-config; службових рядків на початку: 2
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'eltex-mes24xx', 'Eltex MES24xx', 'eltex', 'ssh', '["terminal datadump", "show running-config"]', '[>#]\s*$',
true, '[]', '["(password|encrypted) \\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- startup: show startup-config; службових рядків на початку: 10
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'eltex-mes5448', 'Eltex MES5448', 'eltex', 'ssh', '["terminal datadump", "show running-config"]', '[>#]\s*$',
true, '[]', '["(password|encrypted) \\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'eltex-pon', 'Eltex PON', 'eltex', 'ssh', '["terminal datadump", "show running-config"]', '[>#]\s*$',
true, '[]', '["(password|encrypted) \\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'eltex-rg', 'Eltex RG', 'eltex', 'ssh', '["tail -n +1 /tmp/etc/config/cert/* /tmp/etc/config/*"]', '[>#]\s*$',
true, '[]', '["(password|encrypted) \\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'eltex-smg', 'Eltex SMG', 'eltex', 'ssh', '["cat /etc/config/cfg.yaml"]', '[>#]\s*$',
true, '[]', '["(password|encrypted) \\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- альтернативи: cat /etc/config/*, cat /tmp/etc/config/cfg.yaml
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'eltex-tau', 'Eltex TAU', 'eltex', 'ssh', '["cat /etc/config/cfg.yaml"]', '[>#]\s*$',
true, '[]', '["(password|encrypted) \\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'eltex-woplr', 'Eltex WOPLR', 'eltex', 'ssh', '["terminal datadump", "show-config"]', '[>#]\s*$',
true, '[]', '["(password|encrypted) \\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 1
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'ericsson-mini-link', 'Ericsson MINI_LINK', 'ericsson', 'ssh', '["show running-config"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 1
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'ericsson-seos', 'Ericsson SEOS', 'ericsson', 'ssh', '["show running-config"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- startup: show startup-config
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'extreme-isw', 'Extreme ISW', 'extreme', 'ssh', '["disable clipaging", "flash:startup-config"]', '[>#]\s*$',
false, '[]', '["password \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'extreme-summit200', 'Extreme Summit200', 'extreme', 'ssh', '["disable clipaging", "show configuration"]', '[>#]\s*$',
false, '[]', '["password \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'extreme-xos', 'Extreme XOS', 'extreme', 'ssh', '["disable clipaging", "show config"]', '[>#]\s*$',
false, '[]', '["password \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 1
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'f5-bigip', 'f5 BIGIP', 'f5', 'ssh', '["list"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 1
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'force10-ftos', 'Force10 FTOS', 'force10', 'ssh', '["terminal length 0", "show running-config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'force10-sftos', 'Force10 SFTOS', 'force10', 'ssh', '["terminal length 0", "show running-config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 4
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'fortinet-fortigate', 'Fortinet Fortigate', 'fortinet', 'ssh', '["show"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'gwd-gfa', 'GWD GFA', 'gwd', 'ssh', '["show running-config"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'h3c-vrp', 'H3C VRP', 'h3c', 'ssh', '["screen-length 0 temporary", "undo terminal monitor", "display current-configuration"]', '[\]>]\s*$',
false, '["^!Last configuration was updated"]', '["(password|cipher) \\S+", "snmp-agent community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'hp-1910', 'HP 1910', 'hp', 'ssh', '["no page", "display current-configuration"]', '[>#]\s*$',
true, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- startup: show startup-config; службових рядків на початку: 3
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'hp-aruba', 'HP Aruba', 'hp', 'ssh', '["no page", "show running-config"]', '[>#]\s*$',
true, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'hp-comware', 'HP Comware', 'hp', 'ssh', '["no page", "undo terminal monitor", "display current-configuration"]', '[>#]\s*$',
true, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- альтернативи: /
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'hp-gbe2', 'HP GbE2', 'hp', 'ssh', '["/cfg/dump"]', '[>#]\s*$',
true, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- startup: display saved-configuration; службових рядків на початку: 2; альтернативи: display current-configuration
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'hp-procurve', 'HP ProCurve', 'hp', 'ssh', '["no page", "show config"]', '[>#]\s*$',
true, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 2
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'hp-procurve9xxx', 'HP ProCurve9xxx', 'hp', 'ssh', '["no page", "show config"]', '[>#]\s*$',
true, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'huawei-ma5300', 'Huawei MA5300', 'huawei', 'ssh', '["screen-length 0 temporary", "show running-config"]', '[\]>]\s*$',
false, '["^!Last configuration was updated"]', '["(password|cipher) \\S+", "snmp-agent community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- startup: display saved-configuration
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'huawei-ma5600t', 'Huawei MA5600T', 'huawei', 'ssh', '["screen-length 0 temporary", "display current-configuration"]', '[\]>]\s*$',
false, '["^!Last configuration was updated"]', '["(password|cipher) \\S+", "snmp-agent community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'huawei-umg8900', 'Huawei UMG8900', 'huawei', 'ssh', '["screen-length 0 temporary", "dsp cfg;"]', '[\]>]\s*$',
false, '["^!Last configuration was updated"]', '["(password|cipher) \\S+", "snmp-agent community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- startup: display saved-configuration
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'huawei-vrp', 'Huawei VRP', 'huawei', 'ssh', '["screen-length 0 temporary", "undo terminal monitor", "display current-configuration"]', '[\]>]\s*$',
false, '["^!Last configuration was updated"]', '["(password|cipher) \\S+", "snmp-agent community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 3
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'huawei-vrp3', 'Huawei VRP3', 'huawei', 'ssh', '["screen-length 0 temporary", "no monitor", "show running-config"]', '[\]>]\s*$',
false, '["^!Last configuration was updated"]', '["(password|cipher) \\S+", "snmp-agent community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- startup: show startup-config; службових рядків на початку: 2
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'ibm-nos', 'IBM NOS', 'ibm', 'ssh', '["show running-config"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'infinet-wanflexx', 'InfiNet WANFlexX', 'infinet', 'ssh', '["config show"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 1
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'intracom-ultralink', 'Intracom UltraLink', 'intracom', 'ssh', '["config show current"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- startup: more startup-config
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'iskratel-escom', 'Iskratel ESCOM', 'iskratel', 'ssh', '["terminal length 0", "show running-config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'iskratel-mban', 'Iskratel MBAN', 'iskratel', 'ssh', '["terminal length 0", "show system config detail"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'iskratel-msan', 'Iskratel MSAN', 'iskratel', 'ssh', '["terminal length 0", "show running-config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 1
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'juniper-ex2500', 'Juniper EX2500', 'juniper', 'ssh', '["set cli screen-length 0", "show active-config"]', '[%>#]\s*$',
false, '["^## Last commit:"]', '["encrypted-password \\S+", "\"\\$9\\$\\S+\""]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'juniper-junos', 'Juniper JUNOS', 'juniper', 'ssh', '["set cli screen-length 0", "show configuration | display omit"]', '[%>#]\s*$',
false, '["^## Last commit:"]', '["encrypted-password \\S+", "\"\\$9\\$\\S+\""]', true)
ON CONFLICT DO NOTHING;
-- альтернативи: show configuration, show service-management service-definition brief | include True
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'juniper-junose', 'Juniper JUNOSe', 'juniper', 'ssh', '["set cli screen-length 0", "show running-configuration"]', '[%>#]\s*$',
false, '["^## Last commit:"]', '["encrypted-password \\S+", "\"\\$9\\$\\S+\""]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'juniper-screenos', 'Juniper ScreenOS', 'juniper', 'ssh', '["set cli screen-length 0", "get config"]', '[%>#]\s*$',
false, '["^## Last commit:"]', '["encrypted-password \\S+", "\"\\$9\\$\\S+\""]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'juniper-srcpe', 'Juniper SRCPE', 'juniper', 'ssh', '["set cli screen-length 0", "show configuration"]', '[%>#]\s*$',
false, '["^## Last commit:"]', '["encrypted-password \\S+", "\"\\$9\\$\\S+\""]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'linksys-sps2xx', 'Linksys SPS2xx', 'linksys', 'ssh', '["show running-config"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- startup: show startup-config; службових рядків на початку: 2
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'maipu-os', 'Maipu OS', 'maipu', 'ssh', '["terminal length 0", "show running-config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'mellanox-cumulus', 'Mellanox Cumulus', 'mellanox', 'ssh', '["net show configuration commands"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- startup: show configuration
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'mellanox-onyx', 'Mellanox Onyx', 'mellanox', 'ssh', '["show configuration running"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'mikrotik-routeros', 'MikroTik RouterOS', 'mikrotik', 'ssh', '["export"]', '\] > $',
false, '["^# \\w{3}/\\d{2}/\\d{4}"]', '["password=\\S+"]', true)
ON CONFLICT DO NOTHING;
-- startup: show startup-config; службових рядків на початку: 3
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'nag-snr', 'NAG SNR', 'nag', 'ssh', '["show running-config"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'nag-snr-enos', 'NAG SNR_eNOS', 'nag', 'ssh', '["show running-config"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'nateks-flexgain', 'Nateks FlexGain', 'nateks', 'ssh', '["terminal length 0", "show runningcfg"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'nateks-netxpert', 'Nateks NetXpert', 'nateks', 'ssh', '["terminal length 0", "show configuration"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'nortel-baystack425', 'Nortel BayStack425', 'nortel', 'ssh', '["show run"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'nsccomm-lpos', 'NSCComm LPOS', 'nsccomm', 'ssh', '["show cfg.sys"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- startup: show startup-config; службових рядків на початку: 2
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'nsn-hix56xx', 'NSN hiX56xx', 'nsn', 'ssh', '["show running-config"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 6; альтернативи: show bof, configure li, info
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'nsn-timos', 'NSN TIMOS', 'nsn', 'ssh', '["admin display"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 2
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'orion-nos', 'Orion NOS', 'orion', 'ssh', '["terminal length 0", "show running-config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'os-esxi', 'OS ESXi', 'os', 'ssh', '["cat /etc/vmware/esx.conf"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'planet-wgsd', 'Planet WGSD', 'planet', 'ssh', '["show startup-config"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'polygon-ios', 'Polygon IOS', 'polygon', 'ssh', '["terminal length 0", "show running-config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- альтернативи: ./clip, show-recursive
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'protei-mediagateway', 'Protei MediaGateway', 'protei', 'ssh', '["cd /usr/protei/CLI/Client"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'qtech-qos', 'Qtech QOS', 'qtech', 'ssh', '["terminal length 0", "show running-config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 1
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'qtech-qsw', 'Qtech QSW', 'qtech', 'ssh', '["terminal length 0", "show running-config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 2
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'qtech-qsw2500', 'Qtech QSW2500', 'qtech', 'ssh', '["terminal length 0", "show running-config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- startup: show startup-config
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'qtech-qsw2800', 'Qtech QSW2800', 'qtech', 'ssh', '["terminal length 0", "show running-config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 2
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'qtech-qsw8200', 'Qtech QSW8200', 'qtech', 'ssh', '["terminal length 0", "show running-config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 1
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'raisecom-rcios', 'Raisecom RCIOS', 'raisecom', 'ssh', '["terminal page-break disable", "show running-config"]', '[>#]\s*$',
true, '[]', '["password \\S+"]', true)
ON CONFLICT DO NOTHING;
-- startup: show startup-config; службових рядків на початку: 1
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'raisecom-ros', 'Raisecom ROS', 'raisecom', 'ssh', '["terminal page-break disable", "show running-config"]', '[>#]\s*$',
true, '[]', '["password \\S+"]', true)
ON CONFLICT DO NOTHING;
-- альтернативи: top
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'raritan-dominionsx', 'Raritan DominionSX', 'raritan', 'ssh', '["maintenance"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'rotek-rtbs', 'Rotek RTBS', 'rotek', 'ssh', '["terminal length 0", "show config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'rotek-rtbsv1', 'Rotek RTBSv1', 'rotek', 'ssh', '["terminal length 0", "show config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 3
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'ruckus-zonedirector', 'Ruckus ZoneDirector', 'ruckus', 'ssh', '["terminal length 0", "show config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'siklu-eh', 'Siklu EH', 'siklu', 'ssh', '["copy running-configuration display"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- startup: show startup-config
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'sks-sks', 'SKS SKS', 'sks', 'ssh', '["show running-config"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- альтернативи: cd /
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'sun-ilom3', 'Sun iLOM3', 'sun', 'ssh', '["cd /SP/config"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'supertel-k2x', 'Supertel K2X', 'supertel', 'ssh', '["terminal length 0", "show running-config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- startup: show startup-config
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'symbol-ap', 'Symbol AP', 'symbol', 'ssh', '["show running-config"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 2
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'terayon-bw', 'Terayon BW', 'terayon', 'ssh', '["show running-config"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- startup: show startup-config; службових рядків на початку: 2
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'tplink-t2600g', 'TPLink T2600G', 'tplink', 'ssh', '["terminal length 0", "show running-config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'ubiquiti-airos', 'Ubiquiti AirOS', 'ubiquiti', 'ssh', '["cat /tmp/system.cfg"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 1
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'upvel-up', 'Upvel UP', 'upvel', 'ssh', '["terminal length 0", "show running-config"]', '[>#]\s*$',
true, '["^Building configuration", "^Current configuration : \\d+ bytes", "^ntp clock-period"]', '["(password|secret) \\d? ?\\S+", "snmp-server community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 1
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'vitesse-vsc', 'Vitesse VSC', 'vitesse', 'ssh', '["show running-config"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'vyatta-vyatta', 'Vyatta Vyatta', 'vyatta', 'ssh', '["set cli screen-length 0", "show configuration"]', '[%>#]\s*$',
false, '["^## Last commit:"]', '["encrypted-password \\S+", "\"\\$9\\$\\S+\""]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 2
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'zebra-zebra', 'Zebra Zebra', 'zebra', 'ssh', '["show running-config"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 1
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'zhone-bitstorm', 'Zhone Bitstorm', 'zhone', 'ssh', '["show running-config"]', '[>#]\s*$',
false, '[]', '["password \\S+", "community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 3
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'zte-zxa10', 'ZTE ZXA10', 'zte', 'ssh', '["screen-length 0 temporary", "show running-config"]', '[\]>]\s*$',
false, '["^!Last configuration was updated"]', '["(password|cipher) \\S+", "snmp-agent community \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'zte-zxdsl531', 'ZTE ZXDSL531', 'zte', 'ssh', '["screen-length 0 temporary", "dumpcfg"]', '[\]>]\s*$',
false, '["^!Last configuration was updated"]', '["(password|cipher) \\S+", "snmp-agent community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 1
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'zte-zxdsl98xx', 'ZTE ZXDSL98xx', 'zte', 'ssh', '["screen-length 0 temporary", "show running-config"]', '[\]>]\s*$',
false, '["^!Last configuration was updated"]', '["(password|cipher) \\S+", "snmp-agent community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 1
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'zte-zxr10', 'ZTE ZXR10', 'zte', 'ssh', '["screen-length 0 temporary", "show running-config"]', '[\]>]\s*$',
false, '["^!Last configuration was updated"]', '["(password|cipher) \\S+", "snmp-agent community \\S+"]', true)
ON CONFLICT DO NOTHING;
-- альтернативи: config show all nopause, config print
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'zyxel-dslam', 'Zyxel DSLAM', 'zyxel', 'ssh', '["show config-0"]', '[>#]\s*$',
false, '[]', '["password \\S+"]', true)
ON CONFLICT DO NOTHING;
-- альтернативи: config show all nopause, config print
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'zyxel-msan', 'Zyxel MSAN', 'zyxel', 'ssh', '["show config-0"]', '[>#]\s*$',
false, '[]', '["password \\S+"]', true)
ON CONFLICT DO NOTHING;
-- службових рядків на початку: 4
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'zyxel-zynos', 'Zyxel ZyNOS', 'zyxel', 'ssh', '["show running-config"]', '[>#]\s*$',
false, '[]', '["password \\S+"]', true)
ON CONFLICT DO NOTHING;
INSERT INTO ncm.profiles
(tenant_id, key, name, vendor, transport, commands, prompt_regex,
enable_required, scrub_patterns, redact_patterns, is_builtin)
VALUES (NULL, 'zyxel-zynosv2', 'Zyxel ZyNOSv2', 'zyxel', 'ssh', '["fm cat init"]', '[>#]\s*$',
false, '[]', '["password \\S+"]', true)
ON CONFLICT DO NOTHING;