+ Post New Thread
Results 1 to 10 of 10
Windows Thread, program to test network contectivity in Technical; Hi does anyone know of a program that will do the following check for network cable connectect/enabled nic send X ...
  1. #1

    Join Date
    Dec 2011
    Posts
    53
    Thank Post
    34
    Thanked 1 Time in 1 Post
    Rep Power
    0

    program to test network contectivity

    Hi does anyone know of a program that will do the following

    check for network cable connectect/enabled nic
    send X number of pings to a couple of address's
    return a value (0 if all ok or 1 if any of the above failed)

    It's to be called from a another program hence the return value.

    cheers

  2. #2

    Join Date
    Feb 2013
    Posts
    154
    Thank Post
    2
    Thanked 16 Times in 12 Posts
    Rep Power
    42
    Is AngryIP what you are looking for - I use a really old version but it does for me..

  3. #3

    Join Date
    Dec 2011
    Posts
    53
    Thank Post
    34
    Thanked 1 Time in 1 Post
    Rep Power
    0
    No not really,
    I dont need to scan for IP address's , just check for enabled nic check I get a responce from a couple of address's and return sucess or fail. Its to run on XP and Win 7 would powershell do the job?

  4. #4
    cpjitservices's Avatar
    Join Date
    Jul 2010
    Location
    Hessle
    Posts
    2,534
    Thank Post
    523
    Thanked 293 Times in 269 Posts
    Rep Power
    83
    ping ?

  5. #5
    CAM
    CAM is offline

    CAM's Avatar
    Join Date
    Mar 2008
    Location
    Burgh Heath, Surrey
    Posts
    4,291
    Thank Post
    869
    Thanked 395 Times in 305 Posts
    Blog Entries
    60
    Rep Power
    288
    If a network cable is disconnected or a NIC is disabled then it will say it can't connect anyway, no remote tool will help unless you have redundant connections.

  6. #6

    Join Date
    Apr 2010
    Posts
    2,102
    Thank Post
    95
    Thanked 189 Times in 156 Posts
    Rep Power
    84
    create a bat file that pings the ip address you need checked.

  7. #7

    LosOjos's Avatar
    Join Date
    Dec 2009
    Location
    West Midlands
    Posts
    5,563
    Thank Post
    1,470
    Thanked 1,222 Times in 831 Posts
    Rep Power
    752
    Quote Originally Posted by LordNewton View Post
    It's to be called from a another program hence the return value.
    As you want another program to call it, am I to assume this is a program you have written yourself? If so, you'd be better off coding this in to your own program.

    If this is the case, let me know what language you're using and I'll see if I can help you with the code.

  8. Thanks to LosOjos from:

    LordNewton (21st May 2013)

  9. #8

    Join Date
    Dec 2011
    Posts
    53
    Thank Post
    34
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Quote Originally Posted by LosOjos View Post
    As you want another program to call it, am I to assume this is a program you have written yourself? If so, you'd be better off coding this in to your own program.

    If this is the case, let me know what language you're using and I'll see if I can help you with the code.
    Its being called by another program with a limited function library, I'm currently trying to write something in VB to do it but I'm bit rusty, I've just found out that I have to write a value to a file which the other program then has to read... what fun

  10. #9

    LosOjos's Avatar
    Join Date
    Dec 2009
    Location
    West Midlands
    Posts
    5,563
    Thank Post
    1,470
    Thanked 1,222 Times in 831 Posts
    Rep Power
    752
    Quote Originally Posted by LordNewton View Post
    Its being called by another program with a limited function library, I'm currently trying to write something in VB to do it but I'm bit rusty, I've just found out that I have to write a value to a file which the other program then has to read... what fun
    Well if you're putting something together in VB.NET, then this method should help you get the info you need: Ping.Send Method (IPAddress) (System.Net.NetworkInformation)

    That'll get you sending out pings and gathering results, but if you specifically need to check if the network is connected (obviously it is connected if the ping is successful, but it's not neccessarily disconnected if the ping fails), then look at this method: NetworkInterface.GetIsNetworkAvailable Method (System.Net.NetworkInformation)

  11. #10

    Join Date
    Dec 2011
    Posts
    53
    Thank Post
    34
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Cheers, your got me in the right direction!

SHARE:
+ Post New Thread

Similar Threads

  1. PAT testing network switches
    By Shiny_Guru in forum Hardware
    Replies: 18
    Last Post: 18th June 2013, 10:04 AM
  2. Point to point network speed test tools
    By tarquel in forum Wireless Networks
    Replies: 15
    Last Post: 26th February 2013, 10:49 PM
  3. Adding a second domain to existing network for testing.
    By KDT in forum Windows Server 2008 R2
    Replies: 13
    Last Post: 5th December 2012, 07:23 PM
  4. How to test network speeds?
    By kennysarmy in forum Hardware
    Replies: 16
    Last Post: 30th June 2010, 04:12 PM
  5. Dell to trial Network Management
    By Outpost in forum Wireless Networks
    Replies: 6
    Last Post: 26th January 2006, 08:51 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •