Using a later 5.2.pre2- win32 binary,
these un-install issues were tested
  All files installed from Net-SNMP package were removed

  If snmpd agent was registered and running,
    it was stopped, unregistered, then removed.

  All references to "snmpd.log" no longer exist in the Registry
    after un-install

  Install, register service, Uninstall, followed by
     Install, register service is now working

I did not try running the agent without registering
to see if un-install would try to stop the agent.

I think this is good enough.

Oh, one more nit :  Please create the <BASE>\log subdirectory,
so that the log files have a home.

Looks great, folks!

-Mike Slifcak



[EMAIL PROTECTED] wrote:
Using a 5.2.pre2- win32 binary..
1. Un-install does not remove all of the files.
    These files remain:
/c/usr/share/snmp/mib2c.access_functions.conf
/c/usr/share/snmp/mib2c.array-user.conf
/c/usr/share/snmp/mib2c.check_values.conf
/c/usr/share/snmp/mib2c.check_values_local.conf
/c/usr/share/snmp/mib2c.column_defines.conf
/c/usr/share/snmp/mib2c.column_enums.conf
/c/usr/share/snmp/mib2c.conf
/c/usr/share/snmp/mib2c.create-dataset.conf
/c/usr/share/snmp/mib2c.int_watch.conf
/c/usr/share/snmp/mib2c.iterate.conf
/c/usr/share/snmp/mib2c.iterate_access.conf
/c/usr/share/snmp/mib2c.notify.conf
/c/usr/share/snmp/mib2c.old-api.conf
/c/usr/share/snmp/mib2c.scalar.conf
/c/usr/share/snmp/mibs/SNMP-USM-AES-MIB.txt

NOTE: These files also remain.  As we had discussed,
these files are OK to remain.
/c/usr/etc/snmp/snmp.conf
/c/usr/etc/snmp/snmpd.conf
/c/usr/log/snmpd.log

2. Un-install does not remove service information from registry

   CHECK = Invoke REGEDIT and search from the top for snmpd.log

   Install then CHECK . should not see snmpd.log

   Register agent service then CHECK.  should see snmpd.log

   Un-install then CHECK. should not see snmpd.log

These statements I believe should hold true
 When user invokes Register service, that action should always succeed
 When user invokes Unregister service, that action should always succeed


3. If I install, register service, un-install, then install, attempt to register service will fail, with indication that the service is already registered "Can't create service Net-SNMP Agent. The specified service already exists. " I must manually unregister the service, in this case.

    I believe that the correct fix is to
    invoke the unregister service function when this occurs,
    and then retry the register service function one more time.

    I think something like the change I've described
       should be made in winservice.c.

    I don't trust return codes in .BAT files.
     They have been proven unreliable.

     What do you think of this ?



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to