Discussion:
[rancid] .cloginrc identity still asking for password + hlogin timeout...
Michael Maymann
2012-01-25 12:44:38 UTC
Permalink
Hi,

Urgent - Please can anyone help...?

Don't know why some of my emails don't get through to the list...trying
with new subject...:-o !

I still haven't gotten this to work...:
---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<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 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, but maybe this is not the
root-cause...?:
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... ?


1. .cloginrc identity still asks for password when remove the "add
password" line:
Any surgestions to how I can troubleshoot this further ?

2. hlogin is timeing out when running "/usr/libexec/rancid/hlogin -c "sh
ver" HOSTNAME":
Any surgestions to how I can troubleshoot this further ?

Any help is very welcome, as we need to configure snmp+smtp traps+backup of
100+ devices very soon.

Thanks in advance :-) !


Br.
~maymann
heasley
2012-01-25 16:49:38 UTC
Permalink
Wed, Jan 25, 2012 at 01:44:38PM +0100, Michael Maymann:
> I still haven't gotten this to work...:
> ---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
> Press any key to continueHOSTNAME#...I PRESS <ENTER> HERE...
>
> Error: TIMEOUT reached
> ---2---

i didnt see a prompt for a password, so it'd seem that the key is working
properly.

i dont like that it didn't echo the \r response to "press any...". but,
see autoenable in cloginrc(5).

> It seems to complain about some files missing, but maybe this is not the
> root-cause...?:

likely all optional config files and libraries or just the sequential search
of the path with which the linker is configured.
Michael Maymann
2012-01-25 17:03:26 UTC
Permalink
Hi,

Heasley: thanks for your quick reply... much appreciated...:-) !

2012/1/25 heasley <***@shrubbery.net>

> Wed, Jan 25, 2012 at 01:44:38PM +0100, Michael Maymann:
> > I still haven't gotten this to work...:
> > ---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
> > Press any key to continueHOSTNAME#...I PRESS <ENTER> HERE...
> >
> > Error: TIMEOUT reached
> > ---2---
>
> i didnt see a prompt for a password, so it'd seem that the key is working
> properly.
>

Isn't the "add user..." and "add password..." used for logging in...?
In my mind I should be able to remove the "add passsword..." line - but
when I do - I tells me "no password in .cloginrc" or similar (not at work
currently... so can't give you the specific error...)

>
> i dont like that it didn't echo the \r response to "press any...". but,
> see autoenable in cloginrc(5).
>

No me either...:-) ! - is it possible from my strace to see where it goes
wrong, or can I run a specific command for better troubleshooting ?
Will take a look at cloginrc(5) tomorrow at work...

>
> > It seems to complain about some files missing, but maybe this is not the
> > root-cause...?:
>
> likely all optional config files and libraries or just the sequential
> search
> of the path with which the linker is configured.
>

Ok, so you don't think that this is causing me my problems ?

Thanks in advance :-) !
~maymann
Marito ...
2012-01-25 17:09:48 UTC
Permalink
This post might be inappropriate. Click to display it.
heasley
2012-01-25 17:25:27 UTC
Permalink
Wed, Jan 25, 2012 at 06:03:26PM +0100, Michael Maymann:
> Isn't the "add user..." and "add password..." used for logging in...?
> In my mind I should be able to remove the "add passsword..." line - but
> when I do - I tells me "no password in .cloginrc" or similar (not at work
> currently... so can't give you the specific error...)

i didnt expect folks to use it without a password/passphrase. they can
be empty strings.

> No me either...:-) ! - is it possible from my strace to see where it goes
> wrong, or can I run a specific command for better troubleshooting ?
> Will take a look at cloginrc(5) tomorrow at work...

clogin -d host

> Ok, so you don't think that this is causing me my problems ?

no
Michael Maymann
2012-01-25 18:34:03 UTC
Permalink
Hi,

Heasley+Marito: Thanks for your replies...:-) !

2012/1/25 heasley <***@shrubbery.net>

> Wed, Jan 25, 2012 at 06:03:26PM +0100, Michael Maymann:
> > Isn't the "add user..." and "add password..." used for logging in...?
> > In my mind I should be able to remove the "add passsword..." line - but
> > when I do - I tells me "no password in .cloginrc" or similar (not at work
> > currently... so can't give you the specific error...)
>
> i didnt expect folks to use it without a password/passphrase. they can
> be empty strings.
>
Ok. I am using ssh-keysharing without passphrase and therefore no password
is needed.
In general the "add password..." should not be obligatory when "add
identity..." is present. I will try to see if "add password * {} {}" works
tomorrow.

>
> > No me either...:-) ! - is it possible from my strace to see where it goes
> > wrong, or can I run a specific command for better troubleshooting ?
> > Will take a look at cloginrc(5) tomorrow at work...
>
> clogin -d host
>
I will try this tomorrow as well, and report back with findings.

>
> > Ok, so you don't think that this is causing me my problems ?
>
> no
>
Super

Thanks for your help so far...much appreciated...:-) !

~maymann
Michael Maymann
2012-01-26 09:05:54 UTC
Permalink
Hi,

2012/1/25 Michael Maymann <***@maymann.org>

> Hi,
>
> Heasley+Marito: Thanks for your replies...:-) !
>
> 2012/1/25 heasley <***@shrubbery.net>
>
>> Wed, Jan 25, 2012 at 06:03:26PM +0100, Michael Maymann:
>> > Isn't the "add user..." and "add password..." used for logging in...?
>> > In my mind I should be able to remove the "add passsword..." line - but
>> > when I do - I tells me "no password in .cloginrc" or similar (not at
>> work
>> > currently... so can't give you the specific error...)
>>
>> i didnt expect folks to use it without a password/passphrase. they can
>> be empty strings.
>>
> Ok. I am using ssh-keysharing without passphrase and therefore no password
> is needed.
> In general the "add password..." should not be obligatory when "add
> identity..." is present. I will try to see if "add password * {} {}" works
> tomorrow.
>

This works...:-)!
I surgest removing obligatory "add password..." when "add identity..." is
present. But is still should be an option if someone is using passphrase...
FYI: The error it gives me is:
"Error: no password for HOSTNAME in /PATH_TO/.cloginrc."

>
>> > No me either...:-) ! - is it possible from my strace to see where it
>> goes
>> > wrong, or can I run a specific command for better troubleshooting ?
>> > Will take a look at cloginrc(5) tomorrow at work...
>>
>> clogin -d host
>>
> I will try this tomorrow as well, and report back with findings.
>

Now this is my .cloginrc:
add method * ssh
add user * test
add identity * /PATH_TO/.ssh/id_rsa
add password * {} {}
add autoenable * {1}

and the autoenable also did the trick...:-) !
"hlogin -c "sh ip" HOSTNAME" now does what i expect...:-) !

After login, but before running the command specified in "-c" option, it
gives me:
HOSTNAME# no page
1. What does this mean ?

2. How do I check if a command i successful or not ?


clogin still fails though, here is the debug output:
-bash-3.2$ /usr/libexec/rancid/clogin -d -c "sh ip" hostname
hostname
spawn ssh -i /PATH_TO/.ssh/id_rsa -c 3des -x -l user hostname
parent: waiting for sync byte
parent: telling child to go ahead
parent: now unsynchronized from child
spawn: returns {22595}

expect: does "" (spawn_id exp6) match regular expression "(Connection
refused|Secure connection [^\n\r]+ refused)"? no
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does "" (spawn_id exp6) match glob pattern "unknown host\r"? no

expect: does "" (spawn_id exp6) match glob pattern "Host is unreachable"? no
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be
established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? no
"Enter passphrase.*: "? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd|Enter password for [^ :]+):"? no
"(>|#| \(enable\))"? no
"Login invalid"? no
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



expect: does "We'd like to keep you up to date about:\r\n * Software
feature updates\r\n * New product announcements\r\n * Special
events\r\n\r\nPlease register your products now at: www.ProCurve.com\r\o
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does "We'd like to keep you up to date about:\r\n * Software
feature updates\r\n * New product announcements\r\n * Special
events\r\n\r\nPlease register your products now at: www.ProCurve.com\r\o

expect: does "We'd like to keep you up to date about:\r\n * Software
feature updates\r\n * New product announcements\r\n * Special
events\r\n\r\nPlease register your products now at: www.ProCurve.com\r\o
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be
established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? no
"Enter passphrase.*: "? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd|Enter password for [^ :]+):"? no
"(>|#| \(enable\))"? no
"Login invalid"? no














expect: does "We'd like to keep you up to date about:\r\n * Software
feature updates\r\n * New product announcements\r\n * Special
events\r\n\r\nPlease register your products now at: www.ProCurve.com\r\o
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does "We'd like to keep you up to date about:\r\n * Software
feature updates\r\n * New product announcements\r\n * Special
events\r\n\r\nPlease register your products now at: www.ProCurve.com\r\o

expect: does "We'd like to keep you up to date about:\r\n * Software
feature updates\r\n * New product announcements\r\n * Special
events\r\n\r\nPlease register your products now at: www.ProCurve.com\r\o
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be
established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|pass


















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

expect: set expect_out(buffer) "We'd like to keep you up to date
about:\r\n * Software feature updates\r\n * New product
announcements\r\n * Special events\r\n\r\nPlease register your products
now at: w[













































HOSTNAME#
expect: does
"\u001b[14;1H\u001b[?25h\u001b[46;27H\u001b[?6l\u001b[1;46r\u001b[?7l\u001b[2J\u001b[1;1H\u001b[1;46r\u001b[46;1H\u001b[46;1H\u001b[2K\u001b[46;1H\u001b[?25h\u001b[46;1H\u001b[46;1HHOSTNAME#
\uo
"(Connection closed by|Connection to [^\n\r]+ closed)"? no

expect: does
"\u001b[14;1H\u001b[?25h\u001b[46;27H\u001b[?6l\u001b[1;46r\u001b[?7l\u001b[2J\u001b[1;1H\u001b[1;46r\u001b[46;1H\u001b[46;1H\u001b[2K\u001b[46;1H\u001b[?25h\u001b[46;1H\u001b[46;1HHOSTNAME#
\uo

expect: does
"\u001b[14;1H\u001b[?25h\u001b[46;27H\u001b[?6l\u001b[1;46r\u001b[?7l\u001b[2J\u001b[1;1H\u001b[1;46r\u001b[46;1H\u001b[46;1H\u001b[2K\u001b[46;1H\u001b[?25h\u001b[46;1H\u001b[46;1HHOSTNAME#
\uo
"No address associated with name"? no
"(Host key not found |The authenticity of host .* be
established).*(yes/no)?"? no
"HOST IDENTIFICATION HAS CHANGED.* (yes/no)?"? no
"Offending key for .* (yes/no)?"? no
"(denied|Sorry)"? no
"Login failed"? no
"% (Bad passwords|Authentication failed)"? no
"Press any key to continue"? no
"Enter Selection: "? no
"Last login:"? no
"@[^\r\n]+ ([Pp]assword|passwd|Enter password for [^ :]+):"? no
"Enter passphrase.*: "? no
"(Username|Login|login|user name|User):"? no
"([Pp]assword|passwd|Enter password for [^ :]+):"? no
"(>|#| \(enable\))"? yes
expect: set expect_out(0,string) "#"
expect: set expect_out(1,string) "#"
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer)
"\u001b[14;1H\u001b[?25h\u001b[46;27H\u001b[?6l\u001b[1;46r\u001b[?7l\u001b[2J\u001b[1;1H\u001b[1;46r\u001b[46;1H\u001b[46;1H\u001b[2K\u001b[46;1H\u001b[?25h\u001b[46;1H\u001b"
send: sending "\r" to { exp6 }

expect: does "
\u001b[46;1H\u001b[46;11H\u001b[46;1H\u001b[?25h\u001b[46;11H" (spawn_id
exp6) match regular expression "[\r\n]+"? no
"^(.+[:.])1 ((>|#| \(enable\)))"? no
"^.+(>|#| \(enable\))"? no

HOSTNAME#
expect: does "
\u001b[46;1H\u001b[46;11H\u001b[46;1H\u001b[?25h\u001b[46;11H\u001b[46;0H\u001bE\u001b[46;1H\u001b[46;11H\u001b[46;1H\u001b[2K\u001b[46;1H\u001b[?25h\u001b[46;1H\u001b[1;46r\u001b[46;1H\u001bo
"^(.+[:.])1 ((>|#| \(enable\)))"? no
"^.+(>|#| \(enable\))"? yes
expect: set expect_out(0,string) "
\u001b[46;1H\u001b[46;11H\u001b[46;1H\u001b[?25h\u001b[46;11H\u001b[46;0H\u001bE\u001b[46;1H\u001b[46;11H\u001b[46;1H\u001b[2K\u001b[46;1H\u001b[?25h\u001b[46;1H\u001b[1;4"
expect: set expect_out(1,string) "#"
expect: set expect_out(spawn_id) "exp6"
expect: set expect_out(buffer) "
\u001b[46;1H\u001b[46;11H\u001b[46;1H\u001b[?25h\u001b[46;11H\u001b[46;0H\u001bE\u001b[46;1H\u001b[46;11H\u001b[46;1H\u001b[2K\u001b[46;1H\u001b[?25h\u001b[46;1H\u001b[1;46r"
send: sending "terminal length 0\r" to { exp6 }
couldn't compile regular expression pattern: parentheses () not balanced
while executing
"expect -nobrace -re { [46;1H([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[
]+} { exp_continue }"
invoked from within
"expect {
-re $reprompt {}
-re "\[\n\r]+" { exp_continue }
}"
(procedure "run_commands" line 21)
invoked from within
"run_commands $prompt $command"
("foreach" body line 166)
invoked from within
"foreach router [lrange $argv $i end] {
set router [string tolower $router]
# attempt at platform switching.
set platform ""
send_user ..."
(file "/usr/libexec/rancid/clogin" line 743)

3. Any idea why this is still causing me problems... ?


Thanks in advance :-) !
~maymann


>> > Ok, so you don't think that this is causing me my problems ?
>>
>> no
>>
> Super
>
> Thanks for your help so far...much appreciated...:-) !
>
> ~maymann
>
Loading...