1832690 Members
2575 Online
110043 Solutions
New Discussion

URGET : FTP SESSIONS

 
Amit Dixit_2
Regular Advisor

URGET : FTP SESSIONS

Hi,
We are having HP-UX B 11.11.
On our box we have webMethods Application runing in which we have a scheduler which connects to an ftp server and upload/download files from there.

How can I check how many ftp session are establishished from my box to the ftp server.

I want to list them on my HP BOX as I dont have access to FTP server.
6 REPLIES 6
Bharat Katkar
Honored Contributor

Re: URGET : FTP SESSIONS

Hi amit,
See if this command helps.

# netstat -a | grep ftp

Regards,
You need to know a lot to actually know how little you know
Amit Dixit_2
Regular Advisor

Re: URGET : FTP SESSIONS

Hi Bharat,
Will it show ftp session from my HP box to the remote ftp server as well.

Thanks,
Amit.
Naveej.K.A
Honored Contributor

Re: URGET : FTP SESSIONS

Amit,

Its possible using ftpaccess!!!

Check this

http://docs.hp.com/en/B2355-90778/ch02s05.html

Regards,
Naveej
practice makes a man perfect!!!
Bharat Katkar
Honored Contributor

Re: URGET : FTP SESSIONS

Hi amit,
Yes it shows.
It show you something like this:

tcp 0 0 YourLocalBox RemoteServerName ESTABLISHED


Hope that helps,.

Regards,
You need to know a lot to actually know how little you know
Bharat Katkar
Honored Contributor

Re: URGET : FTP SESSIONS

Amit actually read :

tcp 0 0 YourLocalBox RemoteServerName ESTABLISHED

as
tcp 0 0 YourLocalBox:scoketno RemoteServerName ESTABLISHED

So for multiple sessions you will different socket number.

Hope that helps.
Regards,

You need to know a lot to actually know how little you know
Ermin Borovac
Honored Contributor

Re: URGET : FTP SESSIONS

You can do it with lsof. Run the following command on hp-ux system.

# lsof -i tcp@remote_server_name_or_ip:20-21

port 20 is for ftp data connection
port 21 is for ftp control connection