Getmac reports ERROR Provider type not defined.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have Minlogon, TCP/IP Networking, EWF and TCP/IP ARP. Need to enter static
IP by ARP.
Any advice?

Vlastimil
 
Vlastimil,
I have Minlogon, TCP/IP Networking, EWF and TCP/IP ARP.
Need to enter static IP by ARP.

Could you expand what you want to accomplish?
If just fix the GetMac problems, please see below.
Any advice?

Does the network driver got installed and working properly on your build?

KM
 
Well, the goal is to minimize Flash space for System.
I have made some large Builds that run OK on that HW. But now there is only
one thing I need - to execute a program from Server. I tried to build system
that consist from MinLogon, TCP/IP Networking, EWF and TCP/IP ARP only.
Getmac was included. When I want to get MAC addresse Getmac reports ERROR
Provider type not defined.

Vlastimil
 
Btw, NETSH Command reports:
WARNING: Could not obtain host information from machine XXXXX. Some commands
may not be available. Provider type not defined.

Exit command returns command line prompt.
When I use netsh at a large build everything goes OK. There must be missing
a Component (or Components), which one?

V. Pohnetal
 
Make sure that you have the networking driver installed properly and running
fine. (use devcon or SetupApi.log)
Or you can use "snetcfg -v -s a" to list installed NICs.

Also, make sure you've got the following components included:
Network Command Shell
Network Command Shell Interface Context
IP Router Monitor Library
Network Diagnostics
Remote Access Monitory
IP Security Services
Primitive: W32topl


KM
 
KM,
I had an image where my netsh setup worked perfectly at the end of FBA. It
had Winlogon (XP Explorer User Interface component) and Explorer Shell. I
changed it to Minlogon and a Custom Shell, but now my static ip config
doesn't work. I didn't have all of these components in my build before, so
how did it work?

Thanks!
MJ
 
MJ,

Do you know where and how it is failing now?
What error you are getting from netsh?
Do you use you customer script (batch, wsh?) to work with netsh? If so, can you show us the script?
Just in case you use "Local Area Network" interface name there, make sure to register the name first with command like:
rundll32 netshell.dll HrRenameConnection
 
There definitely aren't any problems with the script. I even know that the
Static IP was set correctly, because I can connect to my shell from another
PC. However, my shell can't connect to another pc. The socket connect()
call fails.

MJ
 
MJ,

Well.. If it is failing in your code, check out WSAGetLastError for the error code.

Also, test the network with some other apps (ping, trace, net.exe, etc.).
 
I used WSAGetLastError and it appears that the error is WSAEADDRNOTAVAIL.
The address is definitely there. The only difference here is that I am
running as a custom shell instead of in a Windows Explorer shell. Keep in
mind that I can still connect to this PC from another, so I know that the
static ip was set correctly. It just looks like I can't get out of the pc to
the network. Any ideas? The only thing I changed was the shell and I
removed the XP User Interface component (I think I put it back in at one
point and it still didn't work).

Thanks!
MJ
 
MJ,

http://support.ipswitch.com/kb/WSK-19980701-EM04.htm
Hope you properly structed the code. Did you try the code on another machine (XP Pro)? Can you show us the code?

Make sure the socket library was properly initialized (have WSAGetLastError cehck everywhere you deal with network stack calls)

As I mentioned earlier, try to run other network tools on the device - net.exe, ping, etc. to "get out of the pc".

If this is SP2, disable Firewall.

If nothing helps, have Filemon/Regmon tools running while to do the connect() call and monitor on whether anything is missing.
 
Vlastimil,

Please ensure you have component "WMI Win32 Provider" added to your build.
This will cause the getmac error you are referring to.
 
Back
Top