1834789 Members
2694 Online
110070 Solutions
New Discussion

Re: ftp problem

 
SOLVED
Go to solution
ajk_5
Frequent Advisor

ftp problem

Dear all,

When I use ftp to put files to the HP-UX K260 server, the speed is very slow! When I get file from the K260 server, the speed is fast. Could you tell me why? and how can I fix the problem?

Best Regards
Ajk
8 REPLIES 8
Yogeeraj_1
Honored Contributor
Solution

Re: ftp problem

hi

can you post the output of the attached script?
[run it on both servers]

The output should be something like:
Card at PPA 0 - IP Address: 192.96.14.9 - Speed = 100 Full-Duplex Auto-Negot
iation-OFF
Card at PPA 1 - IP Address: 192.97.14.3 - Speed = 100 Full-Duplex
Card at PPA 2 - IP Address: 192.98.14.3 - Speed = 100 Half-Duplex
Card at PPA 3 - IP Address: Not assigned - Speed = 100 Half-Duplex
Card at PPA 4 - IP Address: Not assigned - Speed = 100 Half-Duplex
Card at PPA 5 - IP Address: 10.0.0.100 -


regards
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Michael Steele_2
Honored Contributor

Re: ftp problem

Need to know about your network topology some. Is there a router or what in between.

Of hand, it sounds like a packet reassembly issue or a routing issue. Can you 'tracroute' and attach?
Support Fatherhood - Stop Family Law
Michael Steele_2
Honored Contributor

Re: ftp problem

Can you attach traceroute from both servers.

What is the network topology? Any routers, gateways, etc. in between?
Support Fatherhood - Stop Family Law
Michael Steele_2
Honored Contributor

Re: ftp problem

Also note the values of ip_reass_mem_limit.

ndd -get /dev/ip ip_reass_mem_limit
Support Fatherhood - Stop Family Law
ajk_5
Frequent Advisor

Re: ftp problem

Could you show me all how I can do that?

Actually, I use ftp from the K260 server to my PC.



Best Regards
Ajk
Michael Steele_2
Honored Contributor

Re: ftp problem

Instead of ftp hostname or ping ip use tracert ip or tracert hostname. For example:

tracert sapapp1

-or-

tracert 192.168.1.23

To find the speed and duplex of your LAN cards first run lanscan and not the PPA.

#lanscan
Hardware Station Crd Hdw Net-Interface NM MAC HP-DLPI DLPI
Path Address In# State NamePPA ID Type Support Mjr#
0/0/0/0 0x001083FC02BC 0 UP lan0 snap0 1 ETHER Yes 119

For lan0 the PPA = 1. Also note the MAX for lan0 since you'll need this for the switch port. For lan0 in this example the MAC = 0x001083FC02BC.

To find speed and duplex, (* autosense? *):

lanadmin -x 1

Take the MAC to the network admin and look up the speed and duplex of the switch port you're connected to.

Also check the default routes from both servers:

netstat -rn

Read the default line.
Support Fatherhood - Stop Family Law
Steven E. Protter
Exalted Contributor

Re: ftp problem

If you use Yogeeraj's script you will probably find a problem.

There are many causes, but the two best candidates are:

NIC card is flakey and may require replacement.

Inconsistencies between your planned Duplex speed and your switch(if Cisco).

Try turning off autonegotiate and hard coding your switch settings on the switch(see cisco admin, don't do it yourself). Then boot the K box.

re-run Yogeeraj's nice script or the lanadmin command. If there are inconsistencis then hard code your desired lan speed settings into the file /etc/rc.config.d/hpbtlanconf

Lastly if the IP address works and the name connect does not, see your DNS configuration or admin and report the problem. To use names you need instantaneous resolution.

Files involved on your system are:
/etc/nsswitch.conf to see if dns is used.
/etc/resolv.conf to see what servers are being used to resolve DNS.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
ajk_5
Frequent Advisor

Re: ftp problem

C:\>tracert k260

Tracing route to k260 [131.88.2.2]
over a maximum of 30 hops:

1 <10 ms <10 ms <10 ms ultra [131.88.2.2]

Trace complete.

-----------------------------------------------

$ lanscan
Hardware Station Crd Hardware Net-Interface NM MAC HP DLPI Mjr
Path Address In# State NameUnit State ID Type Support Num
10/8/2/0 0x001083FA9238 2 UP lan2 UP 4 ETHER Yes 119
10/8/1/0 0x001083FA9237 1 UP lan1 DOWN 5 ETHER Yes 119
10/12/6 0x0060B0327A29 0 UP lan0 DOWN 6 ETHER Yes 52

-----------------------------------------------

$ netstat -rn
Routing tables
Destination Gateway Flags Refs Use Interface Pmtu PmtuTime
127.0.0.1 127.0.0.1 UH 0 128 lo0 4608
131.88.2.2 127.0.0.1 UH 0 81689 lo0 4608
131.88.2.9 127.0.0.1 UH 0 82204 lo0 4608
131.88.2.10 127.0.0.1 UH 0 0 lo0 4608
default 131.88.5.1 UG 0 0 lan2 1500
131.86 131.88.2.18 UG 53 9140920 lan2 1500
131.88 131.88.2.2 U 17 2725002 lan2 1500
131.88 131.88.2.10 U 0 0 lan1 1500
131.88 131.88.2.9 U 0 0 lan0 1500
131.89 131.88.5.1 UG 23 3325436 lan2 1500