关于发送TRAP V1

2009-03-17 Thread 青蛙咕啦咕啦
您好! 如果使用SNMPTRAP命令发送TRAP V1得数据呢,比如以下数据: GT=6; ST=5; EID=.1.3.6.1.4.1.343.2.5.1.1; .1.3.6.1.4.1.343.2.5.1.1.12.0=ULTRA-D0EE0DE1D; .1.3.6.1.4.1.343.2.5.1.1.8.0=1236154078; .1.3.6.1.4.1.343.2.5.1.1.9.0=0; .1.3.6.1.4.1.343.2.5.1.1.10.0=Intel Alert Management System II;

关于发送TRAP V1

2009-03-17 Thread 青蛙咕啦咕啦
您好! 如果使用SNMPTRAP命令发送TRAP V1得数据呢,比如以下数据: GT=6; ST=5; EID=.1.3.6.1.4.1.343.2.5.1.1; .1.3.6.1.4.1.343.2.5.1.1.12.0=ULTRA-D0EE0DE1D; .1.3.6.1.4.1.343.2.5.1.1.8.0=1236154078; .1.3.6.1.4.1.343.2.5.1.1.9.0=0; .1.3.6.1.4.1.343.2.5.1.1.10.0=Intel Alert Management System II;

Net-SNMP 5.4.2.1, NOTIFICATION-LOG-MIB and Win32

2009-03-17 Thread Bart Van Assche
Hello, Is there anyone who got NOTIFICATION-LOG-MIB support in snmptrapd working on Win32 ? Even after having fixed a few compile time and run-time errors, a MIB walk on OID 1.3.6.1.2.1.92 (notificationLogMIB) still returns zero varbinds. Any advice is welcome. The patch below fixes the

[PATCH 2/4] cpu_linux: avoid reading past end of buffer

2009-03-17 Thread Stephen Hemminger
The code parsing cpuinfo strings could read past end of buffer. Avoid this problem by using only part of the allocated size and null terminating. Add check for read error. --- agent/mibgroup/hardware/cpu/cpu_linux.c | 33 +- 1 files changed, 23 insertions(+), 10

[PATCH 0/4] Linux /proc related patches

2009-03-17 Thread Stephen Hemminger
-- -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based

[PATCH 1/4] interface_linux: fix valgrind warning

2009-03-17 Thread Stephen Hemminger
Valgrind can't figure out that speed will be set by SIOCETHTOOL, so just initialize it. --- .../mibgroup/if-mib/data_access/interface_linux.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) --- a/agent/mibgroup/if-mib/data_access/interface_linux.c 2009-03-16 16:44:07.608956089

[PATCH 3/4] memory_linux: avoid reading past end of buffer

2009-03-17 Thread Stephen Hemminger
Same proble as other proc scanning, need to terminate string before calling strstr. --- agent/mibgroup/hardware/memory/memory_linux.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) --- a/agent/mibgroup/hardware/memory/memory_linux.c 2009-03-16 16:44:16.512954764 -0700 +++

[PATCH 4/4] linux: increase size of initial proc i/o

2009-03-17 Thread Stephen Hemminger
The code for reading /proc files guesses at an initial size buffer, then has to retry if the buffer isn't big enough. This slows boot since it has to repeat several time. It was a penny wise (save memory) but pound foolish (cpu) choice in initial design. Instead choose size that gets rounded up to

Re: Python: issues about changes

2009-03-17 Thread John Khvatov
Hi Gabriele, Thanks for reply! On Mon, Mar 16, 2009 at 12:07:42PM +0100, Gabriele Messineo wrote: the changes seem fine and the code really clean. Thanks. - I think too that VarList is an added complexity. However, your implementation seems to me like a good tradeoff