Skip navigation
1 2 Previous Next 1908 Views 16 Replies Latest reply: Jul 2, 2012 7:19 AM by MarXtar RSS
MrGadget Specialist 409 posts since
May 16, 2011

Has received 6 of 9 achievements.
Currently Being Moderated

Apr 1, 2012 11:32 AM

Different Computers Same IP Address in Console

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?

  • MarXtar SSMMVPGroup 2,061 posts since
    Jul 2, 2008

    Has received 8 of 9 achievements.
    Currently Being Moderated
    1. Apr 2, 2012 1:37 AM (in response to MrGadget)
    Re: Different Computers Same IP Address in Console

    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

  • Rookie 8 posts since
    Sep 28, 2011

    Has received 1 of 9 achievements.
    Currently Being Moderated
    2. Apr 2, 2012 10:46 AM (in response to MrGadget)
    Re: Different Computers Same IP Address in Console

    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

  • MarXtar SSMMVPGroup 2,061 posts since
    Jul 2, 2008

    Has received 8 of 9 achievements.
    Currently Being Moderated
    4. Apr 3, 2012 2:29 PM (in response to MrGadget)
    Re: Different Computers Same IP Address in Console

    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

  • Frank Wils SSMMVPGroup 1,212 posts since
    Feb 25, 2008

    Has received 8 of 9 achievements.
    Currently Being Moderated
    5. Apr 4, 2012 4:42 AM (in response to MarXtar)
    Re: Different Computers Same IP Address in Console

    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

  • MarXtar SSMMVPGroup 2,061 posts since
    Jul 2, 2008

    Has received 8 of 9 achievements.
    Currently Being Moderated
    7. Apr 4, 2012 7:14 AM (in response to MrGadget)
    Re: Different Computers Same IP Address in Console

    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

  • Frank Wils SSMMVPGroup 1,212 posts since
    Feb 25, 2008

    Has received 8 of 9 achievements.
    Currently Being Moderated
    10. Apr 4, 2012 7:27 AM (in response to MrGadget)
    Re: Different Computers Same IP Address in Console

    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

  • Frank Wils SSMMVPGroup 1,212 posts since
    Feb 25, 2008

    Has received 8 of 9 achievements.
    Currently Being Moderated
    11. Apr 4, 2012 7:31 AM (in response to Frank Wils)
    Re: Different Computers Same IP Address in Console

    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

  • Frank Wils SSMMVPGroup 1,212 posts since
    Feb 25, 2008

    Has received 8 of 9 achievements.
    Currently Being Moderated
    14. Apr 5, 2012 7:48 AM (in response to MrGadget)
    Re: Different Computers Same IP Address in Console

    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

    Attachments:
1 2 Previous Next

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 20 points
  • Helpful Answers - 10 points
LANDESK Community powered by Jive SBS® 4.5.7.1  |  Legal Notices  |  Privacy Policy  |  Icon 

TweeterOn Twitter  |  Icon FacebookOn Facebook © 2007 LANDESK Software