Issues with copying using rsh

Hi,

I'm having a few issues with rsh. I'm trying to copy data from one host to another using tar with the following command:

tar -cf - /data | rsh xx.xx.xx.xx tar -xf -

I'm copying the data from an X4100 to an X4140 server and have done this before with no issues. But with these particular hosts I'm getting a permission refused message, which on further investigation I believe is due to rsh. I have configured the /.rhosts & host files on the boxes and made sure that rexec is enabled on both and still no luck.

The X4100 is an M1 with a firmware level as below:

-> version
SP firmware version: 1.0
SP firmware build number: 6464
SP firmware date: Tue Sep 13 12:50:37 PDT 2005
SP filesystem version: 0.1.13

and the X4140 has recently had the firmware upgraded as below:

-> version
SP firmware 2.0.2.5
SP firmware build number: 36901
SP firmware date: Fri Sep 12 13:57:08 PDT 2008
SP filesystem version: 0.1.16

Any ideas on why this isn't working?

Sorted. Issue was due to a name resolution error.