问题
I'm writing a custom MIB to expose a table over SNMP. There will be one table with set columns, but a variable numbers of rows. Is it possible, with Net-SNMP
, to add multiple rows to the table from multiple processes (e.g. process A creates row 1, process B creates row 2, etc...)? I would like to avoid having one "master sub-agent" if possible (other then something that is a part of Net-SNMP
, like snmpd
/snmptrapd
/etc).
I would like to use mib2c
to help generate code if possible, but I can work around that if it can't accomplish what I need.
I'm using Net-SNMP 5.5
at the moment. Upgrading is possible if support for what I need is added in newer versions.
来源:https://stackoverflow.com/questions/52487820/multiple-sub-agents-for-one-table-in-net-snmp