nid-snmp/.env.example
sam c64a80810f Add LLDP neighbor device polling (Cisco C3850 support)
Follow the LLDP breadcrumb back to the connected router/switch:
- New cisco-parse.py: standalone parser for Cisco SNMP walk data
  with interface matching, subinterface/SVI discovery, BDI/BVI
  correlation, and optics extraction
- New /api/neighbor-walk and /api/neighbor-data endpoints
- "Poll Neighbor" button in LLDP topology cards
- Connected Neighbor Devices card showing interface status,
  counters, SVIs, and subinterface mappings
- Platform-aware: handles IOS-XE (SVIs) and IOS-XR (subinterfaces)
- Tested against lab C3850-04 (172.16.50.4) — 4,288 OIDs in 1.1s

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 10:48:44 -07:00

38 lines
1.2 KiB
Plaintext
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.

# ── 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
# ── Neighbor Device SNMP ──
# Credentials for polling LLDP-discovered neighbor devices (Cisco routers/switches)
# Falls back to NID credentials (SNMP_COMMUNITY / v3 settings) if not set
NEIGHBOR_SNMP_VERSION=2c
NEIGHBOR_SNMP_COMMUNITY=public
# ── Server ──
SERVER_PORT=5525