Summary
Get VPP stats for SNMP
https://git.ipng.ch/ipng/vpp-snmp-agent
Summary
Get VPP stats for SNMP
https://git.ipng.ch/ipng/vpp-snmp-agent
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Open | FEATURE REQUEST | None | T7221 VPP related features the root task | ||
| Open | FEATURE REQUEST | None | T7478 SNMP for VPP interfaces |
I have found another implementation if someone wants to play with it https://git.ipng.ch/ipng/govpp-snmp-agentx
vyos_bld@d1bed1e65ed2:/vyos/work/T7478-vpp-snmp/vyos-build/scripts/package-build/govpp-snmp-agentx$ cat package.toml [[packages]] name = "govpp-snmp-agentx" commit_id = "ead795674c" scm_url = "https://git.ipng.ch/ipng/govpp-snmp-agentx" build_cmd = "make pkg-deb"
It cannot bind indexes correctly for Aliases without vppcfg, which we will not use.
vyos@r14# sudo systemctl status govpp-snmp-agentx.service
● govpp-snmp-agentx.service - GoVPP SNMP AgentX Daemon
Loaded: loaded (/lib/systemd/system/govpp-snmp-agentx.service; enabled; preset: enabled)
Active: active (running) since Mon 2025-10-13 15:22:20 CEST; 18s ago
Process: 32133 ExecStartPre=/usr/bin/chmod 770 /var/agentx /var/agentx/master (code=exited, status=0/SUCCESS)
Process: 32135 ExecStartPre=/usr/bin/chown Debian-snmp:vpp /var/agentx /var/agentx/master (code=exited, status=0/SUCCESS)
Main PID: 32136 (govpp-snmp-agen)
Tasks: 9 (limit: 13971)
Memory: 7.1M
CPU: 26ms
CGroup: /system.slice/govpp-snmp-agentx.service
└─32136 /usr/sbin/govpp-snmp-agentx -agentx.addr /var/agentx/master -vppcfg /etc/vpp/vppcfg.yaml -vppstats.period 10
Oct 13 15:22:20 r23 govpp-snmp-agentx[32136]: INFO main.go:main.main Starting govpp-snmp-agentx version 1.1.5-1
Oct 13 15:22:20 r23 govpp-snmp-agentx[32136]: INFO main.go:main.main Warning: Failed to load VPP config from /etc/vpp/vppcfg.yaml: failed to read VPP config file: open /etc/vpp/vp>
Oct 13 15:22:20 r23 govpp-snmp-agentx[32136]: INFO main.go:main.main Continuing without VPP config file...
Oct 13 15:22:20 r23 govpp-snmp-agentx[32136]: INFO agentx.go:agentx.StartAgentXRoutine Successfully registered with AgentX at unix:///var/agentx/master
Oct 13 15:22:20 r23 govpp-snmp-agentx[32136]: INFO vpp_stats.go:vpp.(*StatsManager).statsRoutine VPP not connected, attempting connection...
Oct 13 15:22:20 r23 govpp-snmp-agentx[32136]: INFO vpp.go:vpp.(*VPPClient).Connect Connected to VPP (API: /var/run/vpp/api.sock, Stats: /var/run/vpp/stats.sock)
Oct 13 15:22:20 r23 govpp-snmp-agentx[32136]: INFO vpp_stats.go:vpp.(*StatsManager).statsRoutine VPP connection established
Oct 13 15:22:20 r23 govpp-snmp-agentx[32136]: INFO ifmib.go:ifmib.(*InterfaceMIB).UpdateStats Updated session handlers with new IF-MIB data for 9 interfaces
Oct 13 15:22:21 r23 govpp-snmp-agentx[32136]: INFO vpp_iface.go:vpp.(*InterfaceManager).eventMonitoringRoutine Interface event watching started
Oct 13 15:22:30 r23 govpp-snmp-agentx[32136]: INFO ifmib.go:ifmib.(*InterfaceMIB).UpdateStats Updated session handlers with new IF-MIB data for 9 interfaces
[edit]
vyos@r14# sudo snmpwalk -v 2c -c public 127.0.0.1 ifAlias
IF-MIB::ifAlias.1 = STRING: lo
IF-MIB::ifAlias.2 = STRING: WAN
IF-MIB::ifAlias.5 = STRING: eth3
IF-MIB::ifAlias.6 = STRING: eth4
IF-MIB::ifAlias.8 = STRING: CGNAT-VRF
IF-MIB::ifAlias.9 = STRING: red
IF-MIB::ifAlias.10 = STRING: pim6reg@NONE
IF-MIB::ifAlias.11 = STRING: pim6reg100@NONE
IF-MIB::ifAlias.12 = STRING: pim6reg1010@NONE
IF-MIB::ifAlias.20 = STRING: LAN
IF-MIB::ifAlias.21 = STRING: LAN-2
IF-MIB::ifAlias.22 = STRING: eth1.11@eth1
IF-MIB::ifAlias.23 = STRING: eth1.12@eth1
[edit]
vyos@r14#
[edit]
vyos@r14# sudo snmpwalk -v 2c -c public 127.0.0.1 ifHCInOctets
IF-MIB::ifHCInOctets.1000 = Counter64: 0
IF-MIB::ifHCInOctets.1001 = Counter64: 11462
IF-MIB::ifHCInOctets.1002 = Counter64: 4728
IF-MIB::ifHCInOctets.1003 = Counter64: 10830
IF-MIB::ifHCInOctets.1004 = Counter64: 600
IF-MIB::ifHCInOctets.1005 = Counter64: 3509
IF-MIB::ifHCInOctets.1006 = Counter64: 4956
IF-MIB::ifHCInOctets.1007 = Counter64: 3509
IF-MIB::ifHCInOctets.1008 = Counter64: 4768
[edit]
vyos@r14#
[edit]
vyos@r14# sudo snmpwalk -v 2c -c public 127.0.0.1 ifDescrt
ifDescrt: Unknown Object Identifier (Sub-id not found: (top) -> ifDescrt)
[edit]
vyos@r14# sudo snmpwalk -v 2c -c public 127.0.0.1 ifDescr
IF-MIB::ifDescr.1000 = STRING: local0
IF-MIB::ifDescr.1001 = STRING: eth1
IF-MIB::ifDescr.1002 = STRING: eth2
IF-MIB::ifDescr.1003 = STRING: tap4096
IF-MIB::ifDescr.1004 = STRING: tap4097
IF-MIB::ifDescr.1005 = STRING: eth1.11
IF-MIB::ifDescr.1006 = STRING: tap4096.11
IF-MIB::ifDescr.1007 = STRING: eth1.12
IF-MIB::ifDescr.1008 = STRING: tap4096.12
[edit]
vyos@r14#
[edit]
vyos@r14# sudo snmpwalk -v 2c -c public 127.0.0.1 ifHCInOctets
IF-MIB::ifHCInOctets.1000 = Counter64: 0
IF-MIB::ifHCInOctets.1001 = Counter64: 12939
IF-MIB::ifHCInOctets.1002 = Counter64: 5248
IF-MIB::ifHCInOctets.1003 = Counter64: 11868
IF-MIB::ifHCInOctets.1004 = Counter64: 600
IF-MIB::ifHCInOctets.1005 = Counter64: 4147
IF-MIB::ifHCInOctets.1006 = Counter64: 5648
IF-MIB::ifHCInOctets.1007 = Counter64: 3828
IF-MIB::ifHCInOctets.1008 = Counter64: 5114
[edit]
vyos@r14I do not see other implementations to get it working correctly with VPP