1 2 Previous Next 16 Replies Latest reply: Jul 2, 2012 7:19 AM by MarXtar RSS

    Different Computers Same IP Address in Console

    MrGadget Specialist

      LD 9 SP3

      Please help me. I have had more headaches from Landesk over having 2 different computers  with the same IP address registered in the Landesk Management Console.

       

      This causes everything from can't remote, failed software deployment, vpro functions, patch failures then anything else with Landesk.

       

      The reason why this happens is I have many computers (8000 total being in my organization) that are not turned on everyday. The lease on a ip address is for 7 days so a computer that has not been turned on in 7 days may loose its IP address and is given to another. When that computer finally is turned on Landesk thinks it has the same IP address,

       

      I know the first thing you will say is to check the box that says scan on ip change in the agent. Well I'm telling you this is checked and has been since day one.

      Any other suggestions?

        • 1. Re: Different Computers Same IP Address in Console
          MarXtar SSMMVPGroup

          How is this causing you issues? When LANDesk is trying to connect to a targeted machine it is using the IP address in the database for that machine record. How is a different machine record using the same IP address causing issues to you? When distributing, LANDesk should be taking no notice of the other records unless they are also targeted and in the case that they are, the issue is that they have an old IP address rather than it being the same as another computer.

           

          Not saying you are wrong, just wanting to clarify how this problem which I've seen quite a few times is affecting you.

           

          Mark McGinn

          MarXtar Ltd

          http://landesk.marxtar.co.uk

          LANDesk Silver ESP

           

          The One-Stop Shop for LANDesk Enhancements

          - Wake-On-WAN - Distributed Wake-On-LAN, Scheduled Power Down, and SWDist Sequencing

          - NEW!! State Notifier - Real-Time Device & User State Inventory Updating & Alerting

          • 2. Re: Different Computers Same IP Address in Console
            Rookie

            check if inventory scanner runs  when the user log in to machine and sending back result to core,

             

            i think by default it should be running within 1 hour when user login or ip change

             

            change it to Max rendom delay = 0

             

             

            hope this will help you

             

             

            Regards

            • 3. Re: Different Computers Same IP Address in Console
              MrGadget Specialist

              MarXtar

              If I try to remote control a computer either it controls the wrong one or it just fails.

              If I try to wake a computer up it fails.

              Sending a job fails with can't find computeranother device answered.

              Just checked and I have one computer here in my building with a IP that is the same IP as a computer(going by its name) was visiting here sometime. The Inventory on the visiting Computer was a delta on Feb 5 2012.

              The Inventory on the othernon-visiting shows a Delta done yesterday.

              DHCP shows on the non-visiting one as containing the IP in Landesk. DNS in Active directory shows only this same one with that IP.

              The visiting computer apparently has not been turned on since it pulled the IP I'm guessing from what Inventory said

               

              I have the non-visiting computer here at my desk I cannot wake it up and when I send a job using muicast domain Rep WOL it fails with Cannot find 

              Agent.

              I have seen thissame failure with Cannot Find Agent Another Agent Reponded.

              MarXtar WOL does not wake it up either.

              • 4. Re: Different Computers Same IP Address in Console
                MarXtar SSMMVPGroup

                OK, makes sense then. It is a shame that LANDesk removed the option to resolve PCs by DNS rather than just the inventory. After this has failed, you can just put the machine name in the RC window rather than have it using the IP address. That way it would resolve via DNS but you would still have one failed connection first.

                 

                Odd though that waking the PC fails since that is not reliant on the IP address; it only needs the MAC address and last subnet that the device was on.

                 

                I know others such as FrankW have used SQL scripts to automatically delete old IP addresses but I don't have a copy of that script.

                 

                Not exactly what you need, but you could take a look at our State Notifier plug-in since that would at least give you an inventory indicator of whether the machine is online or not before you try to control it.

                 

                Mark McGinn

                MarXtar Ltd

                http://landesk.marxtar.co.uk

                LANDesk Silver ESP

                 

                The One-Stop Shop for LANDesk Enhancements

                - Wake-On-WAN - Distributed Wake-On-LAN, Scheduled Power Down, and SWDist Sequencing

                - State Notifier - Real-Time Device & User State Inventory Updating & Alerting

                • 5. Re: Different Computers Same IP Address in Console
                  Frank Wils SSMMVPGroup

                  Yes, I have Try this in SQL and save it as stored procedure to run periodically:

                   

                  -----------------------------------------------------------------------------

                   

                  SET NOCOUNT ON

                  DECLARE @Address varchar(255), @Check int

                   

                  DECLARE change_cursor CURSOR FOR

                  SELECT Address FROM TCP

                  GROUP BY Address

                  HAVING COUNT(Address) > 1

                   

                  OPEN change_cursor

                   

                  FETCH NEXT FROM change_cursor

                  INTO @Address

                   

                  SET @check = @@FETCH_STATUS

                   

                  WHILE @check = 0

                  BEGIN

                   

                              UPDATE TCP SET Address = '0.0.0.0' WHERE Computer_Idn IN

                              (

                                          SELECT DISTINCT Computer_Idn FROM Computer

                                          WHERE LastUpdInvSvr <

                                          (

                                                      SELECT Max(A.LastUpdInvSvr) FROM Computer A, TCP B

                                                      WHERE A.Computer_Idn = B.Computer_Idn AND B.Address = @Address

                                          )

                                          AND Computer_Idn IN

                                          (

                                                      SELECT Computer_Idn FROM TCP WHERE Address = @Address

                                          )

                              )

                   

                              FETCH NEXT FROM change_cursor

                              INTO @Address

                   

                              SET @check = @@FETCH_STATUS

                   

                  END

                   

                  CLOSE change_cursor

                  DEALLOCATE change_cursor

                  GO

                  -----------------------------------------------------------------------------

                   

                  Frank

                  Axle-IT

                  • 6. Re: Different Computers Same IP Address in Console
                    MrGadget Specialist

                    I'll try this because I think in many casesthe computer for some reason is not scanning or not send info to core.

                    One question, is the delayfor both IP change or login or is it just for login?

                    • 7. Re: Different Computers Same IP Address in Console
                      MarXtar SSMMVPGroup

                      The delay is only for the scheduled launch. Be careful using both logon and scheduled as this normally leads to scans being performed close together each morning. There is no delay for the miniscan on IP change.

                       

                      Mark McGinn

                      MarXtar Ltd

                      http://landesk.marxtar.co.uk

                      LANDesk Silver ESP

                       

                      The One-Stop Shop for LANDesk Enhancements

                      - Wake-On-WAN - Distributed Wake-On-LAN, Scheduled Power Down, and SWDist Sequencing

                      - State Notifier - Real-Time Device & User State Inventory Updating & Alerting

                      • 8. Re: Different Computers Same IP Address in Console
                        MrGadget Specialist

                        Sorry, that was a bad example. I found out that particular laptop did not have Wake on Lan turned on in the bios.

                        However the example still holds for others.

                         

                        My HelpDesk is constantly complaing he can't remote a computer. What I told him after some xshooting is do one of two things, 1. Have the user manually run a Inventory scan(that fixes some) 2. Search for that particular computers IP and usually 2 different computers come up. Then check the computer hes working on to see if its ip matches whats in Landesk(usually it is)then delete the second computer from Landesk, this usually fixes the remote problem.

                        • 9. Re: Different Computers Same IP Address in Console
                          MrGadget Specialist

                          Frank,

                          My SQL person quitso I don't have anyone on staff thats familiarwith SQL.

                          Could you walk me through running this? I think we have SQL 2008 running.I'm assuming I copy this and paste it into a query?

                          Also I'm assuming this deletes the entire computer with the oldest info from the database?

                          • 10. Re: Different Computers Same IP Address in Console
                            Frank Wils SSMMVPGroup

                            Run my SQL query every hour.  It is finished in seconds. It will look for double IP addresses in your DB and sets the one in the oldest updated record to 0.0.0.0. That way you dont have to delete the devices from inventory, which can cause all other kind of problems. When the device comes online, it will update the IP adress again.

                             

                            Frank

                            • 11. Re: Different Computers Same IP Address in Console
                              Frank Wils SSMMVPGroup

                              Sorry, our posts crossed... No, it doesnt delete the whole device, just resets the IP information. Yes, you can run the query manually, but it's easier to just make it into a procedure that runs scheduled.

                               

                              If SQL isn't your expertise and you dont have a problem with a vbscript containing your LANDesk DB password information, which you can still put in a secure location on your LANDesk server, i can provide you a VBScript that can be called using LANDesk Custom Scripts and be scheduled from within in the Console.

                               

                              Frank

                              • 12. Re: Different Computers Same IP Address in Console
                                MrGadget Specialist

                                Marxtar,

                                Thanks

                                • 13. Re: Different Computers Same IP Address in Console
                                  MrGadget Specialist

                                  Frank,

                                  Thanks, I don't have a problem with the script, I'll take it.

                                  • 14. Re: Different Computers Same IP Address in Console
                                    Frank Wils SSMMVPGroup

                                    Hi!

                                     

                                    Replace the %string% variables with your own

                                     

                                    See attached the vbscript. You can call the vbscript from a custom script using, for example:

                                     

                                    [MACHINES]
                                    LOCEXEC01=cmd /c "c:\program files\LANDesk\ManagementSuite\Tools\VBScripts\RemoveDoubleIPs.vbs"

                                     

                                    Place the VBscript in a secure location in the managementsuite structure to be safe. LOCEXEC will make sure it will be run on the CoreServer. You can schedule this script to run every hour.

                                     

                                    Frank

                                    1 2 Previous Next