Antw: IF-MIB::ifOperStatus wtih ifup/ifdown commands

2017-05-25 Thread Ulrich Windl
I don't know whether this is fixed already, but in net-snmp-5.4.2.1 there is the problem that after restarting the network stack, bonding and bridge devices appear twice (with the same name), but with different status... >>> Josef Ridky schrieb am 25.05.2017 um 15:12 in Nachricht <87738501.1571

Antw: Username existence disclosure from Agent

2017-05-07 Thread Ulrich Windl
>>> Madhusudhana R schrieb am 05.05.2017 um 11:16 in Nachricht : > Hi Coders, > > Regarding a security related finding... > > When incorrect username is provided from manager (ManageEngine tool), the > manager throws "Discovery failed for username" which could be used by an > attacker to know

Antw: Re: Using -Wno-implicit-fallthrough creates warnings

2017-04-12 Thread Ulrich Windl
>>> Bill Fenner schrieb am 12.04.2017 um 16:36 in Nachricht : [...] > Since there's no obvious way to check whether or not the compiler > *actually* supports this warning flag, I'm fine leaving things as they are. Did you play with "gcc --help=warnings | grep -- -Wno-implicit-fallthrough"? ;-)

Antw: Re: Adding user failed if the user name with special character

2016-11-28 Thread Ulrich Windl
>>> Robert Story schrieb am 29.11.2016 um 04:15 in Nachricht <20161128221525.010ab...@freesnmp.com>: > On Tue, 22 Nov 2016 19:26:50 + cai wrote: > CA> But I found, when I include some special letters like dash or > CA> underscore in user name, it will failed to show correct user > CA> in /var/

Antw: Re: What's the purpose of mib.c:2824 tmpbuf2[strlen(tmpbuf2)-1] = 0;

2016-11-21 Thread Ulrich Windl
>>> Fulko Hew schrieb am 20.11.2016 um 02:29 in Nachricht : [...] > I had two choices: > > 1/ Initialize all my statics. > 2/ Have either the OS, or the HW initialization routine in the ROM >zero all RAM (or have the RAM test/discover routine​ leave the RAM >zeroed when it finishes) befo

Antw: Re: What's the purpose of mib.c:2824 tmpbuf2[strlen(tmpbuf2)-1] = 0;

2016-11-09 Thread Ulrich Windl
>>> Robert Story schrieb am 08.11.2016 um 21:17 in >>> Nachricht <20161108151723.282ff...@ispx.vb.futz.org>: [...] > So the strlen - 1 chops off the newline. Actually it tries to remove the last character before '\0', even if there is none. For safetly there should be a check for a zero-length

Antw: Re: What's the purpose of mib.c:2824 tmpbuf2[strlen(tmpbuf2)-1] = 0;

2016-11-09 Thread Ulrich Windl
>>> Robert Story schrieb am 08.11.2016 um 22:15 in >>> Nachricht <20161108161524.606df...@freesnmp.com>: > On Tue, 8 Nov 2016 13:02:51 -0800 Bart wrote: > BVA> On 11/08/2016 12:17 PM, Robert Story wrote: > BVA> > Static buffers/arrays should be initialized before use. If > BVA> > you find any tha

Need help: AgentX callbacks not called

2015-09-08 Thread Ulrich Windl
Hi! I need some help finding the missing link for my AgentX subagent: I made an agentX that registers successfully with the master agent, and it registers the MIB object. However for some reason, the master agent seems to know nothing about the MIB, and the provided callback function are not ca

Antw: Re: Q: enums not recognized

2015-09-03 Thread Ulrich Windl
@end@ --- As said earlier, I'm not using the latest version (I'm using net-snmp-5.4.2.1-8.12.22.1.8750.1.PTF.935863 of SLES11 SP3); maybe someone knows whether this bug has been fixed meanwhile. Regards, Ulrich >>> Olivier Miakinen schrieb am 02.09.2015 um 11:52 in Nach

Q: enums not recognized

2015-09-02 Thread Ulrich Windl
Hi! I'm working with an older version of Net-SNMP. I have a question: My MIB uses an enum "iotwTimingSchedPolicy" that is defined as iotwSchedPolicyEnum ::= Integer32 { schedPolicy-nice(0), schedPolicy-batch (1), schedPolicy-FIFO(2), schedPolicy-idle(3), schedPol

Wtrlt: Q: How to remove a table row?

2015-08-25 Thread Ulrich Windl
Some days ago I was asking for information on the users list, but got no responses. So here it goes again (modified): > Hi! > > I found the example on how to add a SNMP table row in a subagent > (snmp_set.c), but I > wonder how to dynamically remove a row, assuming you have the index or some >