ITEM: T8224L

Getting strange rsh errors with sysback/6000


Env:
AIX 3.2.5
sysback 3.2.1.14

Desc  
  Customer can't read backups or make backups remotely using
  sysback.  Customer is getting this error message:

  cat: 0652-050 Cannot open \
  cat: 0652-050 Cannot open 2

Action:
  
I had the cusotmer put a set -x in /usr/lpp/sysback/sysback.lib
in the runcommand and runcommand2 functions.

>> /usr/sbin/readsbheader -f'/dev/rmt0' -h'showme.missouri.edu'

    Output from Command_to_Execute follows below:
- ---- start ----
+ + rsh showme.missouri.edu -n -l tapesvs cat
/tmp/mail.missouri.edu.err 2>/dev/null;                   rm -f
/tmp/mail.missouri.edu.err
cat: 0652-050 Cannot open /tmp/mail.missouri.edu.err.
cat: 0652-050 Cannot open 2.
rc=
+ [ ! -z  -a  != 254 ]
+ + rsh showme.missouri.edu -n -l tapesvs cat
/tmp/mail.missouri.edu.err 2>/dev/null;                   rm -f
/tmp/mail.missouri.edu.err
cat: 0652-050 Cannot open /tmp/mail.missouri.edu.err.
cat: 0652-050 Cannot open 2.

+ [ ! -z  -a  != 254 ]
Rewinding device /dev/rmt0 ..
+ + rsh showme.missouri.edu -n -l tapesvs cat
/tmp/mail.missouri.edu.err 2>/dev/null;                   rm -f
/tmp/mail.missouri.edu.err

Looks like a problem with the rsh command.

Test:

rsh \ -n -l tapesvs "cat /etc/passwd 2>/dev/null"

On the customer's system it would display the output of the
passwd file, but then gives the error message:

cat: 0652-050 Cannot open 2

Take the quotes off of the command:
rsh \ -n -l tapesvs cat /etc/passwd 2>/dev/null

And it works correctly.

Also if the customer does this:

rsh \ -n -l tapesvs "echo file1; echo file2"
It will only show file2 and skip file1

This works on the server system going to the client.

I had the customer check the rsh and rshd command both are the
same level and size

The customer states some routing changes were made last night.
and all the system with exception of this one were rebooted.
The customer will reboot and try the test again later

Later on the customer discovered they are using tcsh shell
instead of ksh.  Once the customer ran the script in a ksh
env it worked.


Support Line: Getting strange rsh errors with sysback/6000 ITEM: T8224L
Dated: April 1995 Category: N/A
This HTML file was generated 99/06/24~13:30:35
Comments or suggestions? Contact us