Advertisement
Guest User

issues

a guest
Apr 18th, 2012
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.52 KB | None | 0 0
  1. [root@tacacs ~]# su rancid
  2. [rancid@tacacs root]$ cd /usr/local/rancid/
  3. [rancid@tacacs ~]$ expect -d /usr/local/rancid/bin/hlogin -f /usr/local/rancid/.cloginrc clswitch1
  4. expect version 5.43.0
  5. argv[0] = expect argv[1] = -d argv[2] = /usr/local/rancid/bin/hlogin argv[3] = -f argv[4] = /usr/local/rancid/.cloginrc argv[5] = clswitch1
  6. set argc 3
  7. set argv0 "/usr/local/rancid/bin/hlogin"
  8. set argv "-f /usr/local/rancid/.cloginrc clswitch1"
  9. executing commands from command file /usr/local/rancid/bin/hlogin
  10. clswitch1
  11. spawn hpuifilter -- telnet clswitch1
  12. parent: waiting for sync byte
  13. parent: telling child to go ahead
  14. parent: now unsynchronized from child
  15. spawn: returns {22091}
  16.  
  17. expect: does "" (spawn_id exp6) match glob pattern "Press any key to continue"? no
  18. "Enter switch number to connect to or <CR>:"? no
  19. "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? no
  20. "Host is unreachable"? no
  21. "No address associated with name"? no
  22. "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? no
  23. "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? no
  24. "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? no
  25. "Offending key for .* \(yes/no\)\?"? no
  26.  
  27. expect: does "" (spawn_id exp6) match glob pattern "unknown host\r"? no
  28.  
  29. expect: does "" (spawn_id exp6) match regular expression "Enter passphrase.*: "? no
  30. "(Username|login|user name):"? no
  31. "([Pp]assword|passwd):"? no
  32. "#"? no
  33. "denied"? no
  34. "% Bad passwords"? no
  35. Trying 172.16.1.54...
  36. telnet: connect to address 172.16.1.54: Connection refused
  37. telnet: Unable to connect to remote host: Connection refused
  38.  
  39. expect: does "Trying 172.16.1.54...\r\r\r\ntelnet: connect to address 172.16.1.54: Connection refused\r\r\ntelnet: Unable to connect to remote host: Connection refused\r\r\n" (spawn_id exp6) match glob pattern "Press any key to continue"? no
  40. "Enter switch number to connect to or <CR>:"? no
  41. "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? yes
  42. expect: set expect_out(0,string) "Connection refused"
  43. expect: set expect_out(1,string) "Connection refused"
  44. expect: set expect_out(spawn_id) "exp6"
  45. expect: set expect_out(buffer) "Trying 172.16.1.54...\r\r\r\ntelnet: connect to address 172.16.1.54: Connection refused"
  46. spawn hpuifilter -- ssh -c 3des -x -l rancid clswitch1
  47. parent: waiting for sync byte
  48. parent: telling child to go ahead
  49. parent: now unsynchronized from child
  50. spawn: returns {22095}
  51.  
  52. expect: does "" (spawn_id exp6) match glob pattern "Press any key to continue"? no
  53. "Enter switch number to connect to or <CR>:"? no
  54. "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? no
  55. "Host is unreachable"? no
  56. "No address associated with name"? no
  57. "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? no
  58. "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? no
  59. "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? no
  60. "Offending key for .* \(yes/no\)\?"? no
  61.  
  62. expect: does "" (spawn_id exp6) match glob pattern "unknown host\r"? no
  63.  
  64. expect: does "" (spawn_id exp6) match regular expression "Enter passphrase.*: "? no
  65. "(Username|login|user name):"? no
  66. "([Pp]assword|passwd):"? no
  67. "#"? no
  68. "denied"? no
  69. "% Bad passwords"? no
  70. We'd like to keep you up to date about:
  71. * Software feature updates
  72. * New product announcements
  73. * Special events
  74.  
  75. Please register your products now at: www.ProCurve.com
  76.  
  77.  
  78. expect: does "We'd like to keep you up to date about:\r\r\n * Software feature updates\r\r\n * New product announcements\r\r\n * Special events\r\r\n\r\r\nPlease register your products now at: www.ProCurve.com\r\r\n\r\r\n" (spawn_id exp6) match glob pattern "Press any key to continue"? no
  79. "Enter switch number to connect to or <CR>:"? no
  80. "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? no
  81. "Host is unreachable"? no
  82. "No address associated with name"? no
  83. "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? no
  84. "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? no
  85. "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? no
  86. "Offending key for .* \(yes/no\)\?"? no
  87.  
  88. expect: does "We'd like to keep you up to date about:\r\r\n * Software feature updates\r\r\n * New product announcements\r\r\n * Special events\r\r\n\r\r\nPlease register your products now at: www.ProCurve.com\r\r\n\r\r\n" (spawn_id exp6) match glob pattern "unknown host\r"? no
  89.  
  90. expect: does "We'd like to keep you up to date about:\r\r\n * Software feature updates\r\r\n * New product announcements\r\r\n * Special events\r\r\n\r\r\nPlease register your products now at: www.ProCurve.com\r\r\n\r\r\n" (spawn_id exp6) match regular expression "Enter passphrase.*: "? no
  91. "(Username|login|user name):"? no
  92. "([Pp]assword|passwd):"? no
  93. "#"? no
  94. "denied"? no
  95. "% Bad passwords"? no
  96. rancid@clswitch1's password:
  97. expect: does "We'd like to keep you up to date about:\r\r\n * Software feature updates\r\r\n * New product announcements\r\r\n * Special events\r\r\n\r\r\nPlease register your products now at: www.ProCurve.com\r\r\n\r\r\nrancid@clswitch1's password: " (spawn_id exp6) match glob pattern "Press any key to continue"? no
  98. "Enter switch number to connect to or <CR>:"? no
  99. "(Connection refused|Secure connection [^\n\r]+ refused|Connection closed by)"? no
  100. "Host is unreachable"? no
  101. "No address associated with name"? no
  102. "(Host key not found |The authenticity of host .* be established).* \(yes/no\)\?"? no
  103. "HOST IDENTIFICATION HAS CHANGED.* \(yes/no\)\?"? no
  104. "HOST IDENTIFICATION HAS CHANGED[^\n\r]+"? no
  105. "Offending key for .* \(yes/no\)\?"? no
  106.  
  107. expect: does "We'd like to keep you up to date about:\r\r\n * Software feature updates\r\r\n * New product announcements\r\r\n * Special events\r\r\n\r\r\nPlease register your products now at: www.ProCurve.com\r\r\n\r\r\nrancid@clswitch1's password: " (spawn_id exp6) match glob pattern "unknown host\r"? no
  108.  
  109. expect: does "We'd like to keep you up to date about:\r\r\n * Software feature updates\r\r\n * New product announcements\r\r\n * Special events\r\r\n\r\r\nPlease register your products now at: www.ProCurve.com\r\r\n\r\r\nrancid@clswitch1's password: " (spawn_id exp6) match regular expression "Enter passphrase.*: "? no
  110. "(Username|login|user name):"? no
  111. "([Pp]assword|passwd):"? yes
  112. expect: set expect_out(0,string) "password:"
  113. expect: set expect_out(1,string) "password"
  114. expect: set expect_out(spawn_id) "exp6"
  115. expect: set expect_out(buffer) "We'd like to keep you up to date about:\r\r\n * Software feature updates\r\r\n * New product announcements\r\r\n * Special events\r\r\n\r\r\nPlease register your products now at: www.ProCurve.com\r\r\n\r\r\nrancid@clswitch1's password:"
  116. send: sending "<PASSWORD OMITTED>\r" to { exp6 }
  117.  
  118. expect: does " " (spawn_id exp6) match glob pattern "Press any key to continue"? no
  119. "[Pp]assword:"? no
  120. "#"? no
  121.  
  122.  
  123. expect: does " \r\r\n" (spawn_id exp6) match glob pattern "Press any key to continue"? no
  124. "[Pp]assword:"? no
  125. "#"? no
  126.  
  127. expect: timed out
  128.  
  129. Error: TIMEOUT reached
  130. [rancid@tacacs ~]$
  131. [rancid@tacacs ~]$ /usr/local/rancid/bin/hlogin -autoenable -c "show cpu" clswitch1
  132. clswitch1
  133. spawn hpuifilter -- telnet clswitch1
  134. Trying 172.16.1.54...
  135. telnet: connect to address 172.16.1.54: Connection refused
  136. telnet: Unable to connect to remote host: Connection refused
  137. spawn hpuifilter -- ssh -c 3des -x -l rancid clswitch1
  138. We'd like to keep you up to date about:
  139. * Software feature updates
  140. * New product announcements
  141. * Special events
  142.  
  143. Please register your products now at: www.ProCurve.com
  144.  
  145. rancid@clswitch1's password:
  146.  
  147. Error: TIMEOUT reached
  148. [rancid@tacacs ~]$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement