Ping multi IP address

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to create a form that I can type in IP address and send a
automated ping and see the reply . I am try to set up a simple montoring
database to where I can input some IP address and the database will display
IP "A" is ok , IP "B" is offline and so forth ....can anyone help ...thanks .
 
James,

I can't help you with your actual Access question but if you just need a
program that can can scan IP addresses, I use one called IP Tools (home page
www.ks-soft.net/ip-tools.eng/index.htm) that not only scans IP addresses but
also NetBIOS names. The program has quite a few network utilities and might
do what you want. Hope this helps.

Steven
 
James said:
I would like to create a form that I can type in IP address and send a
automated ping and see the reply . I am try to set up a simple montoring
database to where I can input some IP address and the database will display
IP "A" is ok , IP "B" is offline and so forth ....can anyone help ...thanks .

Most Visual Basic API calls work just fine in Access. My favourite
site for such is vbnet.mvps.org.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
 
Thanks for reply , I tried that site ( ping machine with IP )and came up with
some error's .
 
Thanks , I guess this might be over my head , I thought there might be some
simple code ( control array from vbnet code stumped me )
 
=?Utf-8?B?U3RldmVuIFN1dHRvbg==?=
I can't help you with your actual Access question but if you just
need a program that can can scan IP addresses, I use one called IP
Tools (home page www.ks-soft.net/ip-tools.eng/index.htm) that not
only scans IP addresses but also NetBIOS names. The program has
quite a few network utilities and might do what you want. Hope
this helps.

Why would you need a program? Type this at a command prompt:

FOR /L %i IN (1,1,254) DO ping -n 1 192.168.1.%i | FIND /i
"Reply">>ipaddresses.txt

and replace the IP address with the block you want to test.

If you want to test more than one block of 255, you can nest the FOR
statements and vary the contents of the IN () parameter.
 
If you have VS2008 you can creat a shared add-in (basically a .dll for office
including access)

do this:

Public Function pingme(ByVal addr As String) As Boolean
If My.Computer.Network.Ping(addr, 1000) Then
Return True
Else
Return False
End If
End Function

and then class from access.

I have a whole set of communication functions in a .dll that I use from
access all the time. (Checks the health of my sql server etc...)

dave
 
Back
Top