Add SNMP v2c probing and results endpoint.
Probe sysName/sysDescr/sysObjectID for alive hosts, persist SNMP outcomes, and expose scan SNMP data via REST. Made-with: Cursor
This commit is contained in:
@@ -40,3 +40,18 @@ create table if not exists scan_ports (
|
||||
|
||||
create index if not exists idx_scan_ports_scan_id_checked_at
|
||||
on scan_ports (scan_id, checked_at desc);
|
||||
|
||||
create table if not exists scan_snmp (
|
||||
id bigserial primary key,
|
||||
scan_id text not null references scan_jobs(id) on delete cascade,
|
||||
ip inet not null,
|
||||
success boolean not null,
|
||||
sys_name text null,
|
||||
sys_descr text null,
|
||||
sys_object_id text null,
|
||||
error_text text null,
|
||||
checked_at timestamptz not null
|
||||
);
|
||||
|
||||
create index if not exists idx_scan_snmp_scan_id_checked_at
|
||||
on scan_snmp (scan_id, checked_at desc);
|
||||
|
||||
Reference in New Issue
Block a user