Re: SSH commands to HMC



Thanks Stanislav,
the SSH client is an an AIX 4.3.3 system.
I thought it sounded like a typical DNS timeout as
well, so I put the IP address of the client into the
hosts file on the HMC. Same result so far...
I don't know what RG starvation is, so I'll
investigate.
Thanks,

--- Stanislav Grozev <tacho@xxxxxxxxxxx> wrote:

Hi Andrew,

on what machine are you running the SSH client?
Linux, AIX, something else?
This looks to me as either DNS problems (reverse
resolving) on the HMC side,
or random generator starvation from the clients'
side (much less likely
nowadays, but still...)

HTH,
tacho

On 9/12/06 3:30 PM, "Andrew Garnett"
<andrewwdg@xxxxxxxxxxx> wrote:

Thanks to all for any advice.

Edward, the output from verbose mode is not very
helpful as you can see below (timeout).
The crazy thing is that an identical call 2
seconds
later works OK (below).
It is as if the 1st call fails, but somehow wakes
up
the connection.

ssh -v -v -l hscroot 10.26.10.21 date
OpenSSH_3.7p1, SSH protocols 1.5/2.0, OpenSSL
0.9.7b
10 Apr 2003
debug1: Reading configuration data
/usr/local/etc/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to 10.26.10.21 [10.26.10.21]
port
22.
debug1: connect to address 10.26.10.21 port 22:
Connection timed out
ssh: connect to host 10.26.10.21 port 22:
Connection
timed out


root@node9>ssh -v -v -l hscroot 10.26.10.21 date
OpenSSH_3.7p1, SSH protocols 1.5/2.0, OpenSSL
0.9.7b
10 Apr 2003
debug1: Reading configuration data
/usr/local/etc/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to 10.26.10.21 [10.26.10.21]
port
22.
debug1: Connection established.
debug1: identity file /.ssh/identity type -1
debug1: identity file /.ssh/id_rsa type -1
debug2: key_type_from_name: unknown key type
'-----BEGIN'
debug2: key_type_from_name: unknown key type
'Proc-Type:'
debug2: key_type_from_name: unknown key type
'DEK-Info:'
debug2: key_type_from_name: unknown key type
'-----END'
debug1: identity file /.ssh/id_dsa type 2
debug1: Remote protocol version 1.99, remote
software
version OpenSSH_3.4p1
debug1: match: OpenSSH_3.4p1 pat
OpenSSH_3.2*,OpenSSH_3.3*,OpenSSH_3.4*,OpenSSH_
3.5*
debug1: Enabling compatibility mode for protocol
2.0
debug1: Local version string SSH-2.0-OpenSSH_3.7p1
.
.
. etc until successful connection

I assume that ssh, ssl firewalls etc are OK since
I do
actually get a success on subsequent calls.


--- "Davignon, Edward"
<Edward.Davignon@xxxxxxxxxxxxxx> wrote:

What are the results of verbose mode:

ssh -v -l hscroot 10.26.10.21 date

or extra verbose mode:

ssh -v -v -l hscroot 10.26.10.21 date


Edward Davignon
Lead Analyst - Distributed Systems
Utility Shared Services - IT
Energy East Corporation


-----Original Message-----
From: IBM AIX Discussion List
[mailto:aix-l@xxxxxxxxxxxxx] On Behalf Of
Andrew Garnett
Sent: Monday, September 11, 2006 10:38 AM
To: aix-l@xxxxxxxxxxxxx
Subject: SSH commands to HMC

All,

I am sending hmc commands to an HMC from a UNIX
command-line using ssh.
On the first call the connection times out (see
below).
On the subsequent call (immediately afterwards)
it
connects and runs OK, as do any other iterations.
If I leave it a few minutes, I'm back to a
timeout
and
then it continues OK.

root@node9>ssh -l hscroot 10.26.10.21 date
ssh: connect to host 10.56.0.224 port 22:
Connection
timed out

root@node9>ssh -l hscroot 10.26.10.21 date
Sun Sep 10 00:20:58 BST 2006

This is hopeless for scripting.Anyone know what
causes
it ?








___________________________________________________________

All new Yahoo! Mail "The new Interface is
stunning
in its simplicity and
ease of use." - PC Magazine
http://uk.docs.yahoo.com/nowyoucan.html







___________________________________________________________
The all-new Yahoo! Mail goes wherever you go -
free your email address from
your Internet provider.
http://uk.docs.yahoo.com/nowyoucan.html


--
Stanislav Grozev
UNIX Systems Administration, ERA dept.
Enterprise Operations Division, Mobiltel EAD







___________________________________________________________
All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine
http://uk.docs.yahoo.com/nowyoucan.html



Relevant Pages