Trouble Shooting

Index Document SAS   SAS Questions SAS Main Frames Example. Data Warehousing C Programs Trouble Shooting  Favorite Sites Informatica  Blog

Trouble shooting

How can I display all the MAC addresses on my DHCP enabled network?


Using the Netsh.exe utility, and the technique from tip 10130, I have scripted dhcpMAC.bat to return all the MAC address of DHCP clients on my network.

The dhcpMAC.bat batch script requires no parameters. It MUST be run from a DHCP client. To redirect the MAC addresses to a file, use dhcpMAC>FileName.

dhcpMAC.bat contains:

@echo off

setlocal EnableDelayedExpansion

if exist "%TEMP%dhcpMAC.TM1" del /q "%TEMP%dhcpMAC.TM1"

set srv=N

set srvkey=HKLMSYSTEMCurrentControlSetServicesTcpipParameters

for /f "Tokens=3" %%a in ('reg query %srvkey% /V dhcpNameServer^|find /i "dhcpNameServer"') do (

 set srv=\%%a

)

if "%srv%" EQU "N" goto nodhcp

for /f "tokens=1" %%a in ('netsh dhcp server %srv% show scope^|find /i "Active"') do (

 set scope=%%a

 for /f "tokens=3-8 Delims=-" %%b in ('netsh dhcp server %srv% scope !scope! show clients^|find " -D"') do (

  set MAC=%%b-%%c-%%d-%%e-%%f-%%g

  set MAC=!MAC: =!

  @echo !MAC!>>"%TEMP%dhcpMAC.TM1"

 )

 for /f "tokens=3-8 Delims=-" %%b in ('netsh dhcp server %srv% scope !scope! show clientsv5^|find " -D"') do (

  set MAC=%%b-%%c-%%d-%%e-%%f-%%g

  set MAC=!MAC: =!

  @echo !MAC!>>"%TEMP%dhcpMAC.TM1"

 )

)

sort "%TEMP%dhcpMAC.TM1" /O "%TEMP%dhcpMAC.TM2"

del /q "%TEMP%dhcpMAC.TM1"

set /p prev=<"%TEMP%dhcpMAC.TM2"

@echo.%prev%

for /f "Skip=1 Tokens=*" %%a in ('type "%TEMP%dhcpMAC.TM2"') do (

 if "%%a" NEQ "!prev!" @echo.%%a&set prev=%%a

)

del /q "%TEMP%dhcpMAC.TM2"

endlocal

goto :EOF

:nodhcp

@echo ERROR: There is no DHCP server configured for %ComputerName%.

endlocal

 

Does your 100MB EtherNet TCP/IP network perform poorly?. 10-Nov-97

 

If your 100MB EtherNet TCP/IP network performs poorly, it could be due to ACK collisions. You can contact your NIC manufacturer to see if there is a way to increase the interframe gap.

The Intel EtherExpress 100B adapters have a registry parameter:

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicese100bxParameters

where x is the number of your interface card. Add Value name Adaptive_ifs as type REG_DWORD and set it to 1. This will enable an adaptive algorithm, while 0 will disabled it. A value of 2 - 200 sets a predefined interframe gap, if you want to measure collisions at 20, 40, 60, ..... and pick one with a low collision rate and good performance.

If you have a different NIC, edit:

HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters

and add Value name TcpWindowSize as type REG_DWORD and set it to 2920 (decimal).

Note: This tip is for 100MB EtherNet TCP/IP networks only. Using this parameter on a 10MB network, or on a WAN or FDDI, or Token Ring, or anything else, will impact performance.

  

A Windows Installer installation on Terminal Server or Remote Desktop connection reports an error 2755 or error 1305?


When installing an MSI package from a Terminal Services session on Windows 2000 or Windows Server 2003, or from a Remote Desktop session on Windows XP Professional, you receive Internal Error 2003.

NOTE: If you are running Windows 2000 SP1, you receive error 1305, Error reading from file.

This behavior will occur of you are using a mapped drive to access the installation files and Windows Installer is running in a different session which has different drive mapping.

To workaround this problem, use a UNC path from the command-line.

 

 

10196 » The Office XP Activation Wizard errors when you use the keyboard to select a country? (27-Feb-06)


When you use the keyboard to select a country in the Office XP Activation Wizard, you receive:

Microsoft ProgramName has encountered a problem and needs to close. We are sorry for the inconvenience.

Where ProgramName is the name of the Office XP program that you are attempting to activate.

