c6dbce8f90Update README.md
main
Pim van Pelt
2023-08-26 11:58:36 +02:00
aa38c5503fUpdate README.md
Pim van Pelt
2023-08-26 11:55:22 +02:00
684400ff9eReduce logging on AgentX connections
Pim van Pelt
2023-01-14 11:12:06 +00:00
43551958f8Typo fix
Pim van Pelt
2023-01-10 17:13:27 +01:00
31529a2815improvement: add flag for agentx debugging
Pim van Pelt
2023-01-10 15:21:32 +01:00
0d7dea37f5Merge branch 'main' of github.com:pimvanpelt/vpp-snmp-agent
Pim van Pelt
2023-01-10 11:26:21 +01:00
95d96d5e61bugfix: add a control_ping() before each update
Pim van Pelt
2023-01-10 11:24:44 +01:00
b6864530ebUpdate README.md
Pim van Pelt
2023-01-08 23:11:55 +01:00
7f4427c4b6Improvement: Use interface/LCP caching on VPP API
Pim van Pelt
2023-01-08 13:57:08 +01:00
c81a035091Refactor to use VPPApiJSONFiles
Pim van Pelt
2023-01-08 13:24:54 +01:00
fe794ed286Remove all global variables
Pim van Pelt
2023-01-08 13:21:00 +01:00
5e11539b44Format with black
Pim van Pelt
2023-01-08 13:05:42 +01:00
72e9cf3503Update README.md
Pim van Pelt
2022-12-23 16:01:02 +01:00
a56840d849Update README.md
Pim van Pelt
2022-12-23 10:20:11 +01:00
cde5d4df94Update README.md
Pim van Pelt
2022-12-23 10:09:06 +01:00
16c29e0ce6Allow vppapi!=vppstats count, continue and use those interfaces that are in the API
Pim van Pelt
2022-07-10 20:49:44 +00:00
b4c819af87Retrieve description from all interface types, not just ethernets
Pim van Pelt
2022-07-10 11:33:47 +00:00
b024a3e96bMove the YAML config to be compatible with vppcfg's config file
Pim van Pelt
2022-07-10 09:45:57 +00:00
3be732e6abRemove the workaround for endianness in VPP; Remove the --disable-lcp flag. Catch connect exceptions for VPPStats and VPP API
Pim van Pelt
2022-07-09 10:14:15 +00:00
968c0abe2fFail the setup if we can't connect to VPP; exit the daemon with non-zero value to force restart by systemd
Pim van Pelt
2022-03-14 23:14:59 +00:00
86512dd66bTurn interface mismatch into a warning - it is often recoverable
Pim van Pelt
2022-03-13 12:05:54 +00:00
89abebb26bMerge branch 'main' of github.com:pimvanpelt/vpp-snmp-agent into main
Pim van Pelt
2021-09-15 08:02:26 +00:00
18005bbbc2Fix memory leak in logging (specifically: do not create a new logger for every SNMP PDU)
Pim van Pelt
2021-09-15 07:58:08 +00:00
a574305fb2Reconnect faster after errors (0.1s sleep)
Pim van Pelt
2021-09-15 07:57:17 +00:00
09a2b6e9e4Remove logger from dataset, it's not necessary, as there's only one call location that wants to say something. Turn that into an exception instead
Pim van Pelt
2021-09-15 07:56:50 +00:00
bf9d61b95dRestart snmpd if it fails
Pim van Pelt
2021-09-13 07:54:13 +02:00
610d03a14bRefactor README.md
Pim van Pelt
2021-09-12 16:31:13 +00:00
5051ab32ceUpdate README with the -h/--help argparse hint
Pim van Pelt
2021-09-12 16:22:22 +00:00
6d0ed88722Add argparse and a few useful arguments
Pim van Pelt
2021-09-12 16:17:23 +00:00
7206d92f40Move all loggers to be members of the class, not global objects
Pim van Pelt
2021-09-12 16:08:35 +00:00
9265e211e3Swap oper/admin status (they were the wrong way around)
Pim van Pelt
2021-09-12 14:09:23 +00:00
96f2a3b4b3Move to /usr/sbin instead of /usr/local/sbin
Pim van Pelt
2021-09-11 12:55:28 +00:00
c72890868cs/freq/period/ to be more precies; Set default period to 30s; set wait period on reconnect to 10s; Add explicit INFO logline when replacing dataset
Pim van Pelt
2021-09-11 12:45:28 +00:00
8c9c1e2b4aReplace the pyagentx threaded version with a much simpler, non-threaded version.
Pim van Pelt
2021-09-11 12:19:38 +00:00
842bce9d6eAdd server_address to initializer, allow for unix path (starts with /) or hostname:port address
Pim van Pelt
2021-09-11 08:13:21 +00:00
0c0e4fc14aA better way to specify netns
Pim van Pelt
2021-09-05 21:02:11 +00:00
184d2eceb2Restart agent on failure
Pim van Pelt
2021-09-05 20:26:47 +00:00
9b39aa61c2Clamp all COUNTER32 at mod 2^32
Pim van Pelt
2021-09-05 20:15:06 +00:00
7dec1329d2Turn VPPApi into a threadsafe object
Pim van Pelt
2021-09-05 20:02:11 +00:00
e1cddc8c26Add VPP API support to retrieve mtu/ifspeed/operstatus/adminstatus/mac
Pim van Pelt
2021-09-05 19:39:20 +00:00
238471d25fEnsure more updates can fit in the queue, allow scaling to 20 variables on 1000 interfaces
Pim van Pelt
2021-09-05 18:17:05 +00:00
2e7aa607e4Add most of the standard (32bit) ifTable.ifEntry MIB, the 5 that are left will require vpp_papi support, coming next
Pim van Pelt
2021-09-05 18:12:02 +00:00
ac8c323abfEnsure VPPStat() is connected before each read; if VPP restarts, we'll lose the connection, and this ensures that once VPP comes back up, we'll re-connect to it seemlessly
Pim van Pelt
2021-09-05 16:19:44 +00:00
21f2e9dc72format yapf
Pim van Pelt
2021-09-05 16:14:11 +00:00
7afd82c928Remove cache, read directly and constantly from MMAP -- the update threads only fire every 10s anyway; so even a hammering snmp client won't interact with VPP more than once-per-10s
Pim van Pelt
2021-09-05 16:11:23 +00:00
80bbc754e4Consistently clear ifstat members
Pim van Pelt
2021-09-05 15:47:15 +00:00
8256c6abfcUpdate README with build/run instructions
Pim van Pelt
2021-09-05 15:39:26 +00:00
a621d560cdCorrect enumeration off-by-one; OID .14 doesn't exist
Pim van Pelt
2021-09-05 15:26:13 +00:00
954fd2e5b6Run as root
Pim van Pelt
2021-09-05 15:25:54 +00:00
51eee915bfinitial checkin
Pim van Pelt
2021-09-05 15:13:12 +00:00