clixon/apps/snmp
2024-09-06 13:54:56 +02:00
..
Makefile.in Add support for snmp v2 traps 2024-08-01 06:51:28 +02:00
README.md Netconf monitoring RFC 6022 Sessions (https://github.com/clicon/clixon/issues/370) 2023-01-15 12:36:59 +01:00
snmp_handler.c C-API changes: Replace yn_each with yn_iter, add keyw argument to yang_stats() 2024-07-04 18:27:14 +02:00
snmp_handler.h [Code formatting: Change indentation style to space](https://github.com/clicon/clixon/issues/379) 2022-10-27 14:21:17 +02:00
snmp_lib.c C-API changes: Replace yn_each with yn_iter, add keyw argument to yang_stats() 2024-07-04 18:27:14 +02:00
snmp_lib.h Implement SNMP bits data type support 2024-04-03 10:19:34 +02:00
snmp_main.c Refactoring of schema mount-points 2024-08-29 17:24:44 +02:00
snmp_register.c C-API changes: Replace yn_each with yn_iter, add keyw argument to yang_stats() 2024-07-04 18:27:14 +02:00
snmp_register.h Restructured error,debug anf log API 2023-12-18 08:29:14 +01:00
snmp_stream.c Add username when reading and subscribing streams 2024-09-06 13:54:56 +02:00
snmp_stream.h Add support for snmp v2 traps 2024-08-01 06:51:28 +02:00

SNMP

The SNMP frontend acts as an intermediate daemon between the Net-SNMP daemon (snmpd) and the Clixon backend. Clixon-snmp communicates over the AgentX protocol to snmpd typically via a UNIX socket, and over the internal IPC protocol to the Clixon backend.

Use Net-SNMP version 5.9 or later

To set up AgentX communication between clixon_snmp and snmpd a Unix or TCP socket is configured. This socket is also configured in Clixon (see below). An example /etc/snmpd/snmpd.conf is as follows::

master agentx agentaddress 127.0.0.1,[::1] rwcommunity public localhost agentXSocket unix:/var/run/snmp.sock agentxperms 777 777

It is necessary to ensure snmpd does not to load modules implemented by Clixon. For example, if Clixon implements the IF-MIB and system MIBs, snmpd should not load those modules. This can be done using the "-I" flag and prepending a "-" before each module::

-I -ifTable -I -system_mib -I -sysORTable

Net-snmp must be started via systemd or some other external mechanism before clixon_snmp is started.

To build the snmp support, netsnmp is enabled at configure time. Two configure options are added for SNMP:

  • --enable-netsnmp Enable SNMP support.
  • --with-mib-generated-yang-dir For tests: Directory of generated YANG specs (default: $prefix/share/mibyang)