Computing.Net > Forums > Networking > FTP Script

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

FTP Script

Reply to Message Icon

Name: Mukund
Date: February 22, 2007 at 07:19:16 Pacific
OS: windows XP Professional
CPU/Ram: 512
Comment:

How can i create a batch file to check the status of my FTP site?



Sponsored Link
Ads by Google

Response Number 1
Name: SmittyZ3M
Date: February 22, 2007 at 12:33:30 Pacific
Reply:

How do you plan on checking the status? You could do as little as writing a script to ping the IP address, and write the results of the ping to a text file. Open the file, parse it out, and post output based on the parsing results.

You could also go a bit further and transfer a file and output based on the results. A reply from a ping does not mean that the FTP service itself is running properly.


0

Response Number 2
Name: Fist (by fmwap)
Date: February 22, 2007 at 15:18:08 Pacific
Reply:

Yea, some more details on this would help, what kind of health checks do you want? Just a script to check TCP connectivity? Or do you want layer7 stuff??

Either way, netcat is what you probably need. Get netcat for win32 from here:
http://www.vulnwatch.org/netcat/

Then to do a simple check to verify the TCP socket opens:

@echo off
nc google.com 80 -w 1
if ERRORLEVEL 1 goto FAILED

echo PASSED
goto END

:FAILED
echo FAILED

:END


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Networking Forum Home


Sponsored links

Ads by Google


Results for: FTP Script

FTP help needed! URGENT! www.computing.net/answers/networking/ftp-help-needed-urgent/745.html

FTP Batch Script www.computing.net/answers/networking/ftp-batch-script/37491.html

Mapping a drive to an FTP server www.computing.net/answers/networking/mapping-a-drive-to-an-ftp-server/10000.html