[EMAIL PROTECTED] wrote:
MJS>>2.1. HELP The on-line #documentation page includes MJS>> one new section "General" and two new links MJS>> # Configuring the software via .conf files. MJS>> # The doxygen generated API documentation
Fixed. Patch 1030900.
MJS>>2.2. HELP Mailing Lists -announce is missing
MJS>> and the other list names should be URLs, each starting as
MJS>> http://www.net-snmp.org/lists/{announce,users,coders}
Fixed. Patch 1030900.
MJS>>2.3. HELP EXAMPLE.win32
MJS>> I personally like the version of snmpd.conf that is packaged
MJS>> with Fedora's net-snmp-5.1.2-4.src.rpm. It has many examples
MJS>> of setting up VACM so that Net-SNMP agent is RFC-1213 capable.
MJS>> I have no time to do this, and there isn't a pressing need
MJS>> to make this example much better. Just wanted to mention this.
Maybe it should be mentioned in a separate thread, as it's not Windows specific and there's probably lots of users that would not read this message because it's mostly for Windows.
MJS>>3.1. AGENT demo MIB objects included ? MJS>> I think these objects should not be in the released EXE: MJS>> UCD-DEMO-MIB::ucdDemoResetKeys.0 = INTEGER: 0 MJS>> UCD-DEMO-MIB::ucdDemoPublicString.0 = "" MJS>> UCD-DEMO-MIB::ucdDemoUserList.0 = "" MJS>> UCD-DEMO-MIB::ucdDemoPassphrase.0 = ""
Fixed. Patch 1030900.
MJS>>3.2. AGENT example MIB included ? MJS>> I think this branch should not be in the released EXE: MJS>> UCD-SNMP-MIB::ucdavis.254
Fixed. Patch 1030900.
MJS>>4. MENU MJS>> Suggest that Un-install be the last, not the first, menu item MJS>> seen from the "Start Menu->Programs->Net-SNMP" menu. MJS>> MJS>>5. INSTALL MJS>> No event log entries for Net-SNMP Install/Uninstall. MJS>> Other apps such as Adobe Reader and Norton Anti-Virus do... MJS>> MJS>>6.1. UNINSTALL *bug report already exists* MJS>> Should invoke (installdir)\unregisteragent MJS>> and (installdir)\nregistertrapd
MJS>>6.2. snmpd and snmptrapd MJS>> Write only to console, return 1 if error. MJS>> Never write to Windows popup.
AS> I have to respectfully disagree. I don't think this is a bug, but a
AS> feature and I coded it that way intentionally. Windows is a graphical
AS> environment, and the message box on failure requires user interaction to
AS> clear it. That is consistant with most Windows applications. I think I
AS> know where you are going with this though, since you have mentioned
AS> automated installers such as SMS in the past. Perhaps one could script
AS> clearing the failure dialog in their install script.
Where it makes sense, we should allow for automated delivery and install. Where it makes sense, we should provide the human installer with as much information as possible "should things go wrong".
MJS>> Repeated "-register" should work without error. MJS>> Repeated "-unregister" should work without error.
AS> Now that I can buy.
It makes the automated upgrade easier.
Also, if I'm experimenting or debugging, I can use the Start Menu item
to reset the service when I have completed the experiment or debug session.
MJS>> It is OK for register/unregister to send warnings MJS>> to console, iff console exists. MJS>> HINT: "if fileno(stderr) < 0 then DONOTPRINT
AS> Just out of curiosity, why? Personally, I do not see this as a bug either.
It isn't too important, just that a Windows GUI application should not require
a standard input/output/error existing for the application.
If you wanted to check, popup a dialog if (fileno(stderr) < 0) is true...
Invoke your test program from command prompt window
Invoke your test program from a desktop shortcut
Please see patch 1030913 and tell me what you think.
With the patch, the installer can use the -quiet option to prevent any Windows pop-ups when unregistering the agent during an uninstall. It also sets the DOS errorlevel after (un)registering, which can be used in batch files if needed.
Now there is an idea. That could work for installs also. I am not sitting in front of a Windows machine to test the patch, but it sounds reasonable.
I noticed that the event log code also outputs to the console, which is where the 'Net-SNMP Trap Handler - Successfully registered as Service' message comes from. It only outputs to the console when it is NOT running as a service. When I run snmptrapd under Linux with -f (don't fork), it does not output messages to the console. It only logs to syslog. So, why does the WriteToEventLog() function log to the screen?
If we agree to remove logging to the screen in WriteToEventLog, I can update the patch and add calls to DisplayError below the WriteToEventLog calls so it is consistent.
> Alex
I am not sure why it was written that way. IMO you are correct and it should only write to the event log.
Andy
------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders