Discussion:
[rancid] SSH public-keys
Michael Maymann
2012-01-09 10:31:58 UTC
Permalink
Hi List,

We have a setup where we have destributed 4096 bit RSA public-keys to all
our equipment from a network-user for optimanl security.
Our equipment is already in a DB and we have a scripting environment that
figures out the vendor/model/type for us already.
1. Can I use rancid without using .cloginrc (e.g. directly from
commandline) - how... ?
2. Alternatively, can I configure .cloginrc with ssh-keysharing - how... ?

We will need to connect to HP ProCurve (hlogin) and Cisco (clogin)...


Thanks in advance :-) !

~maymann
Michael Maymann
2012-01-09 14:14:50 UTC
Permalink
hlogin -w <USR> -c "sh ver" <HOSTNAME>:
---
<HOSTNAME>
spawn hpuifilter -- ssh -c 3des -x -l <USR> <HOSTNAME>
We'd like to keep you up to date about:
* Software feature updates
* New product announcements
* Special events

Please register your products now at: www.ProCurve.com


ProCurve J8697A Switch 5406zl
Software revision K.15.02.0005

Copyright (C) 1991-2010 Hewlett-Packard Co. All Rights Reserved.

RESTRICTED RIGHTS LEGEND

Use, duplication, or disclosure by the Government is subject to
restrictions
as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data
and
Computer Software clause at 52.227-7013.

HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303

Press any key to continue<HOSTNAME>#
---
Just "hangs" there...


ssh <USR>@<HOSTNAME>:
---
We'd like to keep you up to date about:
* Software feature updates
* New product announcements
* Special events

Please register your products now at: www.ProCurve.com
ProCurve J8697A Switch 5406zl
Software revision K.15.02.0005

Copyright (C) 1991-2010 Hewlett-Packard Co. All Rights Reserved.

RESTRICTED RIGHTS LEGEND

Use, duplication, or disclosure by the Government is subject to
restrictions
as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data
and
Computer Software clause at 52.227-7013.

HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303
Press any key to continue
<HOSTNAME># sh ver
Image stamp: /sw/code/build/btm(K_15_02)
Oct 20 2010 16:19:41
K.15.02.0005
121
Boot Image: Primary
<HOSTNAME># logout
Do you want to log out [y/n]? y
Connection to <HOSTNAME> closed.
---
So SSH is working fine...
I'm running Rancid 2.3.6... hlogin=$Id: hlogin.in 2251 2010-10-01 19:26:36Z
heas $
Could there be a problem with HP Procurve 5406zl hlogin script somewhere...
or can someone actually confirm this to be working on their 5406zl ?

Furthermore, I would like to run hlogin+clogin wihout having to configure
anything inside .cloginrc... is this possible somehow ?


Thanks in advance... :-) !
~maymann
Post by Michael Maymann
Hi List,
We have a setup where we have destributed 4096 bit RSA public-keys to all
our equipment from a network-user for optimanl security.
Our equipment is already in a DB and we have a scripting environment that
figures out the vendor/model/type for us already.
1. Can I use rancid without using .cloginrc (e.g. directly from
commandline) - how... ?
2. Alternatively, can I configure .cloginrc with ssh-keysharing - how... ?
We will need to connect to HP ProCurve (hlogin) and Cisco (clogin)...
Thanks in advance :-) !
~maymann
Michael Maymann
2012-01-10 08:17:31 UTC
Permalink
I'm running on rhel-5u7-x64.
Anyone...?


Thanks in advance :-)
~maymann
Post by Michael Maymann
---
<HOSTNAME>
spawn hpuifilter -- ssh -c 3des -x -l <USR> <HOSTNAME>
* Software feature updates
* New product announcements
* Special events
Please register your products now at: www.ProCurve.com
ProCurve J8697A Switch 5406zl
Software revision K.15.02.0005
Copyright (C) 1991-2010 Hewlett-Packard Co. All Rights Reserved.
RESTRICTED RIGHTS LEGEND
Use, duplication, or disclosure by the Government is subject to
restrictions
as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data
and
Computer Software clause at 52.227-7013.
HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303
Press any key to continue<HOSTNAME>#
---
Just "hangs" there...
---
* Software feature updates
* New product announcements
* Special events
Please register your products now at: www.ProCurve.com
ProCurve J8697A Switch 5406zl
Software revision K.15.02.0005
Copyright (C) 1991-2010 Hewlett-Packard Co. All Rights Reserved.
RESTRICTED RIGHTS LEGEND
Use, duplication, or disclosure by the Government is subject to
restrictions
as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data
and
Computer Software clause at 52.227-7013.
HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303
Press any key to continue
<HOSTNAME># sh ver
Image stamp: /sw/code/build/btm(K_15_02)
Oct 20 2010 16:19:41
K.15.02.0005
121
Boot Image: Primary
<HOSTNAME># logout
Do you want to log out [y/n]? y
Connection to <HOSTNAME> closed.
---
So SSH is working fine...
I'm running Rancid 2.3.6... hlogin=$Id: hlogin.in 2251 2010-10-01
19:26:36Z heas $
Could there be a problem with HP Procurve 5406zl hlogin script
somewhere... or can someone actually confirm this to be working on their
5406zl ?
Furthermore, I would like to run hlogin+clogin wihout having to configure
anything inside .cloginrc... is this possible somehow ?
Thanks in advance... :-) !
~maymann
Post by Michael Maymann
Hi List,
We have a setup where we have destributed 4096 bit RSA public-keys to all
our equipment from a network-user for optimanl security.
Our equipment is already in a DB and we have a scripting environment that
figures out the vendor/model/type for us already.
1. Can I use rancid without using .cloginrc (e.g. directly from
commandline) - how... ?
2. Alternatively, can I configure .cloginrc with ssh-keysharing - how... ?
We will need to connect to HP ProCurve (hlogin) and Cisco (clogin)...
Thanks in advance :-) !
~maymann
Tyler J. Wagner
2012-01-10 09:26:02 UTC
Permalink
Michael,

I've not tried using clogin/hlogin with SSH keys, but I know a great deal
about SSH. Assuming that clogin will use a key if present (a big if):

1. Can you login with the SSH key using ssh as the root user?
2. Can you login with the SSH key using clogin as the root user?
3. What about as the rancid user?

Regards,
Tyler
Post by Michael Maymann
I'm running on rhel-5u7-x64.
Anyone...?
Thanks in advance :-)
~maymann
---
<HOSTNAME>
spawn hpuifilter -- ssh -c 3des -x -l <USR> <HOSTNAME>
* Software feature updates
* New product announcements
* Special events
Please register your products now at: www.ProCurve.com
<http://www.ProCurve.com>
ProCurve J8697A Switch 5406zl
Software revision K.15.02.0005
Copyright (C) 1991-2010 Hewlett-Packard Co. All Rights Reserved.
RESTRICTED RIGHTS LEGEND
Use, duplication, or disclosure by the Government is subject to
restrictions
as set forth in subdivision (b) (3) (ii) of the Rights in Technical
Data and
Computer Software clause at 52.227-7013.
HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303
Press any key to continue<HOSTNAME>#
---
Just "hangs" there...
---
* Software feature updates
* New product announcements
* Special events
Please register your products now at: www.ProCurve.com
<http://www.ProCurve.com>
ProCurve J8697A Switch 5406zl
Software revision K.15.02.0005
Copyright (C) 1991-2010 Hewlett-Packard Co. All Rights Reserved.
RESTRICTED RIGHTS LEGEND
Use, duplication, or disclosure by the Government is subject to
restrictions
as set forth in subdivision (b) (3) (ii) of the Rights in Technical
Data and
Computer Software clause at 52.227-7013.
HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303
Press any key to continue
<HOSTNAME># sh ver
Image stamp: /sw/code/build/btm(K_15_02)
Oct 20 2010 16:19:41
K.15.02.0005
121
Boot Image: Primary
<HOSTNAME># logout
Do you want to log out [y/n]? y
Connection to <HOSTNAME> closed.
---
So SSH is working fine...
I'm running Rancid 2.3.6... hlogin=$Id: hlogin.in <http://hlogin.in>
2251 2010-10-01 19:26:36Z heas $
Could there be a problem with HP Procurve 5406zl hlogin script
somewhere... or can someone actually confirm this to be working on
their 5406zl ?
Furthermore, I would like to run hlogin+clogin wihout having to
configure anything inside .cloginrc... is this possible somehow ?
Thanks in advance... :-) !
~maymann
Hi List,
We have a setup where we have destributed 4096 bit RSA public-keys
to all our equipment from a network-user for optimanl security.
Our equipment is already in a DB and we have a scripting
environment that figures out the vendor/model/type for us already.
1. Can I use rancid without using .cloginrc (e.g. directly from
commandline) - how... ?
2. Alternatively, can I configure .cloginrc with ssh-keysharing - how... ?
We will need to connect to HP ProCurve (hlogin) and Cisco (clogin)...
Thanks in advance :-) !
~maymann
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
--
"[...] we are not attacking the corporations, but endeavoring to do
away with any evil in them. We are not hostile to them; we are merely
determined that they shall be so handled as to subserve the public
good. We draw the line against misconduct, not against wealth."
-- Theodore Roosevelt
Michael Maymann
2012-01-10 13:11:54 UTC
Permalink
Hi Tyler,

Thanks for your reply...:-) !

Same thing happens as for my network user...:
1. yes
2. no (clogin/hlogin requires a .cloginrc file with username/password to
run) - and my best bet is that this is what it uses currently... so no
ssh-keys using clogin/hlogin (from wither network user, root, rancid...).
Furthermore prompt is also "hanging" and it doesn't parse the -c "sh ver"
that works fine from normal ssh...
3. same as network user/root

So key-sharing is working fine... but don't know how to utilize it/bypass
.cloginrc in rancid...
Just hoping that there is a way... - would'nt like to manually edit scripts
every time i update Rancid... and I don't know expect that well
either...:-) !

Thanks in advance :-) !
~maymann
Post by Tyler J. Wagner
Michael,
I've not tried using clogin/hlogin with SSH keys, but I know a great deal
1. Can you login with the SSH key using ssh as the root user?
2. Can you login with the SSH key using clogin as the root user?
3. What about as the rancid user?
Regards,
Tyler
Post by Michael Maymann
I'm running on rhel-5u7-x64.
Anyone...?
Thanks in advance :-)
~maymann
---
<HOSTNAME>
spawn hpuifilter -- ssh -c 3des -x -l <USR> <HOSTNAME>
* Software feature updates
* New product announcements
* Special events
Please register your products now at: www.ProCurve.com
<http://www.ProCurve.com>
ProCurve J8697A Switch 5406zl
Software revision K.15.02.0005
Copyright (C) 1991-2010 Hewlett-Packard Co. All Rights Reserved.
RESTRICTED RIGHTS LEGEND
Use, duplication, or disclosure by the Government is subject to
restrictions
as set forth in subdivision (b) (3) (ii) of the Rights in Technical
Data and
Computer Software clause at 52.227-7013.
HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA
94303
Post by Michael Maymann
Press any key to continue<HOSTNAME>#
---
Just "hangs" there...
---
* Software feature updates
* New product announcements
* Special events
Please register your products now at: www.ProCurve.com
<http://www.ProCurve.com>
ProCurve J8697A Switch 5406zl
Software revision K.15.02.0005
Copyright (C) 1991-2010 Hewlett-Packard Co. All Rights Reserved.
RESTRICTED RIGHTS LEGEND
Use, duplication, or disclosure by the Government is subject to
restrictions
as set forth in subdivision (b) (3) (ii) of the Rights in Technical
Data and
Computer Software clause at 52.227-7013.
HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA
94303
Post by Michael Maymann
Press any key to continue
<HOSTNAME># sh ver
Image stamp: /sw/code/build/btm(K_15_02)
Oct 20 2010 16:19:41
K.15.02.0005
121
Boot Image: Primary
<HOSTNAME># logout
Do you want to log out [y/n]? y
Connection to <HOSTNAME> closed.
---
So SSH is working fine...
I'm running Rancid 2.3.6... hlogin=$Id: hlogin.in <http://hlogin.in>
2251 2010-10-01 19:26:36Z heas $
Could there be a problem with HP Procurve 5406zl hlogin script
somewhere... or can someone actually confirm this to be working on
their 5406zl ?
Furthermore, I would like to run hlogin+clogin wihout having to
configure anything inside .cloginrc... is this possible somehow ?
Thanks in advance... :-) !
~maymann
Hi List,
We have a setup where we have destributed 4096 bit RSA
public-keys
Post by Michael Maymann
to all our equipment from a network-user for optimanl security.
Our equipment is already in a DB and we have a scripting
environment that figures out the vendor/model/type for us
already.
Post by Michael Maymann
1. Can I use rancid without using .cloginrc (e.g. directly from
commandline) - how... ?
2. Alternatively, can I configure .cloginrc with ssh-keysharing -
how... ?
We will need to connect to HP ProCurve (hlogin) and Cisco
(clogin)...
Post by Michael Maymann
Thanks in advance :-) !
~maymann
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
--
"[...] we are not attacking the corporations, but endeavoring to do
away with any evil in them. We are not hostile to them; we are merely
determined that they shall be so handled as to subserve the public
good. We draw the line against misconduct, not against wealth."
-- Theodore Roosevelt
Michael Maymann
2012-01-10 13:18:51 UTC
Permalink
Hi again...,
guess this guy was having same problem... no solution though...yet...:-)
http://www.shrubbery.net/pipermail/rancid-discuss/2010-October/005263.html

