How to determine if there are active FTP connections in a script

IIS

    Next

  • 1. IIS Basic Question
    I have a basic IIS question here. In IIS versions 5 and 6, what is the best way to view the number of active connections/sessions? Thanks, Joel Daniels
  • 2. Favorites Folder
    This is probably pretty easy but: I recently had to reload my entire system (with the help from DELL). I have Windows XP I have been claening-up files and folders and one that has caused this question is that all links and pages in My Favorites folder works when I go through My Favorites when I go through the Internet first, and works at both locations - drop-down menue, and Favorites ICON. However, although the files and folders are the same and appears to be the same links, most all can not be opened from my Start Menue Favorites ICON. Thanks for any help you can be. Greg
  • 3. anonymous user
    Hi to all, Is it necessary for the ANONYMOUS system user to have access from the network on a Win2k server running IIS5 that allows IUSR_host connections on a public site? Are these the same user? And not running IIS5? is it the same scenario? Thank you, rusga

How to determine if there are active FTP connections in a script

Postby dm9991966 » Fri, 10 Oct 2003 02:07:44 GMT

Hello, 

Does anyone know of a way, in a WSH script, to determine if there are
any active FTP sessions on an IIS server?  We have a server that does
a huge amount of FTP, and we are trying to write a script that we can
schedule that will check for active FTP connections, if none are
found, reboot the box, otherwise sleep for a while and check again. 
rebooting the box is no problem, but trying to determine if there are
active FTP connections is.

Any insight would be greatly appreciated!!!

Thanks, 

Trace Wilson

RE: How to determine if there are active FTP connections in a script

Postby timcof » Tue, 21 Oct 2003 16:28:58 GMT

Try these guys:
microsoft.public.scripting.wsh

Thank you.  I hope this information is helpful.

Tim Coffey [MSFT]

This posting is provided S ISwith no warranties, and confers no rights. You assume all risk for your use. 2001 Microsoft Corporation. All rights reserved.
--------------------
| From:  XXXX@XXXXX.COM  (William Wilson)
| Newsgroups: microsoft.public.inetserver.iis
| Subject: How to determine if there are active FTP connections in a script
| Date: 8 Oct 2003 10:07:44 -0700
| Organization:  http://www.**--****.com/ 
| Lines: 15
| Message-ID< < XXXX@XXXXX.COM >m>
| NNTP-Posting-Host: 171.159.128.10
| Content-Type: text/plain; charset=ISO-8859-1
| Content-Transfer-Encoding: 8bit
| X-Trace: posting.google.com 1065632864 23924 127.0.0.1 (8 Oct 2003 17:07:44 GMT)
| X-Complaints-To:  XXXX@XXXXX.COM 
| NNTP-Posting-Date: Wed, 8 Oct 2003 17:07:44 +0000 (UTC)
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-online.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!
sn-xit-06!sn-xit-09!supernews.com!postnews1.google.com!not-for-mail
| Xref: cpmsftngxa06.phx.gbl microsoft.public.inetserver.iis:278789
| X-Tomcat-NG: microsoft.public.inetserver.iis
| 
| Hello, 
| 
| Does anyone know of a way, in a WSH script, to determine if there are
| any active FTP sessions on an IIS server?  We have a server that does
| a huge amount of FTP, and we are trying to write a script that we can
| schedule that will check for active FTP connections, if none are
| found, reboot the box, otherwise sleep for a while and check again. 
| rebooting the box is no problem, but trying to determine if there are
| active FTP connections is.
| 
| Any insight would be greatly appreciated!!!
| 
| Thanks, 
| 
| Trace Wilson
| 



Similar Threads:

1.Enumerate active FTP connections on IIS...

Hello,

can you please tell me how to enumerate the active FTP connections
on the IIS server? I would like to know how many users are logged
on to the FTP server? Is there a WIN32 API's that I can use to
perform these functions Programmatically??

Thanks for the generous help.

2.SQL Server Named Instance Active/Active Cluster IIS TCP/IP Connection

We have two active clustered sql servers and two separate IIS Load
balanced servers.  We can connect to both instances of sql server
Enterprise manager and query analyzer (also tried an odbc connection)
thru local pc's.
I can get both IIS servers to connect to the default sql server
instance using sql ole db connections but I cannot get a connection to
work from IIS to the named instance of sql server.  The error I
receive is as follows:
-2147467259
[DBMSSOCN]General network error. Check your network documentation.
I also tried to create an ODBC connection from one of the iis servers
to the named instance of sql server and it fails with a Connection
Failed general network error.  Yet O can use my local pc and create an
odbc connection to the named instance of sql server with out an issue
(locally I have an option to let it dynamically determin the port in
the client config - I do not have this option on the IIS servers).
We found we had to add the Network Library=DBMSSOCN; string in our
connection to allow IIS to connect to the default instance of sql
server.
When we installed active clustered sql on the second server (the named
instance) we verified that the SQL Network Utility was set to allow
TCP/IP network connection a port was automatically set which was not
1433 and is different then the port on the defult instance of sql
server on the other active sql server box.  Do we need to make sure
there is a network setting for this port somewhere?
Does anyone know how to correct this connection issue?

3.Determining active dates for queued items?

Hi,

I have a limited number of ad slots on my website, let's say there are
5. I have lots of people wanting to advertise in those slots, let's
say there are 100. They each join the queue for an ad slot on a first-
come, first-served basis. I have been trying to find a way to
determine the active date for a queued item. For the first five items
in the queue it's easy, it's just the expiry date of the item in a
live slot that expires first. For the next five queued items it's
still easy, because it's just the expiry date of the item in the queue
that will expire first. HOWEVER, after that it becomes more complex,
because the queued items will continually be slotting into live slots
as live items expire. So my question is, is there a straightforward
way, in ASP,  of determining the active date for a queued item in a
queue of arbitrary size?

Any and all help or suggestions appreciated.

Thanks in advance!

4.Script to Determine IIS Version

Could someone please let me the best place establish the IIS version.  I
need to do this with VBScript as I will be using the information in a
Windows Installer project.

TIA,
Scot


5.Determining IIS Versions via VBS Script?

I'd like to know if it is possible to determine which 
version of IIS is running on the system from a .VBS 
script.  I need to write a script that can identify the 
version of IIS running on the server.

I'll need to be able to distinguish between all versions:
- IIS 1.0 - 4.0 on WinNT 4.0
- IIS 5.0
- IIS 5.1
- IIS 6.0

IIS 5.x through 6.0 are (at least currently) less the 
issue since the version of IIS can be assumed from the OS 
on which it's running.  However, it would be desireable to 
have a single piece of code that can identify all versions.

Thanks very much for your input!

Bruce

6. Am I good or am I bad?

7. I am confused about how to FTP into a website

8. Win2003 / IIS6 FTP cluster : Assistance on ftp cluster vb script customization



Return to IIS

 

Who is online

Users browsing this forum: No registered users and 3 guest