- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: HP-UX 11.00 rsh command output not being retur...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2009 05:41 AM
10-05-2009 05:41 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2009 06:05 AM
10-05-2009 06:05 AM
Re: HP-UX 11.00 rsh command output not being returned
On HP-UX rsh is the "restricted POSIX shell" - not remote shell - which is something completely different.
Try:
remsh hostname "command"
you should meet with more success.
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2009 07:00 AM
10-05-2009 07:00 AM
Re: HP-UX 11.00 rsh command output not being returned
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2009 07:03 AM
10-05-2009 07:03 AM
Re: HP-UX 11.00 rsh command output not being returned
Have you setup the .rhosts files on the remote server?
Does the remote server run the remshd (rshd) service?
Do you have network access to the remote server?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2009 07:11 AM
10-05-2009 07:11 AM
Re: HP-UX 11.00 rsh command output not being returned
man rsh
man remsh
And a transcript showing the actual commands
you used with their actual output (instead of
a vague description).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2009 07:12 AM
10-05-2009 07:12 AM
Re: HP-UX 11.00 rsh command output not being returned
Did you do all these on the remote server? Did you reload the /etc/inted.conf after uncommenting the remsh/rsh line? Any errors on the syslog of the remote server? What kind of server is the remote server?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2009 09:58 AM
10-05-2009 09:58 AM
Re: HP-UX 11.00 rsh command output not being returned
It also might be a hostname resolution problem.
After entering the remsh/rsh command, wait for about 3 minutes. You should eventually get an error message. If it's "Connection timed out", start looking for firewalls.
If the message is something along the lines of "Host not found", start checking your hostname resolution: /etc/nsswitch.conf, /etc/resolv.conf and /etc/hosts.
If the connection does not seem to time out at all, and your network administrator is extra clever, you may have been redirected into a tar-pit: a decoy server accepts the connection with a correct response, but sends it out as slowly as possible, pretending to be totally overloaded. The purpose of this is to detect network scan attempts and make scanning more time-consuming.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2009 06:48 AM
10-08-2009 06:48 AM
Re: HP-UX 11.00 rsh command output not being returned
rsh hostname "echo ok" i should get an ok back but i only get the prompt. i tried remsh with the same results.
1)I have .rhosts set up in my home directly which is nfs mounted.
2)The remote server is running remshd.
3) I do have network access to the remote server.
4)I did verify the changes on remote server and inetd was restarted.
5) There are no errors in the syslog
6) Server is a J5000 running 11.00.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2009 06:51 AM
10-08-2009 06:51 AM
Re: HP-UX 11.00 rsh command output not being returned
remsh hostname "/usr/bin/echo"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2009 07:35 AM
10-08-2009 07:35 AM
Re: HP-UX 11.00 rsh command output not being returned
To make sure local server is working properly, did remsh to an 11i server which returned ok.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2009 09:20 AM
10-08-2009 09:20 AM
Re: HP-UX 11.00 rsh command output not being returned
Is that on the remote server?
> Server is a J5000 running 11.00.
I assume that is the remote server.
What OS is the local server? What is the login name on the local server?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2009 11:10 AM
10-08-2009 11:10 AM
Re: HP-UX 11.00 rsh command output not being returned
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2009 11:21 AM
10-08-2009 11:21 AM
Re: HP-UX 11.00 rsh command output not being returned
On the J5000 server in the "myself" home directory does the .rhosts exist? Does it contain the name of the solaris10 server? Is is ONLY readable by the "myself" account? It must NOT be writable by the group or by others.
On the solaris10 server type
"rsh j5000-server-name" and tell us what the output is.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2009 11:28 AM
10-08-2009 11:28 AM
Re: HP-UX 11.00 rsh command output not being returned
Check the /var/adm/syslog/syslog.log on the J5000 to see if it logs anything when you run rsh on the solaris server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2009 01:57 AM
10-09-2009 01:57 AM
Re: HP-UX 11.00 rsh command output not being returned
So recommendation: did you try remsh from HP-UX to Solaris ?
if it works it remained of some event in past I faced. I was able to remsh from one Solaris 10 server to another Solaris 8 but vice versa ; from 8 to 10 , I was unable to do even though all setups were correctly on both server.
It turned out a special software caused this on Solaris 8.
This is my history, maybe ,you can look at the problem another side.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2009 02:11 AM
10-09-2009 02:11 AM
Re: HP-UX 11.00 rsh command output not being returned
suggestions to isolate the issue:
- as already mentioned try viceversa from HP-UX to Solaris: does it work?
- do other systems remsh successfully to the HP-UX system?
- does the HP-UX system itself to remsh itself (remsh localhost date)?
- does the Solaris box remsh successfully to other systems?
- if all of above don't point to a direction I suggest using truss (afaik it's the tusc on Solaris).
Anyway I wouldn't be sure the problem is on HP-UX side.
HTH.
Best regards,
Fabio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2009 06:43 AM
10-13-2009 06:43 AM
Re: HP-UX 11.00 rsh command output not being returned
- as already mentioned try viceversa from HP-UX to Solaris: does it work? YES
- do other systems remsh successfully to the HP-UX system? NO
- does the HP-UX system itself to remsh itself (remsh localhost date)? remshd: getservbyname
- does the Solaris box remsh successfully to other systems? YES
- if all of above don't point to a direction I suggest using truss (afaik it's the tusc on Solaris).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2009 01:08 PM
10-13-2009 01:08 PM
Re: HP-UX 11.00 rsh command output not being returned
It might be helpful if you would simply
copy+paste the actual command with its actual
output, so we wouldn't need to guess what
you're doing and what happened when you did
it.
On the HP-UX system:
hostname
cat /etc/hosts
remsh localhost # No command here.
remsh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2009 12:55 AM
10-15-2009 12:55 AM
SolutionMessage "remshd: getservbyname" could be a known issue fixed by patch PHNE_33790:
8606268453:
remshd fails to execute when the service name database
does not contain an entry for "kshell", and displays the
message: "remshd: getservbyname".
Check if the patch is installed, if it's not so you can install it even now (it doesn't have dependencies, no reboot, only 474Kbytes).
HTH.
Best regards,
Fabio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2009 11:28 AM
10-15-2009 11:28 AM