problem sending snmp v3 traps with snmp++ example

Jochen Katz katz____telematik.informatik.uni-karlsruhe.de
Thu Dec 21 11:32:20 CET 2000


Hi,

> I have compiled the rsaeuro package as well as the snmp++ package. And
> compiled and linked against these projects using the
> consoleexamples\snmpTraps.cpp.
> I can send out v1 and v2 traps just fine, but then I try to send out v3
> traps I get the following error message:
>      Error saving snmpEngineBoots counter: -6

do you have write access to the file snmpv3_boot_counter? If the
permissions are ok, try the following patch to snmp++/src/v3.cpp:
--- v3.cpp.orig Thu Dec 21 11:22:15 2000
+++ v3.cpp      Thu Dec 21 11:22:54 2000
@@ -290,6 +290,8 @@
     fclose(file_out);
 #ifdef WIN32
     _unlink(fileName);
+#else
+    unlink(fileName);
 #endif 
     if (rename(tmpFileName, fileName))
     {

Please let me know, if this doesn't help.

Best regards,
  Jochen



More information about the AGENTPP mailing list