rsh commands not getting executed from Solaris 10 System to AIX System


 
Thread Tools Search this Thread
Operating Systems Solaris rsh commands not getting executed from Solaris 10 System to AIX System
# 15  
Old 01-19-2007
hello,

was it in a production??
do you have any other alternative to connect to it from your solaris box??
because - i can see it still have the same problem rising from your solaris box.

- nis/dns/named -

cheers..

Last edited by stdout; 01-19-2007 at 06:42 AM..
# 16  
Old 01-19-2007
Both (Solaris 10 & AIX) systems are production system. I am not able to give the output's of the /etc/hosts & $HOME/.rhosts files, because the customer is not ready to provide with the information. The only thing which is bothering me is that I am able to get the remote shell.....so why the remote shell commands are not working directly from Solaris10..???
# 17  
Old 01-19-2007
Sounds like your systems using IPV6 , not IPV4.
There was a bug in earlier releases of Solaris 10 where rsh <hostname><command> doesn't work in IPV6 systems,
but rsh <hostname> does. I think was fixed is Solaris 10_23

cat /etc/release to see what release you have.

BUGID 4760974 was logged about this.
Code:
In IPv6 systems, rsh a hosts with "ls" doesn't print out anything.
# uname -a
SunOS fourunner 5.10 s10_20 sun4m sparc SUNW,SPARCstation-10
# ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000 
le0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.29.78.32 netmask ffffff00 broadcast 192.29.78.255
        ether 8:0:20:1a:bc:fc 
lo0: flags=2000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6> mtu 8252 index 1
        inet6 ::1/128 
le0: flags=2000841<UP,RUNNING,MULTICAST,IPv6> mtu 1500 index 2
        ether 8:0:20:1a:bc:fc 
        inet6 fe80::a00:20ff:fe1a:bcfc/10 
#
# rsh tercel ls /
# echo $?    
1
#
# rsh tercel
Last login: Thu Oct 10 00:29:02 from fourunner
Sun Microsystems Inc.   SunOS 5.10      s10_20  Oct. 08, 2002
SunOS Internal Development: gk 2002-10-08 [on10_20]
# ls
autohome     electron     import       opt          shared       vol
bin          etc          kernel       platform     small        ws
cdrom        etc.tar      lib          proc         src          xfn
dev          etc.tar.ssh  lost+found   results      syncNwait
devices      export       medium       sbin         tmp
doe          getUtil      mnt          scde         usr
earth        home         net          share        var
# 

In IPv4 systems, rsh a host with a UNIX command works.
# uname -a
SunOS ficus 5.10 s10_20 sun4u sparc SUNW,Ultra-1
# ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000 
le0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.29.79.113 netmask ffffff00 broadcast 192.29.79.255
        ether 8:0:20:8d:1f:3b 
# rsh bolyai pwd
/
# echo $?
0
#

Just unconfigure IPV6.

Last edited by Tornado; 01-19-2007 at 05:57 PM..
Tornado
# 18  
Old 01-19-2007
Quote:
Originally Posted by Tornado
Sounds like your systems using IPV6 , not IPV4.
There was a bug in earlier releases of Solaris 10 where rsh <hostname><command> doesn't work in IPV6 systems,
but rsh <hostname> does. I think was fixed is Solaris 10_23
Good call I completely forgot about that becasue we don't use IPv6, 23 was a problematic release, I would go to 24, which has a few dependencies. If you have an entitlement, the EIS 3.0.11 patch cluster seem to be a good release.
# 19  
Old 01-19-2007
Quote:
Originally Posted by reborg
Good call I completely forgot about that becasue we don't use IPv6, 23 was a problematic release, I would go to 24, which has a few dependencies. If you have an entitlement, the EIS 3.0.11 patch cluster seem to be a good release.
I wasn't recomending to go to 10_23, just letting him know that that was the first release that had the fix.
Tornado
# 20  
Old 01-19-2007
Yep, I understood that, but was just making sure it wasn't interpreted as "go to 23"
# 21  
Old 01-19-2007
I had the same problem from AIX to AIX when our DNS-Server crashed

