+ 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
    134
    Thank Post
    2
    Thanked 15 Times in 11 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,493
    Thank Post
    519
    Thanked 290 Times in 266 Posts
    Rep Power
    82
    ping ?

  5. #5
    CAM
    CAM is offline

    CAM's Avatar
    Join Date
    Mar 2008
    Location
    Burgh Heath, Surrey
    Posts
    4,190
    Thank Post
    839
    Thanked 374 Times in 290 Posts
    Blog Entries
    60
    Rep Power
    284
    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,054
    Thank Post
    83
    Thanked 188 Times in 155 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,498
    Thank Post
    1,456
    Thanked 1,201 Times in 814 Posts
    Rep Power
    712
    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,498
    Thank Post
    1,456
    Thanked 1,201 Times in 814 Posts
    Rep Power
    712
    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
  •