Announcement

Collapse
No announcement yet.

DHCP troubleshooting

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • DHCP troubleshooting

    Hello,
    I am trying to export DHCP data base and getting an error:

    P:\>netsh
    netsh>dhcp
    netsh dhcp>server \\172.20.32.61
    netsh dhcp server>export c:\w3k3DHCPdb all
    Tentative de chargement d'un programme de format incorrect.

    OS is French version and the message means:
    An attempt to load a program with invalid format

    No errors in event viewer. Only:
    netsh (168 Le moteur de la base de données s'est arrêté.

    (metsh stopped and next message started).

    However, when open DHCP console the server icon has Yellow triangle with exclamation point on it.
    When expand the range object has the same icon.

    I know that couple of month ago DHCP server was transfered from very old 2000 server to current 2003.

    Where to start the troubleshooting for proper DHCP db export?

    Thanks,
    Michael.
    "When you hit a wrong note it's the next note that makes it good or bad". Miles Davis

  • #2
    Re: DHCP troubleshooting

    found:
    The blue exclamation point means that you're about to run out of leases soon. The yellow exclamation point means that you have reach your lease limit, and the green means you're fine with ip leases.

    Probably this is the cause of DHCP db export failure. Will try to fix this.

    Suggestions?
    "When you hit a wrong note it's the next note that makes it good or bad". Miles Davis

    Comment


    • #3
      Re: DHCP troubleshooting

      Hi,

      What is your purpose behind exporting DHCP database? What are you trying to achieve?
      Thanks & Regards
      v-2nas

      MCTS 2008, MCTIP, MCSE 2003, MCSA+Messaging E2K3, MCP, E2K7
      Sr. Wintel Eng. (Investment Bank)
      Independent IT Consultant and Architect
      Blog: http://www.exchadtech.blogspot.com

      Show your appreciation for my help by giving reputation points

      Comment


      • #4
        Re: DHCP troubleshooting

        you are right

        sorry...

        need to import it to 2008. NOT 2003.
        For 2003 we don't actually need export-import.
        "When you hit a wrong note it's the next note that makes it good or bad". Miles Davis

        Comment


        • #5
          Re: DHCP troubleshooting

          Hi,

          Please give this a try. You would need additional dhcp to troubleshoot the issue that you facing. Check More information section of the following article

          How to move a DHCP database from a computer that is running Windows Server 2003 to Windows Server 2008
          http://support.microsoft.com/kb/962355
          Thanks & Regards
          v-2nas

          MCTS 2008, MCTIP, MCSE 2003, MCSA+Messaging E2K3, MCP, E2K7
          Sr. Wintel Eng. (Investment Bank)
          Independent IT Consultant and Architect
          Blog: http://www.exchadtech.blogspot.com

          Show your appreciation for my help by giving reputation points

          Comment


          • #6
            Re: DHCP troubleshooting

            the first step in this KB is EXPORT, that fails and is my question.

            thanks.
            "When you hit a wrong note it's the next note that makes it good or bad". Miles Davis

            Comment


            • #7
              Re: DHCP troubleshooting

              While exporting the configuration on the Windows 2003 Server, using netsh, you may see an error message similar to one of the following:

              · Access is denied

              · An attempt was made to load a program with an incorrect format.





              In this case following steps can be followed to export the DHCP database.

              1. On the Windows 2003 DHCP server which had the original database, at a cmd prompt type the following command: netsh DHCP server dump >c:\DHCPdump.txt

              2. Copy the DHCPdump.txt to another Windows 2003 box

              3. Open up the text file and edited the text file with a find and replace changing the IP address from the old to the new Windows 2008 server, and then save the file.

              4. Stop the DHCP server service and delete the contents of the DHCP folder and subfolders.

              5. Start the DHCP server.

              6. Right-click on the Command Prompt (cmd) and select run as administrator, to open the cmd prompt using elevated privileges.

              Note You must have local administrator permissions to import the data.



              7. At the command prompt type: netsh exec DHCPdump.txt

              8. At the command prompt type: netsh DHCP server initiate reconcile

              9. Open up the console and check that all of the options are intact and the Reservations are present.

              10. At the command prompt type: netsh DHCP server export c:\DHCP.txt all



              In some scenarios you may receive the following error while importing the database on a 2008 server.

              "The Requested operation requires Elevation."



              Make sure that the command prompt is opened with elevated privilege on windows server 2008.

              To do so right click on the command prompt menu option and select run as administrator and then try and import the database.

              For more information on moving a DHCP server from one operating system to another see the following knowledgebase article:

              325473 How to move a DHCP database from a computer that is running Windows NT Server 4.0, Windows 2000, or Windows Server 2003 to a computer that is running Windows Server 2003

              http://support.microsoft.com/default...b;EN-US;325473 (http://support.microsoft.com/default...b;en-us;325473)
              Thanks & Regards
              v-2nas

              MCTS 2008, MCTIP, MCSE 2003, MCSA+Messaging E2K3, MCP, E2K7
              Sr. Wintel Eng. (Investment Bank)
              Independent IT Consultant and Architect
              Blog: http://www.exchadtech.blogspot.com

              Show your appreciation for my help by giving reputation points

              Comment


              • #8
                Re: DHCP troubleshooting

                Hi v,
                thank you very much it helped!

                Now I will try your suggestion for my question on GPO forum about custom adm

                Appreciate!
                "When you hit a wrong note it's the next note that makes it good or bad". Miles Davis

                Comment

                Working...
                X