SNMP Proxy allowing for collecting statistics and caching OIDS data
proxy {
community "..." "...";
socket "0.0.0.0:161";
target {
src-socket "192.168.1.1:12345";
dest-socket "1.1.1.1:161";
community "...";
};
statistics {
file "/some/stats/file.txt";
write-interval 60;
};
cache-for ".1.3.6.1.2.1.2.2.1.17.*" {
update-interval 60;
};
cache-for ".1.3.6.1.2.1.2.2.1.18.*" {
update-interval 60;
};
};
proxy {
...
};
- Config file is block language. Each entry start with name, optional parameters and ends with ';'.
- proxy entry -> represents one proxy instance
- proxy.community -> represents accepted communities on this proxy. Can be many.
- proxy.socket -> server socket for this proxy
- proxy.target -> destination system for this proxy instance
- proxy.target.src-socket -> source socket from which packets will be send to this target
- proxy.target.dst-socket -> destination device endpoint
- proxy.target.src-socket -> destination device community
- proxy.statistics -> statistics collector for this proxy
- proxy.statistics.file -> statistics output file
- proxy.statistics.write-interval -> statistics dump interval
- proxy.cache-for -> specifies base OID which shall be cached. For cached OIDS get-bulk is performed each 'update-interval'. And queries for this OIDS (or its children) will be returned from cache instead of target system.