<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='color:#1F497D'>Looks like I over looked the
.cloginrc file.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><i><span style='color:#1F497D'>I have our Cisco Devices
using the following<o:p></o:p></span></i></p>
<p class=MsoNormal><span style='color:#1F497D'>## START CLOGINRC<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>## CISCO INTERNAL DEVICES <o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Add user
*.pelco.org
user<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Add password *.pelco.org
password<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Add autoenable
*.pelco.org 0<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Add method
*.pelco.org
ssh<o:p></o:p></span></p>
<p class=MsoNormal><i><span style='color:#1F497D'>So I tried our HP devices as
follows<o:p></o:p></span></i></p>
<p class=MsoNormal><span style='color:#1F497D'>## HP INTERNAL DEVICES<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Add user HP*
user<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Add password HP*
password manager<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Add autoenable
HP* 0<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Add method
HP* ssh<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>## END CLOGINRC <o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>I would assume since I was
trying to login to the switch via hostname HP5308-b6-1.<b>pelco.org </b>when
the system would do a lookup for this device in the .cloginrc file it would
match the first configuration for the Cisco Devices via the .pelco.org?<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>So I modified the HP devices
configuration in the .cloginrc file to look at the IP address of the device and
tested<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Hlogin 10.10.10.1<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Which Worked.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>I stripped the .pelco.org from
the hlogin command with the HP* in the .cloginrc file (See above) and that also
worked.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Hlogin hp5308-b6-1<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Looks like I need to figure out
a better way to call devices in the .cloginrc file. Thanks everyone for the
input.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
rancid-discuss-bounces@shrubbery.net
[mailto:rancid-discuss-bounces@shrubbery.net] <b>On Behalf Of </b>Schlottog,
Tighe<br>
<b>Sent:</b> Monday, August 17, 2009 1:10 PM<br>
<b>To:</b> Rancid-discuss@shrubbery.net<br>
<b>Subject:</b> [rancid] Re: Hlogin & Timeout<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span style='color:#1F497D'>Hey there,<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
In your .cloginrc file do you have autoenable set to 1 by chance? It
looks like you are getting to the operator level prompt but are not into the
full manager level prompt. There is also a wonderful issue with the 4100
series that the switch does not seem to handle the privalege elevation handed
too it by the Radius server, so we've had to pull the individual switches out
via configuration like this:<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>add user
xx.xx.xx.xx
rancid<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>add password
xx.xx.xx.xx
{XXXXXXX} {XXXXXXX}<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>add autoenable
xx.xx.xx.xx 0<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>add userprompt
xx.xx.xx.xx {"Please Enter Login
Name:"}<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>add passprompt
xx.xx.xx.xx {"Please Enter
Password:"}<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
It looks like you are timing out while waiting on the # prompt to appear.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Tighe<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<div>
<p class=MsoNormal><span style='color:#1F497D'>--<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Tighe Schlottog<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Peabody Energy<o:p></o:p></span></p>
</div>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal style='margin-left:.5in'><b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> rancid-discuss-bounces@shrubbery.net
[mailto:rancid-discuss-bounces@shrubbery.net] <b>On Behalf Of </b>Mahaffey,
Brian<br>
<b>Sent:</b> Monday, August 17, 2009 2:55 PM<br>
<b>To:</b> Rancid-discuss@shrubbery.net<br>
<b>Subject:</b> [rancid] Hlogin & Timeout<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p>
<p class=MsoNormal style='margin-left:.5in'>Hello,<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p>
<p class=MsoNormal style='margin-left:.5in'>When trying to use hlogin I get
timeouts when trying to login to the enable prompt. I thought I was running
version 2.3.2a10 but I guess my upgrade didn’t work as expected.<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p>
<p class=MsoNormal style='margin-left:.5in'>-bash-3.2$ hlogin
HP5308-B6-1.pelco.org<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in'>hp5308-b6-1.pelco.org<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in'>spawn hpuifilter -- ssh -c 3des -x
-l user hp5308-b6-1.pelco.org<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in'>Switch – DO NOT LOGIN.<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in'><a
href="mailto:user@hp5308-b6-1.pelco.org's">user@hp5308-b6-1.pelco.org's</a>
password: <o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in'>ProCurve J4819A Switch 5308xl<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in'>Software revision E.11.03<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p>
<p class=MsoNormal style='margin-left:.5in'>Copyright (C) 1991-2008
Hewlett-Packard Co. All Rights Reserved.<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p>
<p class=MsoNormal style='margin-left:.5in'>
RESTRICTED RIGHTS LEGEND<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p>
<p class=MsoNormal style='margin-left:.5in'> Use, duplication, or
disclosure by the Government is subject to restrictions<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in'> as set forth in subdivision
(b) (3) (ii) of the Rights in Technical Data and<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in'> Computer Software clause at
52.227-7013.<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p>
<p class=MsoNormal style='margin-left:.5in'>
HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p>
<p class=MsoNormal style='margin-left:.5in'>Press any key to
continueHP5308-B6-1> <o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in'><b>Error: TIMEOUT reached<o:p></o:p></b></p>
<p class=MsoNormal style='margin-left:.5in'><b><o:p> </o:p></b></p>
<p class=MsoNormal style='margin-left:.5in'>HLOGIN Version<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in'>#! /usr/bin/expect --<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in'>##<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in'>## $Id: hlogin.in,v 1.58 2008/11/12
00:59:04 heas Exp $<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in'>##<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in'>## rancid 2.3.2a9<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p>
<p class=MsoNormal style='margin-left:.5in'>I found a patch from a google
search which didn’t work for me.<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p>
<p class=MsoNormal style='margin-left:.5in;text-autospace:none'>---
bin/hlogin.original.2.3.2a9 2009-02-03 18:35:55.000000000 -0600<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in;text-autospace:none'>+++
bin/hlogin 2009-02-04 00:07:52.000000000 -0600<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in;text-autospace:none'>@@ -666,7
+671,9 @@<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in;text-autospace:none'>
# Figure out prompts<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in;text-autospace:none'>
set u_prompt [find userprompt $router]<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in;text-autospace:none'>
if { "$u_prompt" == "" } {<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in;text-autospace:none'>-
set u_prompt "(Username|login|user name):"<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in;text-autospace:none'>+
#added "Name" for 5406zl<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in;text-autospace:none'>+
#which has the prompt "Please Enter Login Name:"<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in;text-autospace:none'>+
set u_prompt "(Name|Username|login|user name):"<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in;text-autospace:none'>
} else {<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in;text-autospace:none'>
set u_prompt [join [lindex $u_prompt 0] ""]<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in;text-autospace:none'>
}<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p>
<p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p>
<p class=MsoNormal style='margin-left:.5in'>Thank you,<o:p></o:p></p>
<p class=MsoNormal style='margin-left:.5in'><b><span style='font-size:9.0pt'><o:p> </o:p></span></b></p>
<p class=MsoNormal style='margin-left:.5in'><b><span style='font-size:9.0pt'>Brian
Mahaffey<br>
</span></b><span style='font-size:9.0pt'>Sr. Network Engineer<br>
<b>Pelco<o:p></o:p></b></span></p>
<p class=MsoNormal style='margin-left:.5in'><span style='font-size:9.0pt'>(559)
292.1981 ext 5323<o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:.5in'><span style='font-size:9.0pt'>(559)
840.5686 Mobile</span><span style='font-size:9.0pt;font-family:"Arial","sans-serif";
color:#1C467A'><br>
</span><span style='font-size:7.5pt'>AIM/GTALK/MSN: <a
href="mailto:bmahaffey@gmail.com">bmahaffey@gmail.com</a><o:p></o:p></span></p>
<p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p>
<p class=MsoNormal style='margin-left:.5in'><span style='font-size:12.0pt;
font-family:"Times New Roman","serif"'><br>
-
------------------------------------------------------------------------------<br>
Confidentiality Notice: The information contained in this transmission is legally
privileged and confidential, intended only for the use of the individual(s) or
entities named above. This email and any files transmitted with it are the
property of Pelco. If the reader of this message is not the intended recipient,
or an employee or agent responsible for delivering this message to the intended
recipient, you are hereby notified that any review, disclosure, copying,
distribution, retention, or any action taken or omitted to be taken in reliance
on it is prohibited and may be unlawful. If you receive this communication in
error, please notify us immediately by telephone call to +1-559-292-1981 or
forward the e-mail to administrator@pelco.com and then permanently delete the
e-mail and destroy all soft and hard copies of the message and any attachments.
Thank you for your cooperation. <br>
-
------------------------------------------------------------------------------<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><br
clear=all>
<o:p></o:p></span></p>
<div class=MsoNormal align=center style='text-align:center'><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'>
<hr size=1 width="100%" align=center>
</span></div>
<p><strong>E-mail Disclaimer: The information contained in this e-mail, and in
any accompanying documents, may constitute confidential and/or legally
privileged information. The information is intended only for use by the
designated recipient. If you are not the intended recipient (or responsible for
the delivery of the message to the intended recipient), you are hereby notified
that any dissemination, distribution, copying, or other use of, or taking of
any action in reliance on this e-mail is strictly prohibited. If you have
received this email communication in error, please notify the sender
immediately and delete the message from your system. </strong><o:p></o:p></p>
</div>
<BR>
- ------------------------------------------------------------------------------<BR>
Confidentiality Notice: The information contained in this transmission is legally privileged and confidential, intended only for the use of the individual(s) or entities named above. This email and any files transmitted with it are the property of Pelco. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you receive this communication in error, please notify us immediately by telephone call to +1-559-292-1981 or forward the e-mail to administrator@pelco.com and then permanently delete the e-mail and destroy all soft and hard copies of the message and any attachments. Thank you for your cooperation. <BR>
- ------------------------------------------------------------------------------<BR>
</body>
</html>