- Add SNMP_WALK_POLICIES env var and UI checkbox to skip ACD-POLICY-MIB (~73% of all OIDs), cutting walk time from ~25s to ~11s - Add /api/ping endpoint with reachability check before walk starts - Show "NID Management is UP" (green) or "NID is DOWN" (red) status - Block walk if target is unreachable Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
32 lines
1015 B
Plaintext
32 lines
1015 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
|
||
|
||
# ── Policy data ──
|
||
# ACD-POLICY-MIB is ~73% of all OIDs. Set to "false" to skip it for faster walks.
|
||
# The Traffic Policies card will be empty when disabled.
|
||
SNMP_WALK_POLICIES=true
|
||
|
||
# ── Server ──
|
||
SERVER_PORT=5525
|