This behavior will occur if you install Office XP on Windows NT 4.0 with Internet Explorer 4.01 and you select Do Not Upgrade Microsoft Internet Explorer in Setup, and you type the first letter of your country in the Country/Region list and press TAB to move to the next field.

To workaround this behavior, use the mouse the select the Country/Region and then click the mouse in the next field.

 

 

The Print Management Console snap-in does not enumerate the Drivers node in Windows Server 2003 R2? (27-Feb-06)


When you open the PMC (Print Management Console) snap-in in the MMC (Microsoft Management Console) and expand the Drivers node, the Drivers node is not enumerated.

Microsoft is aware of this erroneous behavior.

NOTE: See Print Management Step-by-Step Guide.

 

 

When installing Office 2003 on Windows XP, you receive 'Error 1311 - Cannot locate source file Cabinetfile.cab'? (24-Feb-06)


When you install Office 2003 on Windows XP, you receive a message similar to:

Error 1311

Cannot locate source file Cabinetfile.cab

This behavior is symptomatic of installing Office 2003 from .CAB files located on your network and at the same time, another Windows XP client is installing from the same installation point and does not have any service pack installed.

This behavior occurs because Windows XP, prior to SP1, does not release control of the installation files in a timely fashion.

To workaround this behavior, press Retry when you receive the message.

To resolve this problem, visit Windows Update (Start / All Programs / Windows Update) and apply the latest service pack.

NOTE: You can also create an administrative installation point for Office 2003, because an administrative installation point does not contain .CAB files

 

A Windows XP computer that was set up by using an image does not appear in the WSUS (Windows Server Update Services) console?


If the image was not created by Sysprep or another unique SID program, you will experience the subject behavior, because the imaged clients may have a duplicate SusClientID value in the registry.

I have scripted FixSusClientID.bat to resolve this problem. Run the FixSusClientID.bat script on an imaged Windows XP computer. Ten minutes after FixSusClientID.bat finishes, start the WSUS console to verify that the clients appear.

FixSusClientID.bat contains:

@echo off

net stop wuauserv

REG DELETE "HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdate" /V PingID /F

REG DELETE "HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdate" /V AccountDomainSid /F

REG DELETE "HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdate" /V SusClientId /F

net start wuauserv

wuauclt.exe /resetauthorization /detectnow

 

WinRM on Windows Server 2003 R2 does not respond to an authentication challenge by sending credentials? (23-Feb-06)


When you type winrm operation http://ServerName/wsman on a Windows Server 2003 R2 computer to send a request to a remote server using the Windows Remote Management command-line, Microsoft's implementation of the WS-Management protocol:

- The remote server send a http 302 status code to http://ServerName/wsman/. Notice the tailing slash.

- The WS-Management protocol repeats the request to the redirected URL.

- The remote server responds by sending a 401 authentication challenge.

Because of the added trailing slash, WinRM does not respond to the authentication challenge by sending credentials.

To workaround this behavior, use the -prefix switch:

winrm operation -machine:ServerName -prefix:wsman/ <ResourceURI>

Where <ResourceURI> is a short string that identifies a resource in the enterprise, such as a computer, a process, a disk drive, or a temperature sensor in a Baseboard Management Controller (BMC). The URI is the Web service addressing mechanism defined in Internet Engineering Task Force (IETF) Uniform Resource Identifier (URI): Generic Syntax [RFC3986].

NOTES: See the following:

 WS-Management Protocol

Windows Remote Management (WinRM)

 

Windows SharePoint Services and SharePoint Portal Server 2003 Support boundaries for Active Directory Federation Services.


Microsoft Knowledge Base Article 912492 contains the following summary and introduction:

SUMMARY

Active Directory Federation Services (ADFS) enables web single sign-on, federated identity and access management by securely sharing digital identity and entitlement rights across security and enterprise boundaries. The ADFS functionality becomes available in Windows Server 2003 R2.

INTRODUCTION

The purpose of this article is to describe supported configurations, known limitations, and recommendations for improving the user experience when you deploy Microsoft Windows SharePoint Services and Microsoft Office SharePoint Portal Server 2003 with ADFS.

 

Service or driver failed to start and Event Viewer has taken a vacation. 10-Nov-97

 

If you receive a message that a service or driver has failed to start, you are instructed to check the Event Viewer for details.

If Event Viewer has gone on vacation (all your All Users folders are gone) and/or no Network icon displays in Control Panel, you may have a missing or corrupted Ole32.dll in the %SystemRoot%System32 folder.

Install a copy from the CD-ROM, your Latest Service Pack or Hotfix. Reboot your system.