- Add nid-server.py: Python web server (stdlib) with live walk API, SSE progress streaming, and clear/archive endpoints - Add snmp-walk.sh: CLI wrapper for walk pipeline with .env config - Add walk control card to viewer UI with IP input, mode selector, walk/clear buttons, and real-time progress bar - Make cards collapsible, add management IP to header - Add dynamic port type rendering (SFP vs RJ45 from connector table) - Add SFF-8024 connector type labels for SFP detail cards - Fix ifOperStatus numeric vs text comparisons for live walk data - Add alarm config-only fallback when device lacks status table - Use snmpbulkwalk for faster walks with parallel subtree execution - Add .env/.env.example for secrets and config, gitignore walks/ Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
27 lines
823 B
Plaintext
27 lines
823 B
Plaintext
# ── SNMP NID Viewer – Environment Configuration ──
|
||
# Copy to .env and edit as needed. This file is gitignored.
|
||
|
||
# Target device IP (override via CLI: ./snmp-walk.sh 10.0.0.1)
|
||
SNMP_TARGET=10.13.60.102
|
||
|
||
# ── SNMPv2c ──
|
||
SNMP_VERSION=2c
|
||
SNMP_COMMUNITY=public
|
||
|
||
# ── SNMPv3 (future – uncomment and set when needed) ──
|
||
# SNMP_VERSION=3
|
||
# SNMP_V3_USER=
|
||
# SNMP_V3_AUTH_PROTO=SHA # MD5 | SHA | SHA-256 | SHA-512
|
||
# SNMP_V3_AUTH_PASS=
|
||
# SNMP_V3_PRIV_PROTO=AES # DES | AES | AES-256
|
||
# SNMP_V3_PRIV_PASS=
|
||
# SNMP_V3_SEC_LEVEL=authPriv # noAuthNoPriv | authNoPriv | authPriv
|
||
|
||
# ── Walk mode ──
|
||
# "full" = walk entire .1 tree (captures everything, ~27% larger)
|
||
# "targeted" = walk only subtrees used by the viewer (faster)
|
||
SNMP_WALK_MODE=targeted
|
||
|
||
# ── Server ──
|
||
SERVER_PORT=5525
|