Thanks in advance :-) !
~maymann
Post by Michael Maymann
Hi Tyler,
Thanks for your reply...:-) !
1. yes
2. no (clogin/hlogin requires a .cloginrc file with username/password to
run) - and my best bet is that this is what it uses currently... so no
ssh-keys using clogin/hlogin (from wither network user, root, rancid...).
Furthermore prompt is also "hanging" and it doesn't parse the -c "sh ver"
that works fine from normal ssh...
3. same as network user/root
So key-sharing is working fine... but don't know how to utilize it/bypass
.cloginrc in rancid...
Just hoping that there is a way... - would'nt like to manually edit
scripts every time i update Rancid... and I don't know expect that well
either...:-) !
Thanks in advance :-) !
~maymann
Post by Tyler J. Wagner
Michael,
I've not tried using clogin/hlogin with SSH keys, but I know a great deal
1. Can you login with the SSH key using ssh as the root user?
2. Can you login with the SSH key using clogin as the root user?
3. What about as the rancid user?
Regards,
Tyler
Post by Michael Maymann
I'm running on rhel-5u7-x64.
Anyone...?
Thanks in advance :-)
~maymann
---
<HOSTNAME>
spawn hpuifilter -- ssh -c 3des -x -l <USR> <HOSTNAME>
* Software feature updates
* New product announcements
* Special events
Please register your products now at: www.ProCurve.com
<http://www.ProCurve.com>
ProCurve J8697A Switch 5406zl
Software revision K.15.02.0005
Copyright (C) 1991-2010 Hewlett-Packard Co. All Rights Reserved.
RESTRICTED RIGHTS LEGEND
Use, duplication, or disclosure by the Government is subject to
restrictions
as set forth in subdivision (b) (3) (ii) of the Rights in Technical
Data and
Computer Software clause at 52.227-7013.
HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA
94303
Post by Michael Maymann
Press any key to continue<HOSTNAME>#
---
Just "hangs" there...
---
* Software feature updates
* New product announcements
* Special events
Please register your products now at: www.ProCurve.com
<http://www.ProCurve.com>
ProCurve J8697A Switch 5406zl
Software revision K.15.02.0005
Copyright (C) 1991-2010 Hewlett-Packard Co. All Rights Reserved.
RESTRICTED RIGHTS LEGEND
Use, duplication, or disclosure by the Government is subject to
restrictions
as set forth in subdivision (b) (3) (ii) of the Rights in Technical
Data and
Computer Software clause at 52.227-7013.
HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA
94303
Post by Michael Maymann
Press any key to continue
<HOSTNAME># sh ver
Image stamp: /sw/code/build/btm(K_15_02)
Oct 20 2010 16:19:41
K.15.02.0005
121
Boot Image: Primary
<HOSTNAME># logout
Do you want to log out [y/n]? y
Connection to <HOSTNAME> closed.
---
So SSH is working fine...
I'm running Rancid 2.3.6... hlogin=$Id: hlogin.in <http://hlogin.in
2251 2010-10-01 19:26:36Z heas $
Could there be a problem with HP Procurve 5406zl hlogin script
somewhere... or can someone actually confirm this to be working on
their 5406zl ?
Furthermore, I would like to run hlogin+clogin wihout having to
configure anything inside .cloginrc... is this possible somehow ?
Thanks in advance... :-) !
~maymann
Hi List,
We have a setup where we have destributed 4096 bit RSA
public-keys
Post by Michael Maymann
to all our equipment from a network-user for optimanl security.
Our equipment is already in a DB and we have a scripting
environment that figures out the vendor/model/type for us
already.
Post by Michael Maymann
1. Can I use rancid without using .cloginrc (e.g. directly from
commandline) - how... ?
2. Alternatively, can I configure .cloginrc with ssh-keysharing
-
Post by Michael Maymann
how... ?
We will need to connect to HP ProCurve (hlogin) and Cisco
(clogin)...
Post by Michael Maymann
Thanks in advance :-) !
~maymann
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
--
"[...] we are not attacking the corporations, but endeavoring to do
away with any evil in them. We are not hostile to them; we are merely
determined that they shall be so handled as to subserve the public
good. We draw the line against misconduct, not against wealth."
-- Theodore Roosevelt
heasley
2012-01-10 16:20:49 UTC
Permalink
Post by Michael Maymann
Hi again...,
guess this guy was having same problem... no solution though...yet...:-)
http://www.shrubbery.net/pipermail/rancid-discuss/2010-October/005263.html
i havent had time to look at that problem; i need a linux box to test it on.
Michael Maymann
2012-01-10 18:56:12 UTC
Permalink
Hi Heasley,

Thanks for your kind replies... thought it would be possible somehow...:-) !
I would love to help fix the hlogin procurve "hang" problem... can you
define a command that I run and send you some debug output (perhaps
off-list), that can help solve this...?
Can you give an example of .cloginrc identity knob config and perhaps
hlogin command... at home at the moment, would like to test first thing in
the morning if possible...:-)

Thanks in advance :-) !
~maymann
Post by Michael Maymann
Post by Michael Maymann
Hi again...,
guess this guy was having same problem... no solution though...yet...:-)
http://www.shrubbery.net/pipermail/rancid-discuss/2010-October/005263.html
i havent had time to look at that problem; i need a linux box to test it on.
heasley
2012-01-10 20:00:05 UTC
Permalink
Post by Michael Maymann
Hi Heasley,
Thanks for your kind replies... thought it would be possible somehow...:-) !
I would love to help fix the hlogin procurve "hang" problem... can you
define a command that I run and send you some debug output (perhaps
off-list), that can help solve this...?
I can't; i suspect its related to string functions that have changed to
support wide characters.
Post by Michael Maymann
Can you give an example of .cloginrc identity knob config and perhaps
hlogin command... at home at the moment, would like to test first thing in
the morning if possible...:-)
its just a filename. see the -i option of the ssh client.
Post by Michael Maymann
Thanks in advance :-) !
~maymann
Post by Michael Maymann
Post by Michael Maymann
Hi again...,
guess this guy was having same problem... no solution though...yet...:-)
http://www.shrubbery.net/pipermail/rancid-discuss/2010-October/005263.html
i havent had time to look at that problem; i need a linux box to test it on.
Michael Maymann
2012-01-10 20:32:53 UTC
Permalink
Hi Heasley,

perhaps if you send me a specially modified hlogin that will echo some
specific variables and run in debug mode - wouldn't this be a feasible way
to troubleshoot this quickly...?

I will try to test this also on a 32bit system tomorrow...

Thanks in advance :-) !
~maymann
Post by Michael Maymann
Post by Michael Maymann
Hi Heasley,
Thanks for your kind replies... thought it would be possible
somehow...:-) !
Post by Michael Maymann
I would love to help fix the hlogin procurve "hang" problem... can you
define a command that I run and send you some debug output (perhaps
off-list), that can help solve this...?
I can't; i suspect its related to string functions that have changed to
support wide characters.
Post by Michael Maymann
Can you give an example of .cloginrc identity knob config and perhaps
hlogin command... at home at the moment, would like to test first thing
in
Post by Michael Maymann
the morning if possible...:-)
its just a filename. see the -i option of the ssh client.
Post by Michael Maymann
Thanks in advance :-) !
~maymann
Post by heasley
Post by Michael Maymann
Hi again...,
guess this guy was having same problem... no solution
though...yet...:-)
http://www.shrubbery.net/pipermail/rancid-discuss/2010-October/005263.html
Post by Michael Maymann
Post by heasley
i havent had time to look at that problem; i need a linux box to test
it
Post by Michael Maymann
Post by heasley
on.
shouldbe q931
2012-01-10 20:34:24 UTC
Permalink
Post by heasley
Post by Michael Maymann
Hi Heasley,
Thanks for your kind replies... thought it would be possible somehow...:-) !
I would love to help fix the hlogin procurve "hang" problem... can you
define a command that I run and send you some debug output (perhaps
off-list), that can help solve this...?
I can't; i suspect its related to string functions that have changed to
support wide characters.
Post by Michael Maymann
Can you give an example of .cloginrc identity knob config and perhaps
hlogin command... at home at the moment, would like to test first thing in
the morning if possible...:-)
its just a filename.  see the -i option of the ssh client.
Post by Michael Maymann
Thanks in advance :-) !
~maymann
Post by Michael Maymann
Post by Michael Maymann
Hi again...,
guess this guy was having same problem... no solution though...yet...:-)
http://www.shrubbery.net/pipermail/rancid-discuss/2010-October/005263.html
i havent had time to look at that problem; i need a linux box to test it on.
_______________________________________________
Apologies if I have misunderstood, but have you edited as per
http://www.hiddenone.net/hp-procurve/rancid-hp-procurve-equipment/

or is that no longer required on 2.3.6 ?

I have rancid working quite nicely with several 5412 and 5406
switches, would be nice if the looking glass worked on them as well,
but...
Michael Maymann
2012-01-10 20:47:48 UTC
Permalink
Hi Shouldbe,
Thanks for your nice comment...:-) !

No, I haven't edited anything... maybe this is what is needed (if it's
working for you, it seems so...!)...?
Sorry for my ignorance - what is looking glass...?:
"RANCID also includes looking glass software. It is based on Ed Kern's
looking glass which was once used for http://nitrous.digex.net/, for the
old-school folks who remember it. Our version has added functions, supports
cisco, juniper, and foundry and uses the login scripts that come with
rancid; so it can use telnet or ssh to connect to your devices(s)."

I can't check this right now - but it will be my first thing tomorrow
morning...!
Heasley/anyone - do you know if this is also should be needed in 2.3.6 - or
do we perhaps have the codefix right here...?

Thanks in advance :-) !
~maymann
Post by Michael Maymann
Post by heasley
Post by Michael Maymann
Hi Heasley,
Thanks for your kind replies... thought it would be possible
somehow...:-) !
Post by heasley
Post by Michael Maymann
I would love to help fix the hlogin procurve "hang" problem... can you
define a command that I run and send you some debug output (perhaps
off-list), that can help solve this...?
I can't; i suspect its related to string functions that have changed to
support wide characters.
Post by Michael Maymann
Can you give an example of .cloginrc identity knob config and perhaps
hlogin command... at home at the moment, would like to test first thing
in
Post by heasley
Post by Michael Maymann
the morning if possible...:-)
its just a filename. see the -i option of the ssh client.
Post by Michael Maymann
Thanks in advance :-) !
~maymann
Post by heasley
Post by Michael Maymann
Hi again...,
guess this guy was having same problem... no solution
though...yet...:-)
http://www.shrubbery.net/pipermail/rancid-discuss/2010-October/005263.html
Post by heasley
Post by Michael Maymann
Post by heasley
i havent had time to look at that problem; i need a linux box to test
it
Post by heasley
Post by Michael Maymann
Post by heasley
on.
_______________________________________________
Apologies if I have misunderstood, but have you edited as per
http://www.hiddenone.net/hp-procurve/rancid-hp-procurve-equipment/
or is that no longer required on 2.3.6 ?
I have rancid working quite nicely with several 5412 and 5406
switches, would be nice if the looking glass worked on them as well,
but...
Michael Maymann
2012-01-10 20:55:31 UTC
Permalink
Nevermind LG: found info here...:
http://www.shrubbery.net/rancid/man/lg_intro.1.html

would be awesome with ProCurve support...:-) !

~maymann
Post by Michael Maymann
Hi Shouldbe,
Thanks for your nice comment...:-) !
No, I haven't edited anything... maybe this is what is needed (if it's
working for you, it seems so...!)...?
"RANCID also includes looking glass software. It is based on Ed Kern's
looking glass which was once used for http://nitrous.digex.net/, for the
old-school folks who remember it. Our version has added functions, supports
cisco, juniper, and foundry and uses the login scripts that come with
rancid; so it can use telnet or ssh to connect to your devices(s)."
I can't check this right now - but it will be my first thing tomorrow
morning...!
Heasley/anyone - do you know if this is also should be needed in 2.3.6 -
or do we perhaps have the codefix right here...?
Thanks in advance :-) !
~maymann
Post by Michael Maymann
Post by heasley
Post by Michael Maymann
Hi Heasley,
Thanks for your kind replies... thought it would be possible
somehow...:-) !
Post by heasley
Post by Michael Maymann
I would love to help fix the hlogin procurve "hang" problem... can you
define a command that I run and send you some debug output (perhaps
off-list), that can help solve this...?
I can't; i suspect its related to string functions that have changed to
support wide characters.
Post by Michael Maymann
Can you give an example of .cloginrc identity knob config and perhaps
hlogin command... at home at the moment, would like to test first
thing in
Post by heasley
Post by Michael Maymann
the morning if possible...:-)
its just a filename. see the -i option of the ssh client.
Post by Michael Maymann
Thanks in advance :-) !
~maymann
Post by heasley
Post by Michael Maymann
Hi again...,
guess this guy was having same problem... no solution
though...yet...:-)
http://www.shrubbery.net/pipermail/rancid-discuss/2010-October/005263.html
Post by heasley
Post by Michael Maymann
Post by heasley
i havent had time to look at that problem; i need a linux box to
test it
Post by heasley
Post by Michael Maymann
Post by heasley
on.
_______________________________________________
Apologies if I have misunderstood, but have you edited as per
http://www.hiddenone.net/hp-procurve/rancid-hp-procurve-equipment/
or is that no longer required on 2.3.6 ?
I have rancid working quite nicely with several 5412 and 5406
switches, would be nice if the looking glass worked on them as well,
but...
heasley
2012-01-10 22:13:04 UTC
Permalink
Post by shouldbe q931
Apologies if I have misunderstood, but have you edited as per
http://www.hiddenone.net/hp-procurve/rancid-hp-procurve-equipment/
or is that no longer required on 2.3.6 ?
I have rancid working quite nicely with several 5412 and 5406
switches, would be nice if the looking glass worked on them as well,
but...
current code runs both commands, so no edit should be necessary.
Michael Maymann
2012-01-11 11:21:36 UTC
Permalink
Hi again,
We don't even have a single 32bit linux server - all hosts (100+) are
running 64bit...!
Here is a nice easy linux distro (install on stick and go...):
www.everydesk.org

This is what I have now in my .cloginrc:
---
add method * ssh
add user * <MYUSR>
add identity * <FULL_PATH_TO/ID_RSA>
#add password <HOSTNAME> {PASSWORD} {PASSWORD}
---

This fails though:
-bash-3.2$ /usr/libexec/rancid/hlogin -c "sh ver" <HOSTNAME>
---
<HOSTNAME>

Error: no password for <HOSTNAME> in <FULL_PATH_TO/.cloginrc>.
---

I haven't assigned a passphrase to the key - and it works fine
password-lessly with just:
ssh <HOSTNAME>


Thanks in advance :-) !
~maymann
Post by heasley
Post by shouldbe q931
Apologies if I have misunderstood, but have you edited as per
http://www.hiddenone.net/hp-procurve/rancid-hp-procurve-equipment/
or is that no longer required on 2.3.6 ?
I have rancid working quite nicely with several 5412 and 5406
switches, would be nice if the looking glass worked on them as well,
but...
current code runs both commands, so no edit should be necessary.
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Michael Maymann
2012-01-11 11:26:42 UTC
Permalink
The codechange to hrancid, Shouldbe mentioned is like example in his link
in my version still:
@commandtable = (
{‘show version’ => ‘ShowVersion’},
{‘show flash’ => ‘ShowFlash’},
{‘show system-information’ => ‘ShowSystem’},
{‘show system information’ => ‘ShowSystem’},
{‘show module’ => ‘ShowModule’},
{‘show stack’ => ‘ShowStack’},
{‘write term’ => ‘WriteTerm’}
);

Is this ok..?

Br.
~Maymann
Post by Michael Maymann
Hi again,
We don't even have a single 32bit linux server - all hosts (100+) are
running 64bit...!
www.everydesk.org
---
add method * ssh
add user * <MYUSR>
add identity * <FULL_PATH_TO/ID_RSA>
#add password <HOSTNAME> {PASSWORD} {PASSWORD}
---
-bash-3.2$ /usr/libexec/rancid/hlogin -c "sh ver" <HOSTNAME>
---
<HOSTNAME>
Error: no password for <HOSTNAME> in <FULL_PATH_TO/.cloginrc>.
---
I haven't assigned a passphrase to the key - and it works fine
ssh <HOSTNAME>
Thanks in advance :-) !
~maymann
Post by heasley
Post by shouldbe q931
Apologies if I have misunderstood, but have you edited as per
http://www.hiddenone.net/hp-procurve/rancid-hp-procurve-equipment/
or is that no longer required on 2.3.6 ?
I have rancid working quite nicely with several 5412 and 5406
switches, would be nice if the looking glass worked on them as well,
but...
current code runs both commands, so no edit should be necessary.
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
shouldbe q931
2012-01-11 15:12:21 UTC
Permalink
Post by Michael Maymann
The codechange to hrancid, Shouldbe mentioned is like example in his link
@commandtable = (
{‘show version’ => ‘ShowVersion’},
{‘show flash’ => ‘ShowFlash’},
{‘show system-information’ => ‘ShowSystem’},
{‘show system information’ => ‘ShowSystem’},
{‘show module’ => ‘ShowModule’},
{‘show stack’ => ‘ShowStack’},
{‘write term’ => ‘WriteTerm’}
);
Is this ok..?
Br.
~Maymann
Looks good, does it work ?
Michael Maymann
2012-01-11 16:50:01 UTC
Permalink
Hi Shouldbe,

Sorry for not stating this... busy day at work...:
tried to change "show system-information" -> "show system" to hrancid but
still:
hlogin -c "sh ver" <HOSTNAME>
is "hanging"...

So it seems I have run into 2 problems:
1. trying to use hlogin with ssh-key-share (add identity * id_rsa)
configured to .cloginrc is still giving an error about password is missing
in .cloginrc. "ssh ***@host" is working fine with key-sharing
(password-lessly)...
2. hlogin is "hanging" also if I use username/password directly in
.cloginrc and even if I make the modifications to hrancid (stated above...)

Am I using this wrong somehow, as it works for you...?
Shouldbe: can you provide your .cloginrc and a tar of rancid-bin-dir (where
hlogin/hrancid etc is located)... and perhaps give examples of how you use
the tool to run commands on HP ProCurve equipment.
Heasley: is this an easy/quick fix or can you recommend anything else that
is working with both HP ProCurve and Cisco equipment... ?

Thanks in advance :-) !
~maymann
Post by shouldbe q931
Post by Michael Maymann
The codechange to hrancid, Shouldbe mentioned is like example in his link
@commandtable = (
{‘show version’ => ‘ShowVersion’},
{‘show flash’ => ‘ShowFlash’},
{‘show system-information’ => ‘ShowSystem’},
{‘show system information’ => ‘ShowSystem’},
{‘show module’ => ‘ShowModule’},
{‘show stack’ => ‘ShowStack’},
{‘write term’ => ‘WriteTerm’}
);
Is this ok..?
Br.
~Maymann
Looks good, does it work ?
shouldbe q931
2012-01-11 19:40:54 UTC
Permalink
Post by Michael Maymann
Hi Shouldbe,
tried to change "show system-information" -> "show system" to hrancid but
hlogin -c "sh ver" <HOSTNAME>
is "hanging"...
1. trying to use hlogin with ssh-key-share (add identity * id_rsa)
configured to .cloginrc is still giving an error about password is missing
(password-lessly)...
2. hlogin is "hanging" also if I use username/password directly in .cloginrc
and even if I make the modifications to hrancid (stated above...)
Am I using this wrong somehow, as it works for you...?
Shouldbe: can you provide your .cloginrc and a tar of rancid-bin-dir (where
hlogin/hrancid etc is located)... and perhaps give examples of how you use
the tool to run commands on HP ProCurve equipment.
Heasley: is this an easy/quick fix or can you recommend anything else that
is working with both HP ProCurve and Cisco equipment... ?
Thanks in advance :-) !
~maymann
I've attached a copy of hrancid, and what we "see" via ViewVC on the rancid box

I've had to slightly sanitise the output...
Michael Maymann
2012-01-20 10:00:39 UTC
Permalink
Hi,

Thanks shouldbe, but that didn't help either...:-(
I still haven't gotten this to work... have now tried the following:
---1---.cloginrc
-bash-3.2$ cat .cloginrc
add method * ssh
add user * USER
add identity * /COMPANY/site_home/USER/.ssh/id_rsa
add password HOSTNAME {PASSWORD} {PASSWORD}
---1---
---2---just standard output
-bash-3.2$ /usr/libexec/rancid/hlogin -c "sh ver" HOSTNAME
HOSTNAME
spawn hpuifilter -- ssh -i PATH_TO/.ssh/id_rsa -c 3des -x -l test HOSTNAME
We'd like to keep you up to date about:
* Software feature updates
* New product announcements
* Special events

Please register your products now at: www.ProCurve.com


ProCurve J8697A Switch 5406zl
Software revision K.15.02.0005

Copyright (C) 1991-2010 Hewlett-Packard Co. All Rights Reserved.

RESTRICTED RIGHTS LEGEND

Use, duplication, or disclosure by the Government is subject to
restrictions
as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data
and
Computer Software clause at 52.227-7013.

HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303

Press any key to continueHOSTNAME#...I PRESS <ENTER> HERE...

Error: TIMEOUT reached
---2---
---3---strace output
("/usr/libexec/rancid/hlogin", ["/usr/libexec/rancid/hlogin", "-c", "sh
ver", "HOSTNAME"], [/* 18 vars */]) = 0
brk(0) = 0x145bd000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x2ac42984f000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x2ac429850000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=32295, ...}) = 0
mmap(NULL, 32295, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2ac429851000
close(3) = 0
open("/lib64/tls/x86_64/libexpect5.43.so", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat("/lib64/tls/x86_64", 0x7fff824f3880) = -1 ENOENT (No such file or
directory)
open("/lib64/tls/libexpect5.43.so", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat("/lib64/tls", 0x7fff824f3880) = -1 ENOENT (No such file or
directory)
open("/lib64/x86_64/libexpect5.43.so", O_RDONLY) = -1 ENOENT (No such file
or directory)
stat("/lib64/x86_64", 0x7fff824f3880) = -1 ENOENT (No such file or
directory)
open("/lib64/libexpect5.43.so", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat("/lib64", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/lib64/tls/x86_64/libexpect5.43.so", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat("/usr/lib64/tls/x86_64", 0x7fff824f3880) = -1 ENOENT (No such file or
directory)
open("/usr/lib64/tls/libexpect5.43.so", O_RDONLY) = -1 ENOENT (No such file
or directory)
stat("/usr/lib64/tls", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/lib64/x86_64/libexpect5.43.so", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat("/usr/lib64/x86_64", 0x7fff824f3880) = -1 ENOENT (No such file or
directory)
open("/usr/lib64/libexpect5.43.so", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\***@w6\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=180608, ...}) = 0
mmap(0x3677400000, 2287968, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0x3677400000
mprotect(0x3677429000, 2097152, PROT_NONE) = 0
mmap(0x3677629000, 12288, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x29000) = 0x3677629000
mmap(0x367762c000, 10592, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x367762c000
close(3) = 0
open("/usr/lib64/libtcl8.4.so", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000\22bZ?\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=805656, ...}) = 0
mmap(0x3f5a600000, 2903528, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0x3f5a600000
mprotect(0x3f5a6bb000, 2093056, PROT_NONE) = 0
mmap(0x3f5a8ba000, 40960, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xba000) = 0x3f5a8ba000
mmap(0x3f5a8c4000, 3560, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3f5a8c4000
close(3) = 0
open("/lib64/libdl.so.2", O_RDONLY) = 3
read(3,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\16\240W?\0\0\0"..., 832)
= 832
fstat(3, {st_mode=S_IFREG|0755, st_size=23360, ...}) = 0
mmap(0x3f57a00000, 2109696, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0x3f57a00000
mprotect(0x3f57a02000, 2097152, PROT_NONE) = 0
mmap(0x3f57c02000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x3f57c02000
close(3) = 0
open("/lib64/libpthread.so.0", O_RDONLY) = 3
read(3,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240W\340W?\0\0\0"..., 832)
= 832
fstat(3, {st_mode=S_IFREG|0755, st_size=145824, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x2ac429859000
mmap(0x3f57e00000, 2204528, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0x3f57e00000
mprotect(0x3f57e16000, 2093056, PROT_NONE) = 0
mmap(0x3f58015000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15000) = 0x3f58015000
mmap(0x3f58017000, 13168, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3f58017000
close(3) = 0
open("/lib64/libm.so.6", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`>\240X?\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=615136, ...}) = 0
mmap(0x3f58a00000, 2629848, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0x3f58a00000
mprotect(0x3f58a82000, 2093056, PROT_NONE) = 0
mmap(0x3f58c81000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x81000) = 0x3f58c81000
close(3) = 0
open("/lib64/libutil.so.1", O_RDONLY) = 3
read(3,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\16\340Z?\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=18152, ...}) = 0
mmap(0x3f5ae00000, 2105616, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0x3f5ae00000
mprotect(0x3f5ae02000, 2093056, PROT_NONE) = 0
mmap(0x3f5b001000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x3f5b001000
close(3) = 0
open("/lib64/libc.so.6", O_RDONLY) = 3
read(3,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\332aW?\0\0\0"..., 832)
= 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1722304, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x2ac42985a000
mmap(0x3f57600000, 3502424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0x3f57600000
mprotect(0x3f5774e000, 2097152, PROT_NONE) = 0
mmap(0x3f5794e000, 20480, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14e000) = 0x3f5794e000
mmap(0x3f57953000, 16728, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3f57953000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x2ac42985b000
arch_prctl(ARCH_SET_FS, 0x2ac42985b790) = 0
mprotect(0x3f57c02000, 4096, PROT_READ) = 0
mprotect(0x3f58015000, 4096, PROT_READ) = 0
mprotect(0x3f58c81000, 4096, PROT_READ) = 0
mprotect(0x3f5b001000, 4096, PROT_READ) = 0
mprotect(0x3f5794e000, 16384, PROT_READ) = 0
mprotect(0x3f5741c000, 4096, PROT_READ) = 0
munmap(0x2ac429851000, 32295) = 0
set_tid_address(0x2ac42985b820) = 6256
set_robust_list(0x2ac42985b830, 0x18) = 0
futex(0x7fff824f43cc, FUTEX_WAKE_PRIVATE, 1) = 0
rt_sigaction(SIGRTMIN, {0x3f57e05380, [], SA_RESTORER|SA_SIGINFO,
0x3f57e0eb70}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x3f57e052b0, [], SA_RESTORER|SA_RESTART|SA_SIGINFO,
0x3f57e0eb70}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=10240*1024, rlim_max=RLIM_INFINITY}) = 0
lseek(0, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
lseek(1, 0, SEEK_CUR) = 0
lseek(2, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
rt_sigaction(SIGPIPE, {0x1, [PIPE], SA_RESTORER|SA_RESTART, 0x3f576302d0},
{SIG_DFL, [], 0}, 8) = 0
brk(0) = 0x145bd000
brk(0x145de000) = 0x145de000
mmap(NULL, 10489856, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS|MAP_32BIT, -1, 0) = 0x40e28000
mprotect(0x40e28000, 4096, PROT_NONE) = 0
clone(child_stack=0x41828250,
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLON7
futex(0x145c1924, FUTEX_WAIT_PRIVATE, 1, NULL) = 0
futex(0x145bdb30, FUTEX_WAIT_PRIVATE, 2, NULL) = 0
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 0
uname({sys="Linux", node="LINUXBOX", ...}) = 0
open("/usr/lib/locale/locale-archive", O_RDONLY) = 5
fstat(5, {st_mode=S_IFREG|0644, st_size=56459024, ...}) = 0
mmap(NULL, 56459024, PROT_READ, MAP_PRIVATE, 5, 0) = 0x2aaaaaaab000
close(5) = 0
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/lib", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
lstat("/usr/lib/tcl8.4", {st_mode=S_IFLNK|0777, st_size=17, ...}) = 0
readlink("/usr/lib/tcl8.4", "/usr/share/tcl8.4"..., 4096) = 17
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/share", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/share/tcl8.4", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/share/tcl8.4/encoding", {st_mode=S_IFDIR|0755, st_size=4096,
...}) = 0
open("/usr/share/tcl8.4/encoding/iso8859-1.enc", O_RDONLY) = 5
fcntl(5, F_SETFD, FD_CLOEXEC) = 0
ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fff824f39b0) = -1 ENOTTY
(Inappropriate ioctl for device)
brk(0x14600000) = 0x14600000
read(5, "# Encoding file: iso8859-1, sing"..., 4096) = 1094
read(5, "", 4096) = 0
close(5) = 0
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/share", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/share/tcl8.4", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
access("/usr/share/tcl8.4/init.tcl", F_OK) = 0
stat("/usr/share/tcl8.4/init.tcl", {st_mode=S_IFREG|0644, st_size=22674,
...}) = 0
open("/usr/share/tcl8.4/init.tcl", O_RDONLY) = 5
fcntl(5, F_SETFD, FD_CLOEXEC) = 0
ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fff824f2fe0) = -1 ENOTTY
(Inappropriate ioctl for device)
read(5, "# init.tcl --\n#\n# Default system"..., 4096) = 4096
read(5, " the following steps to make the"..., 4096) = 4096
read(5, "in \\\"unknown\\\"\" {} \\\n\t\t\t[list CO"..., 4096) = 4096
read(5, "guments: \n# None.\n\nproc auto_loa"..., 4096) = 4096
read(5, " namespace eval :: "..., 4096) = 4096
read(5, " give a more precise\n\t# error me"..., 4096) = 2194
read(5, "", 4096) = 0
close(5) = 0
brk(0x14624000) = 0x14624000
open("/dev/tty", O_RDWR) = 5
ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
ioctl(5, TIOCGWINSZ, {ws_row=33, ws_col=145, ws_xpixel=0, ws_ypixel=0}) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fff824f42a0) = -1 ENOTTY
(Inappropriate ioctl for device)
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
lseek(0, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
lseek(1, 0, SEEK_CUR) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fff824f4120) = -1 ENOTTY
(Inappropriate ioctl for device)
getsockname(1, 0x7fff824f41f0, [16]) = -1 ENOTSOCK (Socket operation on
non-socket)
lseek(2, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
fcntl(0, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
fcntl(0, F_SETFL, O_RDWR|O_NONBLOCK|O_LARGEFILE) = 0
fcntl(0, F_GETFL) = 0x8802 (flags
O_RDWR|O_NONBLOCK|O_LARGEFILE)
ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
fcntl(2, F_GETFL) = 0x8802 (flags
O_RDWR|O_NONBLOCK|O_LARGEFILE)
fcntl(2, F_SETFL, O_RDWR|O_NONBLOCK|O_LARGEFILE) = 0
fcntl(2, F_GETFL) = 0x8802 (flags
O_RDWR|O_NONBLOCK|O_LARGEFILE)
fcntl(5, F_SETFD, FD_CLOEXEC) = 0
fcntl(5, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
fcntl(5, F_SETFL, O_RDWR|O_NONBLOCK|O_LARGEFILE) = 0
fcntl(5, F_GETFL) = 0x8802 (flags
O_RDWR|O_NONBLOCK|O_LARGEFILE)
rt_sigaction(SIGINT, {0x367741a760, [INT], SA_RESTORER|SA_RESTART,
0x3f576302d0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTERM, {0x367741a760, [TERM], SA_RESTORER|SA_RESTART,
0x3f576302d0}, {SIG_DFL, [], 0}, 8) = 0
open("/usr/lib/expect5.43/expect.rc", O_RDONLY) = -1 ENOENT (No such file
or directory)
open("/COMPANY/site_home/USER/.expect.rc", O_RDONLY) = -1 ENOENT (No such
file or directory)
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/libexec", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/libexec/rancid", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/libexec/rancid/hlogin", {st_mode=S_IFREG|0755, st_size=22702,
...}) = 0
open("/usr/libexec/rancid/hlogin", O_RDONLY) = 6
fcntl(6, F_SETFD, FD_CLOEXEC) = 0
ioctl(6, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fff824f4020) = -1 ENOTTY
(Inappropriate ioctl for device)
read(6, "#! /usr/bin/expect --\n##\n## $Id:"..., 4096) = 4096
read(6, " # This uses \"id\" which I think "..., 4096) = 4096
read(6, "# This is a helper function to m"..., 4096) = 4096
read(6, ";\n\t if !$progs {\n\t\tsend_user "..., 4096) = 4096
read(6, "\t\t\t\t\t catch {send \" \"};\n\t\t\t\t\t "..., 4096) = 4096
brk(0x1464c000) = 0x1464c000
brk(0x14648000) = 0x14648000
read(6, "ompt\" == \"\" } {\n\tset p_prompt \"("..., 4096) = 2222
read(6, "", 4096) = 0
close(6) = 0
lstat("/COMPANY", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat("/COMPANY/site_home", {st_mode=S_IFDIR|0755, st_size=118784, ...}) = 0
lstat("/COMPANY/site_home/USER", {st_mode=S_IFDIR|S_ISGID|0750,
st_size=4096, ...}) = 0
access("/COMPANY/site_home/USER/.cloginrc", F_OK) = 0
stat("/COMPANY/site_home/USER/.cloginrc", {st_mode=S_IFREG|0600,
st_size=130, ...}) = 0
stat("/COMPANY/site_home/USER/.cloginrc", {st_mode=S_IFREG|0600,
st_size=130, ...}) = 0
open("/COMPANY/site_home/USER/.cloginrc", O_RDONLY) = 6
fcntl(6, F_SETFD, FD_CLOEXEC) = 0
ioctl(6, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fff824f30f0) = -1 ENOTTY
(Inappropriate ioctl for device)
read(6, "add method * ssh\nadd user * test"..., 4096) = 130
read(6, "", 4096) = 0
close(6) = 0
brk(0x1466c000) = 0x1466c000
write(1, "HOSTNAME\n", 9) = 9
brk(0x14690000) = 0x14690000
write(1, "spawn", 5) = 5
write(1, " ", 1) = 1
write(1, "hpuifilter", 10) = 10
write(1, " ", 1) = 1
write(1, "--", 2) = 2
write(1, " ", 1) = 1
write(1, "ssh", 3) = 3
write(1, " ", 1) = 1
write(1, "-i", 2) = 2
write(1, " ", 1) = 1
write(1, "/COMPANY/site_home/USER/.ssh"..., 39) = 39
write(1, " ", 1) = 1
write(1, "-c", 2) = 2
write(1, " ", 1) = 1
write(1, "3des", 4) = 4
write(1, " ", 1) = 1
write(1, "-x", 2) = 2
write(1, " ", 1) = 1
write(1, "-l", 2) = 2
write(1, " ", 1) = 1
write(1, "test", 4) = 4
write(1, " ", 1) = 1
write(1, "HOSTNAME", 8) = 8
write(1, "\r\n", 2) = 2
open("/dev/ptmx", O_RDWR) = 6
statfs("/dev/pts", {f_type="DEVPTS_SUPER_MAGIC", f_bsize=4096, f_blocks=0,
f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0, 0}, f_namelen0
ioctl(6, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
ioctl(6, TIOCGPTN, [3]) = 0
stat("/dev/pts/3", {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 3), ...}) = 0
statfs("/dev/pts/3", {f_type="DEVPTS_SUPER_MAGIC", f_bsize=4096,
f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0, 0},
f_namel0
ioctl(6, TIOCSPTLCK, [0]) = 0
ioctl(6, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
ioctl(6, TIOCGPTN, [3]) = 0
stat("/dev/pts/3", {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 3), ...}) = 0
open("/dev/pts/3", O_RDWR|O_NOCTTY) = 7
ioctl(7, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
readlink("/proc/self/fd/7", "/dev/pts/3"..., 4095) = 10
close(7) = 0
fcntl(6, F_SETFD, FD_CLOEXEC) = 0
pipe([7, 8]) = 0
pipe([9, 10]) = 0
pipe([11, 12]) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x2ac42985b820) = 6258
close(8) = 0
close(9) = 0
close(12) = 0
fcntl(6, F_SETFD, FD_CLOEXEC) = 0
fcntl(6, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
fcntl(6, F_SETFL, O_RDWR|O_NONBLOCK|O_LARGEFILE) = 0
fcntl(6, F_GETFL) = 0x8802 (flags
O_RDWR|O_NONBLOCK|O_LARGEFILE)
read(7, " ", 1) = 1
write(10, " ", 1) = 1
close(7) = 0
close(10) = 0
read(11, "", 4) = 0
close(11) = 0
clock_gettime(CLOCK_REALTIME, {1327052097, 956733000}) = 0
futex(0x14673f44, FUTEX_WAIT_PRIVATE, 1, {0, 299932000}) = -1 ETIMEDOUT
(Connection timed out)
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 0
brk(0x146b4000) = 0x146b4000
brk(0x146d8000) = 0x146d8000
brk(0x146fa000) = 0x146fa000
brk(0x146f4000) = 0x146f4000
write(4, "\0", 1) = 1
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 1
clock_gettime(CLOCK_REALTIME, {1327052098, 261705000}) = 0
futex(0x14673f44, FUTEX_WAIT_PRIVATE, 3, {44, 999845000}) = 0
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 0
read(6, "We'd like to keep you up to date"..., 4096) = 42
write(1, "We'd like to keep you up to date"..., 42) = 42
write(4, "\0", 1) = 1
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 1
clock_gettime(CLOCK_REALTIME, {1327052099, 489667000}) = 0
futex(0x14673f44, FUTEX_WAIT_PRIVATE, 5, {43, 999847000}) = 0
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 0
read(6, " * Software feature updates\r\r\n", 4096) = 31
write(1, " * Software feature updates\r\r\n", 31) = 31
brk(0x14716000) = 0x14716000
brk(0x14704000) = 0x14704000
write(4, "\0", 1) = 1
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 1
clock_gettime(CLOCK_REALTIME, {1327052099, 490805000}) = 0
futex(0x14673f44, FUTEX_WAIT_PRIVATE, 7, {43, 999849000}) = 0
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 0
read(6, " * New product announcements\r\r\n", 4096) = 32
write(1, " * New product announcements\r\r\n", 32) = 32
write(4, "\0", 1) = 1
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 1
clock_gettime(CLOCK_REALTIME, {1327052099, 491718000}) = 0
futex(0x14673f44, FUTEX_WAIT_PRIVATE, 9, {43, 999851000}) = 0
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 0
read(6, " * Special events\r\r\n", 4096) = 21
write(1, " * Special events\r\r\n", 21) = 21
write(4, "\0", 1) = 1
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 1
clock_gettime(CLOCK_REALTIME, {1327052099, 492653000}) = 0
futex(0x14673f44, FUTEX_WAIT_PRIVATE, 11, {43, 999812000}) = 0
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 0
read(6, "\r\r\n", 4096) = 3
write(1, "\r\r\n", 3) = 3
write(4, "\0", 1) = 1
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 1
clock_gettime(CLOCK_REALTIME, {1327052099, 493894000}) = 0
futex(0x14673f44, FUTEX_WAIT_PRIVATE, 13, {43, 999803000}) = 0
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 0
read(6, "Please register your products no"..., 4096) = 58
write(1, "Please register your products no"..., 58) = 58
write(4, "\0", 1) = 1
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 1
clock_gettime(CLOCK_REALTIME, {1327052099, 494800000}) = 0
futex(0x14673f44, FUTEX_WAIT_PRIVATE, 15, {43, 999851000}) = 0
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 0
read(6, "\r\r\n", 4096) = 3
write(1, "\r\r\n", 3) = 3
write(4, "\0", 1) = 1
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 1
clock_gettime(CLOCK_REALTIME, {1327052099, 495717000}) = 0
futex(0x14673f44, FUTEX_WAIT_PRIVATE, 17, {43, 999851000}) = 0
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 0
read(6, "\r\r\n", 4096) = 3
write(1, "\r\r\n", 3) = 3
write(4, "\0", 1) = 1
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 1
clock_gettime(CLOCK_REALTIME, {1327052099, 496640000}) = 0
futex(0x14673f44, FUTEX_WAIT_PRIVATE, 19, {43, 999851000}) = 0
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 0
read(6, "ProCurve J8697A Switch 5406zl\r\r\r"..., 4096) = 279
write(1, "ProCurve J8697A Switch 5406zl\r\r\r"..., 279) = 279
write(4, "\0", 1) = 1
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 1
clock_gettime(CLOCK_REALTIME, {1327052099, 750560000}) = 0
futex(0x14673f40, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x14673f44, FUTEX_WAIT_PRIVATE, 21, {43, 999800000}) = -1 EAGAIN
(Resource temporarily unavailable)
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 0
read(6, " as set forth in subdivision (b)"..., 4096) = 204
write(1, " as set forth in subdivision (b)"..., 204) = 204
write(4, "\0", 1) = 1
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 1
clock_gettime(CLOCK_REALTIME, {1327052099, 751914000}) = 0
futex(0x14673f44, FUTEX_WAIT_PRIVATE, 23, {43, 999807000}) = 0
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 0
read(6, "Press any key to continue", 4096) = 25
write(1, "Press any key to continue", 25) = 25
write(6, " ", 1) = 1
write(4, "\0", 1) = 1
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 1
clock_gettime(CLOCK_REALTIME, {1327052099, 950814000}) = 0
futex(0x14673f44, FUTEX_WAIT_PRIVATE, 25, {44, 999808000}) = 0
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 0
read(6, "HOSTNAME# ", 4096) = 10
write(1, "HOSTNAME# ", 10) = 10
write(4, "\0", 1) = 1
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 1
clock_gettime(CLOCK_REALTIME, {1327052099, 969335000}) = 0
futex(0x14673f44, FUTEX_WAIT_PRIVATE, 27, {44, 999848000}
) = -1 ETIMEDOUT (Connection timed out)
write(4, "\0", 1) = 1
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 1
write(1, "\nError: TIMEOUT reached\n", 24) = 24
fcntl(6, F_GETFL) = 0x8802 (flags
O_RDWR|O_NONBLOCK|O_LARGEFILE)
fcntl(6, F_SETFL, O_RDWR|O_LARGEFILE) = 0
fcntl(6, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
write(6, "", 0) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({1, 0}, {1, 0}) = 0
close(6) = 0
open("/dev/null", O_RDONLY) = 6
fcntl(6, F_SETFD, FD_CLOEXEC) = 0
wait4(6258, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6258
ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
fcntl(5, F_GETFL) = 0x8802 (flags
O_RDWR|O_NONBLOCK|O_LARGEFILE)
fcntl(5, F_SETFL, O_RDWR|O_LARGEFILE) = 0
fcntl(5, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
close(5) = 0
open("/dev/null", O_RDONLY) = 5
fcntl(5, F_SETFD, FD_CLOEXEC) = 0
fcntl(2, F_GETFL) = 0x8802 (flags
O_RDWR|O_NONBLOCK|O_LARGEFILE)
fcntl(2, F_SETFL, O_RDWR|O_LARGEFILE) = 0
fcntl(2, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
close(2) = 0
open("/dev/null", O_RDONLY) = 2
fcntl(2, F_SETFD, FD_CLOEXEC) = 0
fcntl(0, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
fcntl(0, F_SETFL, O_RDWR|O_LARGEFILE) = 0
fcntl(0, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
write(1, "", 0) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({1, 0}, {1, 0}) = 0
close(0) = 0
close(1) = 0
open("/dev/null", O_RDONLY) = 0
fcntl(0, F_SETFD, FD_CLOEXEC) = 0
fcntl(6, F_GETFL) = 0x8000 (flags
O_RDONLY|O_LARGEFILE)
fcntl(6, F_SETFL, O_RDONLY|O_LARGEFILE) = 0
fcntl(6, F_GETFL) = 0x8000 (flags
O_RDONLY|O_LARGEFILE)
write(6, "", 0) = -1 EBADF (Bad file descriptor)
close(6) = 0
write(4, "q", 1) = 1
close(4) = 0
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x145c1920, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x145c1924, FUTEX_WAIT_PRIVATE, 3, NULL) = -1 EAGAIN (Resource
temporarily unavailable)
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 0
exit_group(1) = ?
---3---

It seems to complain about some files missing:
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
open("/lib64/tls/x86_64/libexpect5.43.so", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat("/lib64/tls/x86_64", 0x7fff824f3880) = -1 ENOENT (No such file or
directory)
open("/lib64/tls/libexpect5.43.so", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat("/lib64/tls", 0x7fff824f3880) = -1 ENOENT (No such file or
directory)
open("/lib64/x86_64/libexpect5.43.so", O_RDONLY) = -1 ENOENT (No such file
or directory)
stat("/lib64/x86_64", 0x7fff824f3880) = -1 ENOENT (No such file or
directory)
open("/lib64/libexpect5.43.so", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/usr/lib64/tls/x86_64/libexpect5.43.so", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat("/usr/lib64/tls/x86_64", 0x7fff824f3880) = -1 ENOENT (No such file or
directory)
open("/usr/lib64/tls/libexpect5.43.so", O_RDONLY) = -1 ENOENT (No such file
or directory)
open("/usr/lib64/x86_64/libexpect5.43.so", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat("/usr/lib64/x86_64", 0x7fff824f3880) = -1 ENOENT (No such file or
directory)
open("/usr/lib/expect5.43/expect.rc", O_RDONLY) = -1 ENOENT (No such file
or directory)
open("/COMPANY/site_home/USER/.expect.rc", O_RDONLY) = -1 ENOENT (No such
file or directory)

-bash-3.2$ locate expect
/usr/bin/autoexpect
/usr/bin/expect
/usr/lib/expect5.43
/usr/lib/libexpect5.43.so
/usr/lib/expect5.43/cat-buffers
/usr/lib/expect5.43/pkgIndex.tcl
/usr/lib64/expect5.43
/usr/lib64/libexpect5.43.so
/usr/lib64/expect5.43/cat-buffers
/usr/lib64/expect5.43/pkgIndex.tcl
/usr/share/man/man1/autoexpect.1.gz
/usr/share/man/man1/expect.1.gz
/usr/share/man/overrides/man1/expect.1.gz
/usr/share/vim/vim70/syntax/expect.vim

Just installed rancid from yum on RHEL5.7 64 bit - what could I have done
wrong... ?
Urgent - Please can anyone help...?


Thanks in advance :-) !

~maymann
Post by Michael Maymann
Post by Michael Maymann
Hi Shouldbe,
tried to change "show system-information" -> "show system" to hrancid but
hlogin -c "sh ver" <HOSTNAME>
is "hanging"...
1. trying to use hlogin with ssh-key-share (add identity * id_rsa)
configured to .cloginrc is still giving an error about password is
missing
Post by Michael Maymann
(password-lessly)...
2. hlogin is "hanging" also if I use username/password directly in
.cloginrc
Post by Michael Maymann
and even if I make the modifications to hrancid (stated above...)
Am I using this wrong somehow, as it works for you...?
Shouldbe: can you provide your .cloginrc and a tar of rancid-bin-dir
(where
Post by Michael Maymann
hlogin/hrancid etc is located)... and perhaps give examples of how you
use
Post by Michael Maymann
the tool to run commands on HP ProCurve equipment.
Heasley: is this an easy/quick fix or can you recommend anything else
that
Post by Michael Maymann
is working with both HP ProCurve and Cisco equipment... ?
Thanks in advance :-) !
~maymann
I've attached a copy of hrancid, and what we "see" via ViewVC on the rancid box
I've had to slightly sanitise the output...
Michael Maymann
2012-01-23 08:27:41 UTC
Permalink
Rather urgent...
Help is much appreciated...:-)

~maymann
Post by Michael Maymann
Hi,
Thanks shouldbe, but that didn't help either...:-(
---1---.cloginrc
-bash-3.2$ cat .cloginrc
add method * ssh
add user * USER
add identity * /COMPANY/site_home/USER/.ssh/id_rsa
add password HOSTNAME {PASSWORD} {PASSWORD}
---1---
---2---just standard output
-bash-3.2$ /usr/libexec/rancid/hlogin -c "sh ver" HOSTNAME
HOSTNAME
spawn hpuifilter -- ssh -i PATH_TO/.ssh/id_rsa -c 3des -x -l test HOSTNAME
* Software feature updates
* New product announcements
* Special events
Please register your products now at: www.ProCurve.com
ProCurve J8697A Switch 5406zl
Software revision K.15.02.0005
Copyright (C) 1991-2010 Hewlett-Packard Co. All Rights Reserved.
RESTRICTED RIGHTS LEGEND
Use, duplication, or disclosure by the Government is subject to
restrictions
as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data
and
Computer Software clause at 52.227-7013.
HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303
Press any key to continueHOSTNAME#...I PRESS <ENTER> HERE...
Error: TIMEOUT reached
---2---
---3---strace output
("/usr/libexec/rancid/hlogin", ["/usr/libexec/rancid/hlogin", "-c", "sh
ver", "HOSTNAME"], [/* 18 vars */]) = 0
brk(0) = 0x145bd000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x2ac42984f000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x2ac429850000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=32295, ...}) = 0
mmap(NULL, 32295, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2ac429851000
close(3) = 0
open("/lib64/tls/x86_64/libexpect5.43.so", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat("/lib64/tls/x86_64", 0x7fff824f3880) = -1 ENOENT (No such file or
directory)
open("/lib64/tls/libexpect5.43.so", O_RDONLY) = -1 ENOENT (No such file
or directory)
stat("/lib64/tls", 0x7fff824f3880) = -1 ENOENT (No such file or
directory)
open("/lib64/x86_64/libexpect5.43.so", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat("/lib64/x86_64", 0x7fff824f3880) = -1 ENOENT (No such file or
directory)
open("/lib64/libexpect5.43.so", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat("/lib64", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/lib64/tls/x86_64/libexpect5.43.so", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat("/usr/lib64/tls/x86_64", 0x7fff824f3880) = -1 ENOENT (No such file or
directory)
open("/usr/lib64/tls/libexpect5.43.so", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat("/usr/lib64/tls", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/lib64/x86_64/libexpect5.43.so", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat("/usr/lib64/x86_64", 0x7fff824f3880) = -1 ENOENT (No such file or
directory)
open("/usr/lib64/libexpect5.43.so", O_RDONLY) = 3
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=180608, ...}) = 0
mmap(0x3677400000, 2287968, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3677400000
mprotect(0x3677429000, 2097152, PROT_NONE) = 0
mmap(0x3677629000, 12288, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x29000) = 0x3677629000
mmap(0x367762c000, 10592, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x367762c000
close(3) = 0
open("/usr/lib64/libtcl8.4.so", O_RDONLY) = 3
read(3,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000\22bZ?\0\0\0"..., 832) =
832
fstat(3, {st_mode=S_IFREG|0755, st_size=805656, ...}) = 0
mmap(0x3f5a600000, 2903528, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3f5a600000
mprotect(0x3f5a6bb000, 2093056, PROT_NONE) = 0
mmap(0x3f5a8ba000, 40960, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xba000) = 0x3f5a8ba000
mmap(0x3f5a8c4000, 3560, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3f5a8c4000
close(3) = 0
open("/lib64/libdl.so.2", O_RDONLY) = 3
read(3,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\16\240W?\0\0\0"..., 832)
= 832
fstat(3, {st_mode=S_IFREG|0755, st_size=23360, ...}) = 0
mmap(0x3f57a00000, 2109696, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3f57a00000
mprotect(0x3f57a02000, 2097152, PROT_NONE) = 0
mmap(0x3f57c02000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x3f57c02000
close(3) = 0
open("/lib64/libpthread.so.0", O_RDONLY) = 3
read(3,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240W\340W?\0\0\0"..., 832)
= 832
fstat(3, {st_mode=S_IFREG|0755, st_size=145824, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x2ac429859000
mmap(0x3f57e00000, 2204528, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3f57e00000
mprotect(0x3f57e16000, 2093056, PROT_NONE) = 0
mmap(0x3f58015000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15000) = 0x3f58015000
mmap(0x3f58017000, 13168, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3f58017000
close(3) = 0
open("/lib64/libm.so.6", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`>\240X?\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=615136, ...}) = 0
mmap(0x3f58a00000, 2629848, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3f58a00000
mprotect(0x3f58a82000, 2093056, PROT_NONE) = 0
mmap(0x3f58c81000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x81000) = 0x3f58c81000
close(3) = 0
open("/lib64/libutil.so.1", O_RDONLY) = 3
read(3,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\16\340Z?\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=18152, ...}) = 0
mmap(0x3f5ae00000, 2105616, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3f5ae00000
mprotect(0x3f5ae02000, 2093056, PROT_NONE) = 0
mmap(0x3f5b001000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x3f5b001000
close(3) = 0
open("/lib64/libc.so.6", O_RDONLY) = 3
read(3,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\332aW?\0\0\0"..., 832)
= 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1722304, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x2ac42985a000
mmap(0x3f57600000, 3502424, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3f57600000
mprotect(0x3f5774e000, 2097152, PROT_NONE) = 0
mmap(0x3f5794e000, 20480, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14e000) = 0x3f5794e000
mmap(0x3f57953000, 16728, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3f57953000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x2ac42985b000
arch_prctl(ARCH_SET_FS, 0x2ac42985b790) = 0
mprotect(0x3f57c02000, 4096, PROT_READ) = 0
mprotect(0x3f58015000, 4096, PROT_READ) = 0
mprotect(0x3f58c81000, 4096, PROT_READ) = 0
mprotect(0x3f5b001000, 4096, PROT_READ) = 0
mprotect(0x3f5794e000, 16384, PROT_READ) = 0
mprotect(0x3f5741c000, 4096, PROT_READ) = 0
munmap(0x2ac429851000, 32295) = 0
set_tid_address(0x2ac42985b820) = 6256
set_robust_list(0x2ac42985b830, 0x18) = 0
futex(0x7fff824f43cc, FUTEX_WAKE_PRIVATE, 1) = 0
rt_sigaction(SIGRTMIN, {0x3f57e05380, [], SA_RESTORER|SA_SIGINFO,
0x3f57e0eb70}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x3f57e052b0, [],
SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x3f57e0eb70}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=10240*1024, rlim_max=RLIM_INFINITY}) = 0
lseek(0, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
lseek(1, 0, SEEK_CUR) = 0
lseek(2, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
rt_sigaction(SIGPIPE, {0x1, [PIPE], SA_RESTORER|SA_RESTART, 0x3f576302d0},
{SIG_DFL, [], 0}, 8) = 0
brk(0) = 0x145bd000
brk(0x145de000) = 0x145de000
mmap(NULL, 10489856, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS|MAP_32BIT, -1, 0) = 0x40e28000
mprotect(0x40e28000, 4096, PROT_NONE) = 0
clone(child_stack=0x41828250,
flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLON7
futex(0x145c1924, FUTEX_WAIT_PRIVATE, 1, NULL) = 0
futex(0x145bdb30, FUTEX_WAIT_PRIVATE, 2, NULL) = 0
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 0
uname({sys="Linux", node="LINUXBOX", ...}) = 0
open("/usr/lib/locale/locale-archive", O_RDONLY) = 5
fstat(5, {st_mode=S_IFREG|0644, st_size=56459024, ...}) = 0
mmap(NULL, 56459024, PROT_READ, MAP_PRIVATE, 5, 0) = 0x2aaaaaaab000
close(5) = 0
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/lib", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
lstat("/usr/lib/tcl8.4", {st_mode=S_IFLNK|0777, st_size=17, ...}) = 0
readlink("/usr/lib/tcl8.4", "/usr/share/tcl8.4"..., 4096) = 17
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/share", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/share/tcl8.4", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/share/tcl8.4/encoding", {st_mode=S_IFDIR|0755, st_size=4096,
...}) = 0
open("/usr/share/tcl8.4/encoding/iso8859-1.enc", O_RDONLY) = 5
fcntl(5, F_SETFD, FD_CLOEXEC) = 0
ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fff824f39b0) = -1 ENOTTY
(Inappropriate ioctl for device)
brk(0x14600000) = 0x14600000
read(5, "# Encoding file: iso8859-1, sing"..., 4096) = 1094
read(5, "", 4096) = 0
close(5) = 0
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/share", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/share/tcl8.4", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
access("/usr/share/tcl8.4/init.tcl", F_OK) = 0
stat("/usr/share/tcl8.4/init.tcl", {st_mode=S_IFREG|0644, st_size=22674,
...}) = 0
open("/usr/share/tcl8.4/init.tcl", O_RDONLY) = 5
fcntl(5, F_SETFD, FD_CLOEXEC) = 0
ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fff824f2fe0) = -1 ENOTTY
(Inappropriate ioctl for device)
read(5, "# init.tcl --\n#\n# Default system"..., 4096) = 4096
read(5, " the following steps to make the"..., 4096) = 4096
read(5, "in \\\"unknown\\\"\" {} \\\n\t\t\t[list CO"..., 4096) = 4096
read(5, "guments: \n# None.\n\nproc auto_loa"..., 4096) = 4096
read(5, " namespace eval :: "..., 4096) = 4096
read(5, " give a more precise\n\t# error me"..., 4096) = 2194
read(5, "", 4096) = 0
close(5) = 0
brk(0x14624000) = 0x14624000
open("/dev/tty", O_RDWR) = 5
ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
ioctl(5, TIOCGWINSZ, {ws_row=33, ws_col=145, ws_xpixel=0, ws_ypixel=0}) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fff824f42a0) = -1 ENOTTY
(Inappropriate ioctl for device)
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
lseek(0, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
lseek(1, 0, SEEK_CUR) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fff824f4120) = -1 ENOTTY
(Inappropriate ioctl for device)
getsockname(1, 0x7fff824f41f0, [16]) = -1 ENOTSOCK (Socket operation on
non-socket)
lseek(2, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
fcntl(0, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
fcntl(0, F_SETFL, O_RDWR|O_NONBLOCK|O_LARGEFILE) = 0
fcntl(0, F_GETFL) = 0x8802 (flags
O_RDWR|O_NONBLOCK|O_LARGEFILE)
ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
fcntl(2, F_GETFL) = 0x8802 (flags
O_RDWR|O_NONBLOCK|O_LARGEFILE)
fcntl(2, F_SETFL, O_RDWR|O_NONBLOCK|O_LARGEFILE) = 0
fcntl(2, F_GETFL) = 0x8802 (flags
O_RDWR|O_NONBLOCK|O_LARGEFILE)
fcntl(5, F_SETFD, FD_CLOEXEC) = 0
fcntl(5, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
fcntl(5, F_SETFL, O_RDWR|O_NONBLOCK|O_LARGEFILE) = 0
fcntl(5, F_GETFL) = 0x8802 (flags
O_RDWR|O_NONBLOCK|O_LARGEFILE)
rt_sigaction(SIGINT, {0x367741a760, [INT], SA_RESTORER|SA_RESTART,
0x3f576302d0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTERM, {0x367741a760, [TERM], SA_RESTORER|SA_RESTART,
0x3f576302d0}, {SIG_DFL, [], 0}, 8) = 0
open("/usr/lib/expect5.43/expect.rc", O_RDONLY) = -1 ENOENT (No such file
or directory)
open("/COMPANY/site_home/USER/.expect.rc", O_RDONLY) = -1 ENOENT (No such
file or directory)
lstat("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/libexec", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/libexec/rancid", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/usr/libexec/rancid/hlogin", {st_mode=S_IFREG|0755, st_size=22702,
...}) = 0
open("/usr/libexec/rancid/hlogin", O_RDONLY) = 6
fcntl(6, F_SETFD, FD_CLOEXEC) = 0
ioctl(6, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fff824f4020) = -1 ENOTTY
(Inappropriate ioctl for device)
read(6, "#! /usr/bin/expect --\n##\n## $Id:"..., 4096) = 4096
read(6, " # This uses \"id\" which I think "..., 4096) = 4096
read(6, "# This is a helper function to m"..., 4096) = 4096
read(6, ";\n\t if !$progs {\n\t\tsend_user "..., 4096) = 4096
read(6, "\t\t\t\t\t catch {send \" \"};\n\t\t\t\t\t "..., 4096) = 4096
brk(0x1464c000) = 0x1464c000
brk(0x14648000) = 0x14648000
read(6, "ompt\" == \"\" } {\n\tset p_prompt \"("..., 4096) = 2222
read(6, "", 4096) = 0
close(6) = 0
lstat("/COMPANY", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat("/COMPANY/site_home", {st_mode=S_IFDIR|0755, st_size=118784, ...}) = 0
lstat("/COMPANY/site_home/USER", {st_mode=S_IFDIR|S_ISGID|0750,
st_size=4096, ...}) = 0
access("/COMPANY/site_home/USER/.cloginrc", F_OK) = 0
stat("/COMPANY/site_home/USER/.cloginrc", {st_mode=S_IFREG|0600,
st_size=130, ...}) = 0
stat("/COMPANY/site_home/USER/.cloginrc", {st_mode=S_IFREG|0600,
st_size=130, ...}) = 0
open("/COMPANY/site_home/USER/.cloginrc", O_RDONLY) = 6
fcntl(6, F_SETFD, FD_CLOEXEC) = 0
ioctl(6, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fff824f30f0) = -1 ENOTTY
(Inappropriate ioctl for device)
read(6, "add method * ssh\nadd user * test"..., 4096) = 130
read(6, "", 4096) = 0
close(6) = 0
brk(0x1466c000) = 0x1466c000
write(1, "HOSTNAME\n", 9) = 9
brk(0x14690000) = 0x14690000
write(1, "spawn", 5) = 5
write(1, " ", 1) = 1
write(1, "hpuifilter", 10) = 10
write(1, " ", 1) = 1
write(1, "--", 2) = 2
write(1, " ", 1) = 1
write(1, "ssh", 3) = 3
write(1, " ", 1) = 1
write(1, "-i", 2) = 2
write(1, " ", 1) = 1
write(1, "/COMPANY/site_home/USER/.ssh"..., 39) = 39
write(1, " ", 1) = 1
write(1, "-c", 2) = 2
write(1, " ", 1) = 1
write(1, "3des", 4) = 4
write(1, " ", 1) = 1
write(1, "-x", 2) = 2
write(1, " ", 1) = 1
write(1, "-l", 2) = 2
write(1, " ", 1) = 1
write(1, "test", 4) = 4
write(1, " ", 1) = 1
write(1, "HOSTNAME", 8) = 8
write(1, "\r\n", 2) = 2
open("/dev/ptmx", O_RDWR) = 6
statfs("/dev/pts", {f_type="DEVPTS_SUPER_MAGIC", f_bsize=4096, f_blocks=0,
f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0, 0}, f_namelen0
ioctl(6, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
ioctl(6, TIOCGPTN, [3]) = 0
stat("/dev/pts/3", {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 3), ...}) = 0
statfs("/dev/pts/3", {f_type="DEVPTS_SUPER_MAGIC", f_bsize=4096,
f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0, 0},
f_namel0
ioctl(6, TIOCSPTLCK, [0]) = 0
ioctl(6, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
ioctl(6, TIOCGPTN, [3]) = 0
stat("/dev/pts/3", {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 3), ...}) = 0
open("/dev/pts/3", O_RDWR|O_NOCTTY) = 7
ioctl(7, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
readlink("/proc/self/fd/7", "/dev/pts/3"..., 4095) = 10
close(7) = 0
fcntl(6, F_SETFD, FD_CLOEXEC) = 0
pipe([7, 8]) = 0
pipe([9, 10]) = 0
pipe([11, 12]) = 0
clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x2ac42985b820) = 6258
close(8) = 0
close(9) = 0
close(12) = 0
fcntl(6, F_SETFD, FD_CLOEXEC) = 0
fcntl(6, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
fcntl(6, F_SETFL, O_RDWR|O_NONBLOCK|O_LARGEFILE) = 0
fcntl(6, F_GETFL) = 0x8802 (flags
O_RDWR|O_NONBLOCK|O_LARGEFILE)
read(7, " ", 1) = 1
write(10, " ", 1) = 1
close(7) = 0
close(10) = 0
read(11, "", 4) = 0
close(11) = 0
clock_gettime(CLOCK_REALTIME, {1327052097, 956733000}) = 0
futex(0x14673f44, FUTEX_WAIT_PRIVATE, 1, {0, 299932000}) = -1 ETIMEDOUT
(Connection timed out)
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 0
brk(0x146b4000) = 0x146b4000
brk(0x146d8000) = 0x146d8000
brk(0x146fa000) = 0x146fa000
brk(0x146f4000) = 0x146f4000
write(4, "\0", 1) = 1
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 1
clock_gettime(CLOCK_REALTIME, {1327052098, 261705000}) = 0
futex(0x14673f44, FUTEX_WAIT_PRIVATE, 3, {44, 999845000}) = 0
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 0
read(6, "We'd like to keep you up to date"..., 4096) = 42
write(1, "We'd like to keep you up to date"..., 42) = 42
write(4, "\0", 1) = 1
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 1
clock_gettime(CLOCK_REALTIME, {1327052099, 489667000}) = 0
futex(0x14673f44, FUTEX_WAIT_PRIVATE, 5, {43, 999847000}) = 0
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 0
read(6, " * Software feature updates\r\r\n", 4096) = 31
write(1, " * Software feature updates\r\r\n", 31) = 31
brk(0x14716000) = 0x14716000
brk(0x14704000) = 0x14704000
write(4, "\0", 1) = 1
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 1
clock_gettime(CLOCK_REALTIME, {1327052099, 490805000}) = 0
futex(0x14673f44, FUTEX_WAIT_PRIVATE, 7, {43, 999849000}) = 0
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 0
read(6, " * New product announcements\r\r\n", 4096) = 32
write(1, " * New product announcements\r\r\n", 32) = 32
write(4, "\0", 1) = 1
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 1
clock_gettime(CLOCK_REALTIME, {1327052099, 491718000}) = 0
futex(0x14673f44, FUTEX_WAIT_PRIVATE, 9, {43, 999851000}) = 0
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 0
read(6, " * Special events\r\r\n", 4096) = 21
write(1, " * Special events\r\r\n", 21) = 21
write(4, "\0", 1) = 1
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 1
clock_gettime(CLOCK_REALTIME, {1327052099, 492653000}) = 0
futex(0x14673f44, FUTEX_WAIT_PRIVATE, 11, {43, 999812000}) = 0
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 0
read(6, "\r\r\n", 4096) = 3
write(1, "\r\r\n", 3) = 3
write(4, "\0", 1) = 1
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 1
clock_gettime(CLOCK_REALTIME, {1327052099, 493894000}) = 0
futex(0x14673f44, FUTEX_WAIT_PRIVATE, 13, {43, 999803000}) = 0
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 0
read(6, "Please register your products no"..., 4096) = 58
write(1, "Please register your products no"..., 58) = 58
write(4, "\0", 1) = 1
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 1
clock_gettime(CLOCK_REALTIME, {1327052099, 494800000}) = 0
futex(0x14673f44, FUTEX_WAIT_PRIVATE, 15, {43, 999851000}) = 0
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 0
read(6, "\r\r\n", 4096) = 3
write(1, "\r\r\n", 3) = 3
write(4, "\0", 1) = 1
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 1
clock_gettime(CLOCK_REALTIME, {1327052099, 495717000}) = 0
futex(0x14673f44, FUTEX_WAIT_PRIVATE, 17, {43, 999851000}) = 0
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 0
read(6, "\r\r\n", 4096) = 3
write(1, "\r\r\n", 3) = 3
write(4, "\0", 1) = 1
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 1
clock_gettime(CLOCK_REALTIME, {1327052099, 496640000}) = 0
futex(0x14673f44, FUTEX_WAIT_PRIVATE, 19, {43, 999851000}) = 0
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 0
read(6, "ProCurve J8697A Switch 5406zl\r\r\r"..., 4096) = 279
write(1, "ProCurve J8697A Switch 5406zl\r\r\r"..., 279) = 279
write(4, "\0", 1) = 1
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 1
clock_gettime(CLOCK_REALTIME, {1327052099, 750560000}) = 0
futex(0x14673f40, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x14673f44, FUTEX_WAIT_PRIVATE, 21, {43, 999800000}) = -1 EAGAIN
(Resource temporarily unavailable)
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 0
read(6, " as set forth in subdivision (b)"..., 4096) = 204
write(1, " as set forth in subdivision (b)"..., 204) = 204
write(4, "\0", 1) = 1
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 1
clock_gettime(CLOCK_REALTIME, {1327052099, 751914000}) = 0
futex(0x14673f44, FUTEX_WAIT_PRIVATE, 23, {43, 999807000}) = 0
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 0
read(6, "Press any key to continue", 4096) = 25
write(1, "Press any key to continue", 25) = 25
write(6, " ", 1) = 1
write(4, "\0", 1) = 1
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 1
clock_gettime(CLOCK_REALTIME, {1327052099, 950814000}) = 0
futex(0x14673f44, FUTEX_WAIT_PRIVATE, 25, {44, 999808000}) = 0
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 0
read(6, "HOSTNAME# ", 4096) = 10
write(1, "HOSTNAME# ", 10) = 10
write(4, "\0", 1) = 1
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 1
clock_gettime(CLOCK_REALTIME, {1327052099, 969335000}) = 0
futex(0x14673f44, FUTEX_WAIT_PRIVATE, 27, {44, 999848000}
) = -1 ETIMEDOUT (Connection timed out)
write(4, "\0", 1) = 1
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 1
write(1, "\nError: TIMEOUT reached\n", 24) = 24
fcntl(6, F_GETFL) = 0x8802 (flags
O_RDWR|O_NONBLOCK|O_LARGEFILE)
fcntl(6, F_SETFL, O_RDWR|O_LARGEFILE) = 0
fcntl(6, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
write(6, "", 0) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({1, 0}, {1, 0}) = 0
close(6) = 0
open("/dev/null", O_RDONLY) = 6
fcntl(6, F_SETFD, FD_CLOEXEC) = 0
wait4(6258, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6258
ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo
...}) = 0
fcntl(5, F_GETFL) = 0x8802 (flags
O_RDWR|O_NONBLOCK|O_LARGEFILE)
fcntl(5, F_SETFL, O_RDWR|O_LARGEFILE) = 0
fcntl(5, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
close(5) = 0
open("/dev/null", O_RDONLY) = 5
fcntl(5, F_SETFD, FD_CLOEXEC) = 0
fcntl(2, F_GETFL) = 0x8802 (flags
O_RDWR|O_NONBLOCK|O_LARGEFILE)
fcntl(2, F_SETFL, O_RDWR|O_LARGEFILE) = 0
fcntl(2, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
close(2) = 0
open("/dev/null", O_RDONLY) = 2
fcntl(2, F_SETFD, FD_CLOEXEC) = 0
fcntl(0, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
fcntl(0, F_SETFL, O_RDWR|O_LARGEFILE) = 0
fcntl(0, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
write(1, "", 0) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({1, 0}, {1, 0}) = 0
close(0) = 0
close(1) = 0
open("/dev/null", O_RDONLY) = 0
fcntl(0, F_SETFD, FD_CLOEXEC) = 0
fcntl(6, F_GETFL) = 0x8000 (flags
O_RDONLY|O_LARGEFILE)
fcntl(6, F_SETFL, O_RDONLY|O_LARGEFILE) = 0
fcntl(6, F_GETFL) = 0x8000 (flags
O_RDONLY|O_LARGEFILE)
write(6, "", 0) = -1 EBADF (Bad file descriptor)
close(6) = 0
write(4, "q", 1) = 1
close(4) = 0
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x145c1920, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x145c1924, FUTEX_WAIT_PRIVATE, 3, NULL) = -1 EAGAIN (Resource
temporarily unavailable)
futex(0x145bdb30, FUTEX_WAKE_PRIVATE, 1) = 0
exit_group(1) = ?
---3---
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
open("/lib64/tls/x86_64/libexpect5.43.so", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat("/lib64/tls/x86_64", 0x7fff824f3880) = -1 ENOENT (No such file or
directory)
open("/lib64/tls/libexpect5.43.so", O_RDONLY) = -1 ENOENT (No such file
or directory)
stat("/lib64/tls", 0x7fff824f3880) = -1 ENOENT (No such file or
directory)
open("/lib64/x86_64/libexpect5.43.so", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat("/lib64/x86_64", 0x7fff824f3880) = -1 ENOENT (No such file or
directory)
open("/lib64/libexpect5.43.so", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/usr/lib64/tls/x86_64/libexpect5.43.so", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat("/usr/lib64/tls/x86_64", 0x7fff824f3880) = -1 ENOENT (No such file or
directory)
open("/usr/lib64/tls/libexpect5.43.so", O_RDONLY) = -1 ENOENT (No such
file or directory)
open("/usr/lib64/x86_64/libexpect5.43.so", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat("/usr/lib64/x86_64", 0x7fff824f3880) = -1 ENOENT (No such file or
directory)
open("/usr/lib/expect5.43/expect.rc", O_RDONLY) = -1 ENOENT (No such file
or directory)
open("/COMPANY/site_home/USER/.expect.rc", O_RDONLY) = -1 ENOENT (No such
file or directory)
-bash-3.2$ locate expect
/usr/bin/autoexpect
/usr/bin/expect
/usr/lib/expect5.43
/usr/lib/libexpect5.43.so
/usr/lib/expect5.43/cat-buffers
/usr/lib/expect5.43/pkgIndex.tcl
/usr/lib64/expect5.43
/usr/lib64/libexpect5.43.so
/usr/lib64/expect5.43/cat-buffers
/usr/lib64/expect5.43/pkgIndex.tcl
/usr/share/man/man1/autoexpect.1.gz
/usr/share/man/man1/expect.1.gz
/usr/share/man/overrides/man1/expect.1.gz
/usr/share/vim/vim70/syntax/expect.vim
Just installed rancid from yum on RHEL5.7 64 bit - what could I have done
wrong... ?
Urgent - Please can anyone help...?
Thanks in advance :-) !
~maymann
Post by Michael Maymann
Post by Michael Maymann
Hi Shouldbe,
tried to change "show system-information" -> "show system" to hrancid
but
Post by Michael Maymann
hlogin -c "sh ver" <HOSTNAME>
is "hanging"...
1. trying to use hlogin with ssh-key-share (add identity * id_rsa)
configured to .cloginrc is still giving an error about password is
missing
Post by Michael Maymann
(password-lessly)...
2. hlogin is "hanging" also if I use username/password directly in
.cloginrc
Post by Michael Maymann
and even if I make the modifications to hrancid (stated above...)
Am I using this wrong somehow, as it works for you...?
Shouldbe: can you provide your .cloginrc and a tar of rancid-bin-dir
(where
Post by Michael Maymann
hlogin/hrancid etc is located)... and perhaps give examples of how you
use
Post by Michael Maymann
the tool to run commands on HP ProCurve equipment.
Heasley: is this an easy/quick fix or can you recommend anything else
that
Post by Michael Maymann
is working with both HP ProCurve and Cisco equipment... ?
Thanks in advance :-) !
~maymann
I've attached a copy of hrancid, and what we "see" via ViewVC on the rancid box
I've had to slightly sanitise the output...
Tyler J. Wagner
2012-01-10 13:29:57 UTC
Permalink
Reading /usr/lib/rancid/bin/clogin, I don't see any intelligence for using
SSH keys. Sorry, if you want that, you'll have to add it. Patches would no
doubt be welcome.

Tyler
Post by Michael Maymann
Hi Tyler,
Thanks for your reply...:-) !
1. yes
2. no (clogin/hlogin requires a .cloginrc file with username/password to
run) - and my best bet is that this is what it uses currently... so no
ssh-keys using clogin/hlogin (from wither network user, root, rancid...).
Furthermore prompt is also "hanging" and it doesn't parse the -c "sh ver"
that works fine from normal ssh...
3. same as network user/root
So key-sharing is working fine... but don't know how to utilize it/bypass
.cloginrc in rancid...
Just hoping that there is a way... - would'nt like to manually edit scripts
every time i update Rancid... and I don't know expect that well either...:-) !
Thanks in advance :-) !
~maymann
Michael,
I've not tried using clogin/hlogin with SSH keys, but I know a great deal
1. Can you login with the SSH key using ssh as the root user?
2. Can you login with the SSH key using clogin as the root user?
3. What about as the rancid user?
Regards,
Tyler
Post by Michael Maymann
I'm running on rhel-5u7-x64.
Anyone...?
Thanks in advance :-)
~maymann
---
<HOSTNAME>
spawn hpuifilter -- ssh -c 3des -x -l <USR> <HOSTNAME>
* Software feature updates
* New product announcements
* Special events
Please register your products now at: www.ProCurve.com
<http://www.ProCurve.com>
Post by Michael Maymann
<http://www.ProCurve.com>
ProCurve J8697A Switch 5406zl
Software revision K.15.02.0005
Copyright (C) 1991-2010 Hewlett-Packard Co. All Rights Reserved.
RESTRICTED RIGHTS LEGEND
Use, duplication, or disclosure by the Government is subject to
restrictions
as set forth in subdivision (b) (3) (ii) of the Rights in Technical
Data and
Computer Software clause at 52.227-7013.
HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA
94303
Post by Michael Maymann
Press any key to continue<HOSTNAME>#
---
Just "hangs" there...
---
* Software feature updates
* New product announcements
* Special events
Please register your products now at: www.ProCurve.com
<http://www.ProCurve.com>
Post by Michael Maymann
<http://www.ProCurve.com>
ProCurve J8697A Switch 5406zl
Software revision K.15.02.0005
Copyright (C) 1991-2010 Hewlett-Packard Co. All Rights Reserved.
RESTRICTED RIGHTS LEGEND
Use, duplication, or disclosure by the Government is subject to
restrictions
as set forth in subdivision (b) (3) (ii) of the Rights in Technical
Data and
Computer Software clause at 52.227-7013.
HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA
94303
Post by Michael Maymann
Press any key to continue
<HOSTNAME># sh ver
Image stamp: /sw/code/build/btm(K_15_02)
Oct 20 2010 16:19:41
K.15.02.0005
121
Boot Image: Primary
<HOSTNAME># logout
Do you want to log out [y/n]? y
Connection to <HOSTNAME> closed.
---
So SSH is working fine...
I'm running Rancid 2.3.6... hlogin=$Id: hlogin.in
<http://hlogin.in> <http://hlogin.in>
Post by Michael Maymann
2251 2010-10-01 19:26:36Z heas $
Could there be a problem with HP Procurve 5406zl hlogin script
somewhere... or can someone actually confirm this to be working on
their 5406zl ?
Furthermore, I would like to run hlogin+clogin wihout having to
configure anything inside .cloginrc... is this possible somehow ?
Thanks in advance... :-) !
~maymann
Hi List,
We have a setup where we have destributed 4096 bit RSA
public-keys
Post by Michael Maymann
to all our equipment from a network-user for optimanl security.
Our equipment is already in a DB and we have a scripting
environment that figures out the vendor/model/type for us
already.
Post by Michael Maymann
1. Can I use rancid without using .cloginrc (e.g. directly from
commandline) - how... ?
2. Alternatively, can I configure .cloginrc with ssh-keysharing -
how... ?
We will need to connect to HP ProCurve (hlogin) and Cisco
(clogin)...
Post by Michael Maymann
Thanks in advance :-) !
~maymann
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
--
"[...] we are not attacking the corporations, but endeavoring to do
away with any evil in them. We are not hostile to them; we are merely
determined that they shall be so handled as to subserve the public
good. We draw the line against misconduct, not against wealth."
-- Theodore Roosevelt
--
"I respect you too much to respect your ridiculous ideas."
-- Johann Hari
Michael Maymann
2012-01-10 13:33:22 UTC
Permalink
Hi Tyler,

ok... I will try to give it a shot...
What about HP Procurve "Freeze"... can anyone help with this...?

Thanks in advance :-)!
~maymann
Post by Tyler J. Wagner
Reading /usr/lib/rancid/bin/clogin, I don't see any intelligence for using
SSH keys. Sorry, if you want that, you'll have to add it. Patches would no
doubt be welcome.
Tyler
Post by Michael Maymann
Hi Tyler,
Thanks for your reply...:-) !
1. yes
2. no (clogin/hlogin requires a .cloginrc file with username/password to
run) - and my best bet is that this is what it uses currently... so no
ssh-keys using clogin/hlogin (from wither network user, root, rancid...).
Furthermore prompt is also "hanging" and it doesn't parse the -c "sh ver"
that works fine from normal ssh...
3. same as network user/root
So key-sharing is working fine... but don't know how to utilize it/bypass
.cloginrc in rancid...
Just hoping that there is a way... - would'nt like to manually edit
scripts
Post by Michael Maymann
every time i update Rancid... and I don't know expect that well
either...:-) !
Post by Michael Maymann
Thanks in advance :-) !
~maymann
Michael,
I've not tried using clogin/hlogin with SSH keys, but I know a great
deal
Post by Michael Maymann
1. Can you login with the SSH key using ssh as the root user?
2. Can you login with the SSH key using clogin as the root user?
3. What about as the rancid user?
Regards,
Tyler
Post by Michael Maymann
I'm running on rhel-5u7-x64.
Anyone...?
Thanks in advance :-)
~maymann
---
<HOSTNAME>
spawn hpuifilter -- ssh -c 3des -x -l <USR> <HOSTNAME>
* Software feature updates
* New product announcements
* Special events
Please register your products now at: www.ProCurve.com
<http://www.ProCurve.com>
Post by Michael Maymann
<http://www.ProCurve.com>
ProCurve J8697A Switch 5406zl
Software revision K.15.02.0005
Copyright (C) 1991-2010 Hewlett-Packard Co. All Rights
Reserved.
Post by Michael Maymann
Post by Michael Maymann
RESTRICTED RIGHTS LEGEND
Use, duplication, or disclosure by the Government is subject
to
Post by Michael Maymann
Post by Michael Maymann
restrictions
as set forth in subdivision (b) (3) (ii) of the Rights in
Technical
Post by Michael Maymann
Post by Michael Maymann
Data and
Computer Software clause at 52.227-7013.
HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto,
CA
Post by Michael Maymann
94303
Post by Michael Maymann
Press any key to continue<HOSTNAME>#
---
Just "hangs" there...
---
* Software feature updates
* New product announcements
* Special events
Please register your products now at: www.ProCurve.com
<http://www.ProCurve.com>
Post by Michael Maymann
<http://www.ProCurve.com>
ProCurve J8697A Switch 5406zl
Software revision K.15.02.0005
Copyright (C) 1991-2010 Hewlett-Packard Co. All Rights
Reserved.
Post by Michael Maymann
Post by Michael Maymann
RESTRICTED RIGHTS LEGEND
Use, duplication, or disclosure by the Government is subject
to
Post by Michael Maymann
Post by Michael Maymann
restrictions
as set forth in subdivision (b) (3) (ii) of the Rights in
Technical
Post by Michael Maymann
Post by Michael Maymann
Data and
Computer Software clause at 52.227-7013.
HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto,
CA
Post by Michael Maymann
94303
Post by Michael Maymann
Press any key to continue
<HOSTNAME># sh ver
Image stamp: /sw/code/build/btm(K_15_02)
Oct 20 2010 16:19:41
K.15.02.0005
121
Boot Image: Primary
<HOSTNAME># logout
Do you want to log out [y/n]? y
Connection to <HOSTNAME> closed.
---
So SSH is working fine...
I'm running Rancid 2.3.6... hlogin=$Id: hlogin.in
<http://hlogin.in> <http://hlogin.in>
Post by Michael Maymann
2251 2010-10-01 19:26:36Z heas $
Could there be a problem with HP Procurve 5406zl hlogin script
somewhere... or can someone actually confirm this to be
working on
Post by Michael Maymann
Post by Michael Maymann
their 5406zl ?
Furthermore, I would like to run hlogin+clogin wihout having to
configure anything inside .cloginrc... is this possible
somehow ?
Post by Michael Maymann
Post by Michael Maymann
Thanks in advance... :-) !
~maymann
Hi List,
We have a setup where we have destributed 4096 bit RSA
public-keys
Post by Michael Maymann
to all our equipment from a network-user for optimanl
security.
Post by Michael Maymann
Post by Michael Maymann
Our equipment is already in a DB and we have a scripting
environment that figures out the vendor/model/type for us
already.
Post by Michael Maymann
1. Can I use rancid without using .cloginrc (e.g. directly
from
Post by Michael Maymann
Post by Michael Maymann
commandline) - how... ?
2. Alternatively, can I configure .cloginrc with
ssh-keysharing -
Post by Michael Maymann
Post by Michael Maymann
how... ?
We will need to connect to HP ProCurve (hlogin) and Cisco
(clogin)...
Post by Michael Maymann
Thanks in advance :-) !
~maymann
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
--
"[...] we are not attacking the corporations, but endeavoring to do
away with any evil in them. We are not hostile to them; we are merely
determined that they shall be so handled as to subserve the public
good. We draw the line against misconduct, not against wealth."
-- Theodore Roosevelt
--
"I respect you too much to respect your ridiculous ideas."
-- Johann Hari
heasley
2012-01-10 16:19:58 UTC
Permalink
Post by Tyler J. Wagner
Reading /usr/lib/rancid/bin/clogin, I don't see any intelligence for using
SSH keys. Sorry, if you want that, you'll have to add it. Patches would no
doubt be welcome.
does identity knob in cloginrc not do what you want?
Post by Tyler J. Wagner
Post by Michael Maymann
2. no (clogin/hlogin requires a .cloginrc file with username/password to
run) - and my best bet is that this is what it uses currently... so no
ssh-keys using clogin/hlogin (from wither network user, root, rancid...).
Furthermore prompt is also "hanging" and it doesn't parse the -c "sh ver"
that works fine from normal ssh...
if the key has no passphrase, you dont need a password or passphrase.
Post by Tyler J. Wagner
Post by Michael Maymann
3. same as network user/root
So key-sharing is working fine... but don't know how to utilize it/bypass
.cloginrc in rancid...
Just hoping that there is a way... - would'nt like to manually edit scripts
every time i update Rancid... and I don't know expect that well either...:-) !
Thanks in advance :-) !
~maymann
Michael,
I've not tried using clogin/hlogin with SSH keys, but I know a great deal
1. Can you login with the SSH key using ssh as the root user?
2. Can you login with the SSH key using clogin as the root user?
3. What about as the rancid user?
Regards,
Tyler
Post by Michael Maymann
I'm running on rhel-5u7-x64.
Anyone...?
Thanks in advance :-)
~maymann
---
<HOSTNAME>
spawn hpuifilter -- ssh -c 3des -x -l <USR> <HOSTNAME>
* Software feature updates
* New product announcements
* Special events
Please register your products now at: www.ProCurve.com
<http://www.ProCurve.com>
Post by Michael Maymann
<http://www.ProCurve.com>
ProCurve J8697A Switch 5406zl
Software revision K.15.02.0005
Copyright (C) 1991-2010 Hewlett-Packard Co. All Rights Reserved.
RESTRICTED RIGHTS LEGEND
Use, duplication, or disclosure by the Government is subject to
restrictions
as set forth in subdivision (b) (3) (ii) of the Rights in Technical
Data and
Computer Software clause at 52.227-7013.
HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA
94303
Post by Michael Maymann
Press any key to continue<HOSTNAME>#
---
Just "hangs" there...
---
* Software feature updates
* New product announcements
* Special events
Please register your products now at: www.ProCurve.com
<http://www.ProCurve.com>
Post by Michael Maymann
<http://www.ProCurve.com>
ProCurve J8697A Switch 5406zl
Software revision K.15.02.0005
Copyright (C) 1991-2010 Hewlett-Packard Co. All Rights Reserved.
RESTRICTED RIGHTS LEGEND
Use, duplication, or disclosure by the Government is subject to
restrictions
as set forth in subdivision (b) (3) (ii) of the Rights in Technical
Data and
Computer Software clause at 52.227-7013.
HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA
94303
Post by Michael Maymann
Press any key to continue
<HOSTNAME># sh ver
Image stamp: /sw/code/build/btm(K_15_02)
Oct 20 2010 16:19:41
K.15.02.0005
121
Boot Image: Primary
<HOSTNAME># logout
Do you want to log out [y/n]? y
Connection to <HOSTNAME> closed.
---
So SSH is working fine...
I'm running Rancid 2.3.6... hlogin=$Id: hlogin.in
<http://hlogin.in> <http://hlogin.in>
Post by Michael Maymann
2251 2010-10-01 19:26:36Z heas $
Could there be a problem with HP Procurve 5406zl hlogin script
somewhere... or can someone actually confirm this to be working on
their 5406zl ?
Furthermore, I would like to run hlogin+clogin wihout having to
configure anything inside .cloginrc... is this possible somehow ?
Thanks in advance... :-) !
~maymann
Hi List,
We have a setup where we have destributed 4096 bit RSA
public-keys
Post by Michael Maymann
to all our equipment from a network-user for optimanl security.
Our equipment is already in a DB and we have a scripting
environment that figures out the vendor/model/type for us
already.
Post by Michael Maymann
1. Can I use rancid without using .cloginrc (e.g. directly from
commandline) - how... ?
2. Alternatively, can I configure .cloginrc with ssh-keysharing -
how... ?
We will need to connect to HP ProCurve (hlogin) and Cisco
(clogin)...
Post by Michael Maymann
Thanks in advance :-) !
~maymann
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
--
"[...] we are not attacking the corporations, but endeavoring to do
away with any evil in them. We are not hostile to them; we are merely
determined that they shall be so handled as to subserve the public
good. We draw the line against misconduct, not against wealth."
-- Theodore Roosevelt
--
"I respect you too much to respect your ridiculous ideas."
-- Johann Hari
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Tyler J. Wagner
2012-01-10 16:38:55 UTC
Permalink
Post by heasley
Post by Tyler J. Wagner
Reading /usr/lib/rancid/bin/clogin, I don't see any intelligence for using
SSH keys. Sorry, if you want that, you'll have to add it. Patches would no
doubt be welcome.
does identity knob in cloginrc not do what you want?
Doh! I totally missed that.

Regards,
Tyler
--
"The belief in immortality has always seemed cowardly to me. When very
young I learned that all things die, and all that we wish of good must
be won on this earth or not at all."
-- Anne Smedley
Continue reading on narkive:
Loading...