I could rlogin from a to b but not execute commands (with hosts entry)

when DNS was up again rsh worked instant, I'cant tell you what the problem was, but obviously it was about name resolution, reverse lookup, full qualified or not full qualified DN problem, search in that direction
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Accessing files on AIX system from Linux system

I have a following requirement in production system 1 : LINUX User: abcd system 2: AIX (it is hosting a production DB) Requirement user abcd from system 1 should have read access on archive log files created by DB on system 2. The log files are created with permissions 540 by user ora ,... (2 Replies)
Discussion started by: amitnm1106
2 Replies

2. HP-UX

how to mount a file system from a solaris server into an hp-ux system

Hi all I wonder if its possible to mount on a hp-ux server a file system that was previously mounted on a solaris 10 server. The LUN is on NetApp stoarge. The problem on hp-ux I cannot do pvcreate on the lun (disk) because contains data. Any help will be appreciated FR (2 Replies)
Discussion started by: fretagi
2 Replies

3. Shell Programming and Scripting

how to fetch the commands at solaris system

:wall:i'm system administrator. now i have a trouble. i want to fetch the command which the login users performed by shell.but i don't know how to process this problem.if anyone tell me how to do this work I would be very grateful.thank you! (4 Replies)
Discussion started by: anline5104
4 Replies

4. Solaris

Solaris audit to syslog - where is arguments to the commands executed?

Hi, we have server, that is auditing actions executed, and then sends them to the syslog server. But there is arguments to issued to the commands in the audit trail, but there is no such arguments in the syslog output on the syslog server! Example - I executed: # ls -la audit... (1 Reply)
Discussion started by: masloff
1 Replies

5. AIX

Need AIX system commands

Hey Guyz, I am preparing an inventory kindof thing about the aix servers.. I need help to find out the below details for many AIX servers.. Machine model and version Disk Size RAM size no. of CPUs and thier information list of softwares installed I searched in web.. but not much info I... (4 Replies)
Discussion started by: thariqueakbar
4 Replies

6. Shell Programming and Scripting

How to find pid of PS which executed by perl system function

hello All, I need to invoke by perl script some program/command and monitor it for 5 minutes . In case it still running for more then 5 min I need to send a signal which will stop it. I implemeted this as shown below by using eval & alarm and I'd like to know if there is a better way to... (1 Reply)
Discussion started by: Alalush
1 Replies

7. Solaris

Mounting a NFS network file system across platforms - Solaris to AIX

Hi all, Kind of an emergency situation, I have to NFS mount an AIX filesystem on to a Sun Solaris OS (5.10). Typically from Sun to Sun is: mount -F nfs <remote file system>/dir <mount point> Which of course doesn't work if the remote file system is another OS (like AIX). Is there... (1 Reply)
Discussion started by: jeffpas
1 Replies

8. UNIX for Dummies Questions & Answers

Interpreting java output stream as system commands in Solaris

Hi there again, Running Solaris 10 with built-in Java. Seems to compile and run fine. Problem is: Say I want to see contents of current directory. In a shell, I'd just write "ls" and it outputs the content. When I write a Java file, I have the following line: System.out.println("ls"); ... (1 Reply)
Discussion started by: EugeneG
1 Replies

9. Programming

How to get system() function executed cmd return value ?

Hi, How I can get system function executed command return value ? I want to know mv command success or not ? #include <stdio.h> main() { int ret; ret = system( "mv x.dat y.dat" ); printf( "system ret:\n", ret ); } (3 Replies)
Discussion started by: haiudhaya
3 Replies

10. Shell Programming and Scripting

Rsh: test $? on remote system.

Hi, a little help. I need to test the return code of a list file command on a remote system (Unix) using the rsh command. More exactly, to test is a directory exists, I try the following command: rsh $remoteHost "ls -la " $DirRemote Now, if the $DirRemote is not correct and I test... (3 Replies)
Discussion started by: gio123bg
3 Replies
Login or Register to Ask a Question