HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

rcmd-a lost connection

 
madhudeepan
Frequent Advisor

rcmd-a lost connection

wen i try to login using ssh through putty am unable to login wen i try rlogin from another server am getting the error rcmd-a lost connection
11 REPLIES
SoorajCleris
Honored Contributor

Re: rcmd-a lost connection

Hi,

"rcmd: Lost connection" means the remote hosts did not accept socket request


Did you check with telnet / rlogin?

Check the security/ and restrictions enables for the host and user.

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
madhudeepan
Frequent Advisor

Re: rcmd-a lost connection

how to Check the security/ and restrictions enables for the host and user?
Suraj E.M
Occasional Advisor

Re: rcmd-a lost connection

Hi,

1. Comment the following lines in /etc/inetd.conf

shell stream tcp nowait root /usr/sbin/tcpd in.rshd
login stream tcp nowait root /usr/sbin/tcpd in.rlogind

2. Reconfigure inetd as,
# inetd -c

(from old threads)

thanks,
Sooraj.
madhudeepan
Frequent Advisor

Re: rcmd-a lost connection

i cannot login into the server through ssh, the rcmd error occurs
SoorajCleris
Honored Contributor

Re: rcmd-a lost connection

Hi,

I understand! Are you able to do telnet to the system ( just for checking)?

Is that other ssh anything else is desabled?

regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
madhudeepan
Frequent Advisor

Re: rcmd-a lost connection

no telnet is not working
i have taken console wen i execute any other commands the command is not executing
ksh cannot fork too many processes

var system is full, will the var be full?
SoorajCleris
Honored Contributor

Re: rcmd-a lost connection

Hi,

please paste #bdf output.

If it is full.

Then you need to check for making enough space in the sytem.

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
SoorajCleris
Honored Contributor

Re: rcmd-a lost connection

Hi,

If the var is full just check this recent thread,

http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1360695

Goodluck!!

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
madhudeepan
Frequent Advisor

Re: rcmd-a lost connection

wen i execute any other commands the command is not executing it is not working
SoorajCleris
Honored Contributor

Re: rcmd-a lost connection

Hi,

It seems to be a critical situation.
Normally I have seen the cases, server crashes if /var become full.

I there is no way to interact with the shell, the only way to reboot the server.

If you reboot also, it maynot boot, then boot to the single usermod and make enough free space.

This is only suggetions, you may please take help from official support people. Becaue if it is a production server, it is critical

Regards,
Sooraj

"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Patrick Wallek
Honored Contributor

Re: rcmd-a lost connection

>>ksh cannot fork too many processes

That would be the problem I would look into first! Basically there are too many processes running on the system. You have reached the limit imposed by the 'nproc' or 'maxuprc' kernel parameter.

To remedy this in the short term you need to get some people to log off of the system.

In the long term you may need to increase the values of the maxuprc and nproc kernel parameters.