No description
Find a file
2025-10-03 03:41:05 +02:00
.gitignore Complete code 2025-10-03 03:22:13 +02:00
go.mod Complete code 2025-10-03 03:22:13 +02:00
go.sum Complete code 2025-10-03 03:22:13 +02:00
main.go Copyright 2025-10-03 03:41:05 +02:00
Makefile Make all added windows 2025-10-03 03:26:14 +02:00
README.md Update README.md 2025-10-03 03:24:33 +02:00

Usage:

snmp-downfor <target> <community> [port]

Example:

# ./snmp-downfor 192.168.106.223 public 161

Querying SNMP device: 192.168.106.223
================================================================================

Index    Interface                      Status     Downtime
--------------------------------------------------------------------------------
10103    GigabitEthernet0/3             DOWN       10d 8h 45m 3s
10105    GigabitEthernet0/5             DOWN       30d 12h 16m 48s
10107    GigabitEthernet0/7             DOWN       45d 4h 11m 25s
1        Vlan1                          DOWN       45d 4h 11m 26s

Total down interfaces: 4
================================================================================

Manual Build:

go build -o snmp-monitor main.go

Make file build and cross platform build:

make all