SunQuest
 
       ASP
  Home arrow ASP arrow Page 2 - Using ASP & SQL To Ping A Remote Server
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Actuate Whitepapers 
Moblin 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP

Using ASP & SQL To Ping A Remote Server
By: Mitchell Harper
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 14
    2001-11-28

    Table of Contents:
  • Using ASP & SQL To Ping A Remote Server
  • An overview of the procedure
  • Creating the stored procedure
  • The GetPingStats() ASP function
  • Analyzing the ping attempts
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Using ASP & SQL To Ping A Remote Server - An overview of the procedure


    (Page 2 of 6 )

    Let me just start by providing a brief outline of what our function will do. The ASP function will be named GetPingStats(), will return a string of text and will accept one parameter, RemoteIP. RemoteIP can be a fully qualified domain name (such as www.devarticles.com), an internal network name (such as webserver1), or an IP address (such as 192.168.0.1). It doesn’t matter which it is, because the ping command will automatically resolve its I.P.

    This function will execute a stored procedure on the SQL Server named sp_PingServer, which will accept the RemoteIP variable as its only parameter. This function will call an extended stored procedure, xp_cmdShell, which will start a thread of the ping command on the SQL servers’ machine.

    The results of that ping command will be fed back to our GetPingStats() ASP function, which in turn will process the results. These results will then be returned as a simple string of HTML text to the calling ASP script.

    More ASP Articles
    More By Mitchell Harper


     

    ASP ARTICLES

    - Central Scoreboard with Flash and ASP
    - Calorie Counter Using WAP and ASP
    - Creating PGP-Encrypted E-Mails Using ASP
    - Be My Guest in ASP
    - Session Replacement in ASP
    - Securing ASP Data Access Credentials Using t...
    - The Not So Ordinary Address Book
    - Adding and Displaying Data Easily via ASP an...
    - Sending Email From a Form in ASP
    - Adding Member Services in ASP
    - Removing Unconfirmed Members
    - Trapping HTTP 500.100 - Internal Server Error
    - So Many Rows, So Little Time! - Case Study
    - XDO: An XML Engine Class for Classic ASP
    - Credit Card Fraud Prevention Using ASP and C...







    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway