Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: RANCID: Users

HP Procurve 2810

 

 

RANCID users RSS feed   Index | Next | Previous | View Threaded


GMourani at prival

Oct 18, 2011, 12:38 PM

Post #1 of 8 (1663 views)
Permalink
HP Procurve 2810

Hello List,

I've problem making Rancid (version 2.3.6) work with HP Procurve 2810 switches. I'm able to connect to the switch correctly but the generated report is empty! If I check inside the log files, I can see the following:

10.1.6.254: found unexpected command - "show system"
10.1.6.254: missed cmd(s): show stack,write term
10.1.6.254: End of run not found

I use the following parameters in my .cloginrc file:
add autoenable 10.1.6.254 1
add user 10.1.6.254 myadmin
add password 10.1.6.254 mypassword myenpassword

Regards,


b225ccc at gmail

Oct 18, 2011, 12:43 PM

Post #2 of 8 (1626 views)
Permalink
Re: HP Procurve 2810 [In reply to]

What does router.db look like?

2011/10/18 Gerhard Mourani <GMourani [at] prival>

> Hello List,****
>
> ** **
>
> I’ve problem making Rancid (version 2.3.6) work with HP Procurve 2810
> switches. I’m able to connect to the switch correctly but the generated
> report is empty! If I check inside the log files, I can see the following:
> ****
>
> ** **
>
> 10.1.6.254: found unexpected command - "show system"****
>
> 10.1.6.254: missed cmd(s): show stack,write term****
>
> 10.1.6.254: End of run not found****
>
> ** **
>
> I use the following parameters in my *.cloginrc* file:****
>
> add autoenable 10.1.6.254 1****
>
> add user 10.1.6.254 myadmin****
>
> add password 10.1.6.254 mypassword myenpassword****
>
> ** **
>
> Regards,****
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss [at] shrubbery
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>



--
Brian Talley
b225ccc [at] gmail


me_gogorza at hotmail

Oct 18, 2011, 12:49 PM

Post #3 of 8 (1627 views)
Permalink
Re: HP Procurve 2810 [In reply to]

Gerhard,

Also check if the Procurve can run "show system". Try doing clogin -c 'show system' IPADDRS.

Regards



Date: Tue, 18 Oct 2011 13:43:00 -0600
From: b225ccc [at] gmail
To: GMourani [at] prival
CC: rancid-discuss [at] shrubbery
Subject: Re: [rancid] HP Procurve 2810

What does router.db look like?


2011/10/18 Gerhard Mourani <GMourani [at] prival>




Hello List,

I’ve problem making Rancid (version 2.3.6) work with HP Procurve 2810 switches. I’m able to connect to the switch correctly but the generated report is empty! If I check inside the log files, I can see the following:

10.1.6.254: found unexpected command - "show system"
10.1.6.254: missed cmd(s): show stack,write term
10.1.6.254: End of run not found

I use the following parameters in my .cloginrc file:
add autoenable 10.1.6.254 1
add user 10.1.6.254 myadmin
add password 10.1.6.254 mypassword myenpassword

Regards,
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss [at] shrubbery
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss


--
Brian Talley
b225ccc [at] gmail


_______________________________________________ Rancid-discuss mailing list Rancid-discuss [at] shrubbery http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss


GMourani at prival

Oct 18, 2011, 12:54 PM

Post #4 of 8 (1636 views)
Permalink
Re: HP Procurve 2810 [In reply to]

I get the following error:

PC-2810-48G-01# couldn't compile regular expression pattern: parentheses () not balanced
while executing
"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/bin/clogin" line 743) PC-2810-48G-01# couldn't compile regular expression pattern: parentheses () not balanced
while executing
"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/bin/clogin" line 743)


From: rancid-discuss-bounces [at] shrubbery [mailto:rancid-discuss-bounces [at] shrubbery] On Behalf Of Marito ...
Sent: October-18-11 3:50 PM
To: rancid-discuss [at] shrubbery
Subject: Re: [rancid] HP Procurve 2810

Gerhard,

Also check if the Procurve can run "show system". Try doing clogin -c 'show system' IPADDRS.

Regards
________________________________
Date: Tue, 18 Oct 2011 13:43:00 -0600
From: b225ccc [at] gmail<mailto:b225ccc [at] gmail>
To: GMourani [at] prival<mailto:GMourani [at] prival>
CC: rancid-discuss [at] shrubbery<mailto:rancid-discuss [at] shrubbery>
Subject: Re: [rancid] HP Procurve 2810

What does router.db look like?
2011/10/18 Gerhard Mourani <GMourani [at] prival<mailto:GMourani [at] prival>>
Hello List,

I've problem making Rancid (version 2.3.6) work with HP Procurve 2810 switches. I'm able to connect to the switch correctly but the generated report is empty! If I check inside the log files, I can see the following:

10.1.6.254<http://10.1.6.254/>: found unexpected command - "show system"
10.1.6.254<http://10.1.6.254/>: missed cmd(s): show stack,write term
10.1.6.254<http://10.1.6.254/>: End of run not found

I use the following parameters in my .cloginrc file:
add autoenable 10.1.6.254 1
add user 10.1.6.254 myadmin
add password 10.1.6.254 mypassword myenpassword

Regards,

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss [at] shrubbery<mailto:Rancid-discuss [at] shrubbery>
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss



--
Brian Talley
b225ccc [at] gmail<mailto:b225ccc [at] gmail>


_______________________________________________ Rancid-discuss mailing list Rancid-discuss [at] shrubbery<mailto:Rancid-discuss [at] shrubbery> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss


adam.korab at gmail

Oct 18, 2011, 1:00 PM

Post #5 of 8 (1632 views)
Permalink
Re: HP Procurve 2810 [In reply to]

Hi Gerhard,

That looks like clogin and the Procurves need to use hlogin (and
hrancid) instead. Copy and paste your router.db please, it may be
something like

pc-2810-48g-01:cisco:up

when it ought to be:

pc2810-48g-01:hp:up

--Adam

2011/10/18 Gerhard Mourani <GMourani [at] prival>:
> I get the following error:
>
>
>
> PC-2810-48G-01# couldn't compile regular expression pattern: parentheses ()
> not balanced
>
>     while executing
>
> "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/bin/clogin" line 743) PC-2810-48G-01# couldn't compile
> regular expression pattern: parentheses () not balanced
>
>     while executing
>
> "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/bin/clogin" line 743)
>
>
>
>
>
> From: rancid-discuss-bounces [at] shrubbery
> [mailto:rancid-discuss-bounces [at] shrubbery] On Behalf Of Marito ...
> Sent: October-18-11 3:50 PM
> To: rancid-discuss [at] shrubbery
>
> Subject: Re: [rancid] HP Procurve 2810
>
>
>
> Gerhard,
>
> Also check if the Procurve can run "show system". Try doing clogin -c 'show
> system' IPADDRS.
>
> Regards
>
> ________________________________
>
> Date: Tue, 18 Oct 2011 13:43:00 -0600
> From: b225ccc [at] gmail
> To: GMourani [at] prival
> CC: rancid-discuss [at] shrubbery
> Subject: Re: [rancid] HP Procurve 2810
>
> What does router.db look like?
>
> 2011/10/18 Gerhard Mourani <GMourani [at] prival>
>
> Hello List,
>
>
>
> I’ve problem making Rancid (version 2.3.6) work with HP Procurve 2810
> switches. I’m able to connect to the switch correctly but the generated
> report is empty! If I check inside the log files, I can see the following:
>
>
>
> 10.1.6.254: found unexpected command - "show system"
>
> 10.1.6.254: missed cmd(s): show stack,write term
>
> 10.1.6.254: End of run not found
>
>
>
> I use the following parameters in my .cloginrc file:
>
> add autoenable  10.1.6.254          1
>
> add user                10.1.6.254          myadmin
>
> add password    10.1.6.254           mypassword      myenpassword
>
>
>
> Regards,
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss [at] shrubbery
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>
>
> --
> Brian Talley
> b225ccc [at] gmail
>
>
> _______________________________________________ Rancid-discuss mailing list
> Rancid-discuss [at] shrubbery
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss [at] shrubbery
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss [at] shrubbery
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss


GMourani at prival

Oct 18, 2011, 1:00 PM

Post #6 of 8 (1666 views)
Permalink
Re: HP Procurve 2810 [In reply to]

But if I run -> hlogin -c 'show system' 10.1.6.254

It returns:

PC-2810-48G-01# no page
PC-2810-48G-01# show system

Status and Counters - General System Information

System Name : PC-2810-48G-01
System Contact : magagnon [at] bmr
System Location : Ville-St-Laurent

MAC Age Time (sec) : 300

Time Zone : 0
Daylight Time Rule : None


Software revision : N.11.25 Base MAC Addr : b439d6-042cc0
ROM Version : N.10.01 Serial Number : CN048XJ04W

Up Time : 137 days Memory - Total : 24,034,944
CPU Util (%) : 36 Free : 16,221,792

IP Mgmt - Pkts Rx : 908,669 Packet - Total : 3022
Pkts Tx : 634,030 Buffers Free : 2780
Lowest : 1841
Missed : 0

PC-2810-48G-01#exit
PC-2810-48G-01> exit
Do you want to log out [y/n]? y
Connection to 10.1.6.254 closed by remote host.
Connection to 10.1.6.254 closed.


From: rancid-discuss-bounces [at] shrubbery [mailto:rancid-discuss-bounces [at] shrubbery] On Behalf Of Gerhard Mourani
Sent: October-18-11 3:55 PM
To: Marito ...; rancid-discuss [at] shrubbery
Subject: Re: [rancid] HP Procurve 2810

I get the following error:

PC-2810-48G-01# couldn't compile regular expression pattern: parentheses () not balanced
while executing
"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/bin/clogin" line 743) PC-2810-48G-01# couldn't compile regular expression pattern: parentheses () not balanced
while executing
"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/bin/clogin" line 743)


From: rancid-discuss-bounces [at] shrubbery<mailto:rancid-discuss-bounces [at] shrubbery> [mailto:rancid-discuss-bounces [at] shrubbery]<mailto:[mailto:rancid-discuss-bounces [at] shrubbery]> On Behalf Of Marito ...
Sent: October-18-11 3:50 PM
To: rancid-discuss [at] shrubbery<mailto:rancid-discuss [at] shrubbery>
Subject: Re: [rancid] HP Procurve 2810

Gerhard,

Also check if the Procurve can run "show system". Try doing clogin -c 'show system' IPADDRS.

Regards
________________________________
Date: Tue, 18 Oct 2011 13:43:00 -0600
From: b225ccc [at] gmail<mailto:b225ccc [at] gmail>
To: GMourani [at] prival<mailto:GMourani [at] prival>
CC: rancid-discuss [at] shrubbery<mailto:rancid-discuss [at] shrubbery>
Subject: Re: [rancid] HP Procurve 2810

What does router.db look like?
2011/10/18 Gerhard Mourani <GMourani [at] prival<mailto:GMourani [at] prival>>
Hello List,

I've problem making Rancid (version 2.3.6) work with HP Procurve 2810 switches. I'm able to connect to the switch correctly but the generated report is empty! If I check inside the log files, I can see the following:

10.1.6.254<http://10.1.6.254/>: found unexpected command - "show system"
10.1.6.254<http://10.1.6.254/>: missed cmd(s): show stack,write term
10.1.6.254<http://10.1.6.254/>: End of run not found

I use the following parameters in my .cloginrc file:
add autoenable 10.1.6.254 1
add user 10.1.6.254 myadmin
add password 10.1.6.254 mypassword myenpassword

Regards,

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss [at] shrubbery<mailto:Rancid-discuss [at] shrubbery>
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss



--
Brian Talley
b225ccc [at] gmail<mailto:b225ccc [at] gmail>


_______________________________________________ Rancid-discuss mailing list Rancid-discuss [at] shrubbery<mailto:Rancid-discuss [at] shrubbery> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss


GMourani at prival

Oct 18, 2011, 1:02 PM

Post #7 of 8 (1636 views)
Permalink
Re: HP Procurve 2810 [In reply to]

router.db contains the following:
10.1.6.254:hp:up


-----Original Message-----
From: Adam Korab [mailto:adam.korab [at] gmail]
Sent: October-18-11 4:00 PM
To: Gerhard Mourani
Cc: Marito ...; rancid-discuss [at] shrubbery
Subject: Re: [rancid] HP Procurve 2810

Hi Gerhard,

That looks like clogin and the Procurves need to use hlogin (and
hrancid) instead. Copy and paste your router.db please, it may be something like

pc-2810-48g-01:cisco:up

when it ought to be:

pc2810-48g-01:hp:up

--Adam

2011/10/18 Gerhard Mourani <GMourani [at] prival>:
> I get the following error:
>
>
>
> PC-2810-48G-01# couldn't compile regular expression pattern:
> parentheses () not balanced
>
>     while executing
>
> "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/bin/clogin" line 743) PC-2810-48G-01# couldn't compile
> regular expression pattern: parentheses () not balanced
>
>     while executing
>
> "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/bin/clogin" line 743)
>
>
>
>
>
> From: rancid-discuss-bounces [at] shrubbery
> [mailto:rancid-discuss-bounces [at] shrubbery] On Behalf Of Marito ...
> Sent: October-18-11 3:50 PM
> To: rancid-discuss [at] shrubbery
>
> Subject: Re: [rancid] HP Procurve 2810
>
>
>
> Gerhard,
>
> Also check if the Procurve can run "show system". Try doing clogin -c
> 'show system' IPADDRS.
>
> Regards
>
> ________________________________
>
> Date: Tue, 18 Oct 2011 13:43:00 -0600
> From: b225ccc [at] gmail
> To: GMourani [at] prival
> CC: rancid-discuss [at] shrubbery
> Subject: Re: [rancid] HP Procurve 2810
>
> What does router.db look like?
>
> 2011/10/18 Gerhard Mourani <GMourani [at] prival>
>
> Hello List,
>
>
>
> I've problem making Rancid (version 2.3.6) work with HP Procurve 2810
> switches. I'm able to connect to the switch correctly but the
> generated report is empty! If I check inside the log files, I can see the following:
>
>
>
> 10.1.6.254: found unexpected command - "show system"
>
> 10.1.6.254: missed cmd(s): show stack,write term
>
> 10.1.6.254: End of run not found
>
>
>
> I use the following parameters in my .cloginrc file:
>
> add autoenable  10.1.6.254          1
>
> add user                10.1.6.254          myadmin
>
> add password    10.1.6.254           mypassword      myenpassword
>
>
>
> Regards,
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss [at] shrubbery
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>
>
> --
> Brian Talley
> b225ccc [at] gmail
>
>
> _______________________________________________ Rancid-discuss mailing
> list Rancid-discuss [at] shrubbery
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss [at] shrubbery
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
>
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss [at] shrubbery
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss


paul at gear

Oct 21, 2011, 11:01 PM

Post #8 of 8 (1631 views)
Permalink
Re: HP Procurve 2810 [In reply to]

On 19/10/11 05:38, Gerhard Mourani wrote:
> ...
> I’ve problem making Rancid (version 2.3.6) work with HP Procurve 2810
> switches. I’m able to connect to the switch correctly but the generated
> report is empty! If I check inside the log files, I can see the following:
>
>
>
> 10.1.6.254: found unexpected command - "show system"
>
> 10.1.6.254: missed cmd(s): show stack,write term
>
> 10.1.6.254: End of run not found
>
>
>
> I use the following parameters in my *.cloginrc* file:
>
> add autoenable 10.1.6.254 1
>
> add user 10.1.6.254 myadmin
>
> add password 10.1.6.254 mypassword myenpassword

I don't know if it makes any difference, but i have lots of 2810s
working fine. The only difference i can spot between my .cloginrc and
yours is that i don't have an enable password specified. My
understanding (limited as it is) is that if you have created a manager
account on the ProCurve, there is no need for that extra password. If
you remove it, does it work? Also, do you have the required {} around
the password?

Paul

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss [at] shrubbery
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

RANCID users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.