[rancid] SSH public-keys

Michael Maymann michael at maymann.org
Fri Jan 20 10:00:39 UTC 2012


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\266 at 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


2012/1/11 shouldbe q931 <shouldbeq931 at gmail.com>

> On Wed, Jan 11, 2012 at 4:50 PM, Michael Maymann <michael at maymann.org>
> wrote:
> > 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 user at 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
> >
> >
>
> 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...
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20120120/afd04975/attachment-0001.html>


More information about the Rancid-discuss mailing list