No description
.gitignore | ||
go.mod | ||
go.sum | ||
main.go | ||
Makefile | ||
README.md |
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