📄 bug
字号:
1) Memory leak (have not seen this lately)The following snippet used to grow in memory (and may still) - pleasenotify me if anyone still observes this and even better has a fix.perl -le 'use SNMP;$obj = new SNMP::Session DestHost, "dubravka";while (){print $obj->get(["ifNumber",0]);}'***Note: need to verify this with the async API as well***2) not sure if this is a bug but I can cause a crash with a 'gotoLABEL;' from within an async callback function.3) the following varbind format is not encoded correctly ... I have seen this crash the agent as well$sess->get(["sysDescr.0"]);use the following instead:$sess->get(["sysDescr",0]);or$sess->get("sysDescr.0");4) this is not handled yet$sess->get(['MODULE-NAME::mibName',0]);but strangely$sess->get(['MODULE-NAME::mibName.0']);works5) if you are on a system that does not have vsnprintf in libc but youdo have BerkleyDB installed ucd configure will assume you will get itfrom there - you will need to change hints/solaris.pl to$self->{LIBS} .= ' -lkstat -ldb';
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -