Why does "TCP/IP Netstat Command" need to pull in Microsoft Management Console (MMC) ?

  • Thread starter Thread starter Richard Mahn
  • Start date Start date
R

Richard Mahn

The "TCP/IP Netstat Command" component pulls in the "Simple Network
Management Protocol" (by something not visible in TD) component. This
depends on the "SNMP snapin" and somehow MMC (it comes in even if the
snap-in resource is disabled).

Can anyone explain why the snmp protocol should be pulling in a GUI
components ?
Are the GUI pieces really required to allow the protocol to work properly ?
Lmited test indicates that if I disable the snap-in and very manually
inhibit MMC and its dependents from being pulled in, netstat seems to work
fine.

Shouldn't lower level components only pull in even lower components and not
pull in higher (GUI) components that will cause a cascade of GUIness to be
added to the project ? Shouldn't the GUI pull in SNMP protocol and not vice
versa ? Is there even a seperate GUI component for the SNMP snap-in et al ?
 
Future releases become inherently more componentized based on experiences
like this, and now we know about it - thank you.

But to answer the basic question, netstat depends on snmpapi.dll, and the
snmp snap-in (snmpsnap.dll) happens to be owned by the same snmp component
that owns snmp.exe. So why don't you try this experiment, which hasn't been
tested by us, so the burden will be on you for this experiment to ensure
your resulting runtime doesn't have some unforeseen regression:
- Turn off autoresolve in TD and do not satisfy the MMC dependency.

Of course I have no idea what may be broken by not adding that dependency,
but please reply back here and let us know what you find. If you have full
control over snmp without the snap-in working and without MMC in the image
and you find no other regression, i'll ask the appropriate team to
investigate separating this dependency in a future release.

Thanks,
Andy
 
As noted in the original message, I have made a build that includes SNMP
excluding the snapin and MMC components. Netstat, the original goal, seems
to work fine. I know very little about and don't consciously use snmp, so I
don't know how to see if snmp is working.

So to that extent, leaving out the snapin and MMC parts seems to be fine.
 
Back
Top