Configuration files are not resilient to power failure

2018-01-15 Thread Josef Ridky
Hi coders, I have been requested to report following issue in net-snmp. I would like to kindly ask you for your suggestion/opinion to solve this issue. Thanks in advance for your replies. Issue description: net-snmp's configuration files are not resilient to power failure. following a power fa

Cross Compiling Windows --> ARM Linux

2018-01-15 Thread Matteo
Hi, actually I'm trying to run the simple demon app, cross compiling for ARM (embedded) Linux. I would compile on Windows, and run all the code on linux for arm. There is any guide to how to install or copy libraries on windows? There is any specific makefile? I'm using arm-none-linux-gnueabi-

Re: Cross Compiling Windows --> ARM Linux

2018-01-15 Thread Bart Van Assche
On 01/15/18 01:20, Matteo wrote: Hi, actually I'm trying to run the simple demon app, cross compiling for ARM (embedded) Linux. I would compile on Windows, and run all the code on linux for arm. There is any guide to how to install or copy libraries on windows? There is any specific makefile?

NET-SNMP version: 5.7.3 and IPv6

2018-01-15 Thread Simon Chamlian
Hi, Just recompiled the agent by enabling IPv6 ( --enable-ipv6). The agent is working fine but don't seem to be able to use IPv6. Example: # snmpget -v 3 -u Admin -a MD5 -A Admin-00 -l authNoPriv 172.27.42.199 MPBC-1RU-MIB::mpbc1RUNEID.0 -Oqv "TestNew" works fine. In Ipv6: # snmpget -v 3 -

Adding description within trap PDU

2018-01-15 Thread Simon Chamlian
Hi, Is it possible to add a description within a trap (either v2 or v3)? for example: snmptrap -v 2c -c public 172.27.37.227 "" coldStart.0 snmptrap -v 3 -u Admin -a MD5 -A Admin-00 -l authNoPriv 172.27.37.227 "" coldStart.0 Is there an way to add a descriptive text? As far as I know, the answ

Re: Adding description within trap PDU

2018-01-15 Thread Simon Chamlian
Never mind, I found the answer. Yes it can by adding a '-s "some text". Thanks, S On Mon, Jan 15, 2018 at 2:16 PM, Simon Chamlian wrote: > Hi, > > Is it possible to add a description within a trap (either v2 or v3)? > > for example: > snmptrap -v 2c -c public 172.27.37.227 "" coldStart.0 > s

Re: Adding description within trap PDU

2018-01-15 Thread Fulko Hew
Yes, you could, but... If the definition of the trap doesn't include the fields that you want, you are not (technically) allowed to add them. This is important because the receivers are designed to expect what the definitions (in the MIB files) specify. No more, no less, and in the order defined.

Re: Adding description within trap PDU

2018-01-15 Thread Bart Van Assche
On 01/15/18 18:32, Fulko Hew wrote: Yes, you could, but... If the definition of the trap doesn't include the fields that you want, you are not (technically) allowed to add them. This is important because the receivers are designed to expect what the definitions (in the MIB files) specify. No mo

Re: Adding description within trap PDU

2018-01-15 Thread Fulko Hew
On Mon, Jan 15, 2018 at 10:15 PM, Bart Van Assche wrote: > On 01/15/18 18:32, Fulko Hew wrote: > >> Yes, you could, but... >> >> If the definition of the trap doesn't include the fields that you want, >> you are not (technically) allowed to add them. >> >> This is important because the receivers

Re: Adding description within trap PDU

2018-01-15 Thread Bart Van Assche
On 01/15/18 20:22, Fulko Hew wrote: b) I've always considered David Perkins' book 'Understanding SNMP MIBs' as a good reference on how to interpret the specs. For TRAPS it says: The optional VARIABLES clause of the TRAP-TYPE construct is used to specify one or more scalar or columnar objects tha