- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- remsh errors out with 'rcmd_af: primary connection...
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
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
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
12-18-2009 08:38 AM
12-18-2009 08:38 AM
remsh errors out with 'rcmd_af: primary connection shut down'
I have two HP UX 11 boxes. The first has a tape drive, the second doesn't. I need use the drive to backup the 2nd box.
I can write/read the tape on box1 from box2 like:
# find . –print | cpio –oBv | (ssh box1 dd of=/dev/rmt/0mnb)
and
# ssh box1 “dd if=/dev/rmt/omnb bs=8k” | cpio –icvBdum
I'd prefer to use fbackup and frecover to do the backups. However, when I try this on box2:
# frecover -rNv -f box1:/dev/rmt/0mnb
I get:
frecover(5405): unable to opend box1:/dev/rmt/0mnb
frecover(5406): Do you wish to ontinue? n
frecover(5407): abort selected.
#
I read elsewhere that fbackup/frecover are using remsh under the covers. And, I can't get remsh to work from box2 to box1.
Any ideas, links, criticism would be very welcome.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2009 10:43 AM
12-18-2009 10:43 AM
Re: remsh errors out with 'rcmd_af: primary connection shut down'
Just a quick thought,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2009 10:58 AM
12-18-2009 10:58 AM
Re: remsh errors out with 'rcmd_af: primary connection shut down'
In order for 'remsh' to work you need an '/etc/hosts.equiv' or '.rhosts' file:
http://docs.hp.com/en/B3921-60631/hosts.equiv.4.html
Too, you need to allow the 'shell' service in '/etc/inetd.conf':
shell stream tcp nowait root /usr/lbin/remshd remshd
If this is commented-out, un-comment it and issue:
# inetd -c
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2009 11:10 AM
12-18-2009 11:10 AM
Re: remsh errors out with 'rcmd_af: primary connection shut down'
I have returned the box to its original form.
But, I did create an /etc/hosts.equiv file and checked that /etc/inetd.conf had a line supporting the shell.
I'm suspicious now, that the problem has to do with the fact that I'm trying to do this as root (a little risky) and that one machine is partially setup to use NIS+ and the other is not. So, I'm going to recreate the /etc/hosts.equiv file disable NIS on the one box that is using it. Then create a 'backup' user on both boxes and try again.
Any idea how to remove NIS+ from an HP UX 11 box? I see NIS in SAM, but, it is not clear via SAM how to undo NIS. I would assume it needs to be done deliberately to try to maintain the existing users.
I'll start another thread on that front.
Thanks for the help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2009 02:38 AM
12-19-2009 02:38 AM
Re: remsh errors out with 'rcmd_af: primary connection shut down'
# /sbin/init.d/nisplus.client stop
then edit /etc/rc.config.d/namesvrs --> look for the variable NISPLUS_CLIENT and set it to zero to disable NIS+ permanently.
After that you should modify /etc/nsswitch.conf too...
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2009 09:55 AM
12-22-2009 09:55 AM
Re: remsh errors out with 'rcmd_af: primary connection shut down'
# frecover -rNv -f box1:/dev/rmt/0mnb
I get:
frecover(5405): unable to opend box1:/dev/rmt/0mnb
frecover(5406): Do you wish to ontinue? n
frecover(5407): abort selected.
So, I'm trying to get both boxes back to simple plain vanilla configurations. Both had NIS partially setup. I think I've undone the NIS setup on both. In /etc/rc.config.d/namesvrs, set NISPLUS_CLIENT=0, NIS_CLIENT=0, and NIS_DOMAIN="".
I modified /etc/nsswitch.conf to look at local files on both boxes.
Did /sbin/inet.d/nis.client stop
on both boxes.
I can find no indication that I need to reboot the boxes or refresh a service. 'Seems like there should be something to restart.
Still, when I try:
# frecover -rNv -f box1:/dev/rmt/0mnb
I get:
frecover(5405): unable to opend box1:/dev/rmt/0mnb
frecover(5406): Do you wish to ontinue? n
frecover(5407): abort selected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2009 10:26 AM
12-22-2009 10:26 AM
Re: remsh errors out with 'rcmd_af: primary connection shut down'
then, once you get that working, move on to get fbackup to read / write remote devices.
BTW: you noted you're running hpux 11. Which version. The reason I ask is that at 11.31, it notes that fbackup is being obsoleted. you might start considering alternatives should there be an upgrade in your future......
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2009 11:10 AM
12-22-2009 11:10 AM
Re: remsh errors out with 'rcmd_af: primary connection shut down'
From one HP-UX B.11.23 box1 to its sibling box2, when I try:
box2 # remsh box1 ls
I get:
rcmd_af: primary connection shut down
I have an /etc/hosts.equiv on each box that lists the other box with the user 'root'.
On both boxes, /etc/inetd.conf has shell enabled and kshell enabled via remshd. Maybe that should be one or the other and not both?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2009 11:25 AM
12-22-2009 11:25 AM
Re: remsh errors out with 'rcmd_af: primary connection shut down'
primary connection shutdown
While waiting for the secondary socket to be set up, rcmd() had its primary connection shut down. This may have been caused by an inetd security failure.
So, how do I track that back to a possible source? Time to start proofing the inetd configuration, I guess.