Discussion:
[rancid] Malfunction between rancid and HP 2910.
Vincent LOUPIEN
2011-09-09 15:03:06 UTC
Permalink
Hi all,

We replaced the old good HP Procurve 2650 by more resent HP Procurve 2910 and since, rancid refuse to backup theirs configurations, while this was going very well with 2650. All the parameters seem correct (telnet / ssh, password ...) and are becoming the same as for 2650.

Debugging using clogin works very well but with the use of rancid-run in crond, it creates problems without messages/errors.
I tried also use Foundry group in place of HP to operate but with no success. Same rancid backup Cisco switchs/routers with no problem.

Do you have an idea where this problem come from or "search paths".

Debian version of rancid = 2.3.2~a8-4
HP Procurve 2910 firmware = W.14.49.

Regards,
--
____________________________________________________________
Vincent LOUPIEN - Direction des Systemes d'Information
Batiment Langues, Nouvelles Technologies - Bureau 37
Universite Pierre Mendes France - Domaine Universitaire
79, rue des Universites - BP 47 - F-38040 Grenoble Cedex 9
Tel : (+33).04.76.82.57.58 - Fax : (+33).04.76.82.83.13
____________________________________________________________
N K Krishnan
2011-09-11 14:58:35 UTC
Permalink
hlogin/hrancid seems to work with the 2910al-48G with W.14.49 and rancid
2.3.2a8.

one relatively trivial change in hrancid - more than likely unrelated to our
2910al-48G acquisition.

206c206
< # This routine parses "show system-information"
---
# This routine parses "show system"
464c464
< {'show system-information' => 'ShowSystem'},
---
{'show system' => 'ShowSystem'},
On Fri, Sep 9, 2011 at 8:03 AM, Vincent LOUPIEN <
Hi all,
We replaced the old good HP Procurve 2650 by more resent HP Procurve 2910
and since, rancid refuse to backup theirs configurations, while this was
going very well with 2650. All the parameters seem correct (telnet / ssh,
password ...) and are becoming the same as for 2650.
Debugging using clogin works very well but with the use of rancid-run in
crond, it creates problems without messages/errors.
I tried also use Foundry group in place of HP to operate but with no
success. Same rancid backup Cisco switchs/routers with no problem.
Do you have an idea where this problem come from or "search paths".
Debian version of rancid = 2.3.2~a8-4
HP Procurve 2910 firmware = W.14.49.
Regards,
--
____________________________________________________________
Vincent LOUPIEN - Direction des Systemes d'Information
Batiment Langues, Nouvelles Technologies - Bureau 37
Universite Pierre Mendes France - Domaine Universitaire
79, rue des Universites - BP 47 - F-38040 Grenoble Cedex 9
Tel : (+33).04.76.82.57.58 - Fax : (+33).04.76.82.83.13
____________________________________________________________
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
john heasley
2011-09-11 18:53:07 UTC
Permalink
Post by N K Krishnan
hlogin/hrancid seems to work with the 2910al-48G with W.14.49 and rancid
2.3.2a8.
one relatively trivial change in hrancid - more than likely unrelated to our
2910al-48G acquisition.
206c206
< # This routine parses "show system-information"
---
# This routine parses "show system"
464c464
< {'show system-information' => 'ShowSystem'},
---
{'show system' => 'ShowSystem'},
does 'show system information' work? you may just need to upgrade rancid.
N K Krishnan
2011-09-11 19:11:45 UTC
Permalink
yes, `show system information' does work.

since the setup is working so well for so long (many thanks are due) there
is little motivation to change. we will catch up at the next problem or
underlying system transition.

cheers.
Post by john heasley
Post by N K Krishnan
hlogin/hrancid seems to work with the 2910al-48G with W.14.49 and rancid
2.3.2a8.
one relatively trivial change in hrancid - more than likely unrelated to
our
Post by N K Krishnan
2910al-48G acquisition.
206c206
< # This routine parses "show system-information"
---
# This routine parses "show system"
464c464
< {'show system-information' => 'ShowSystem'},
---
{'show system' => 'ShowSystem'},
does 'show system information' work? you may just need to upgrade rancid.
Vincent LOUPIEN
2011-09-16 14:33:39 UTC
Permalink
Hello John,

----- Mail original -----
Post by Vincent LOUPIEN
Hi all,
We replaced the old good HP Procurve 2650 by more resent HP Procurve
2910 and since, rancid refuse to backup theirs configurations, while
this was going very well with 2650. All the parameters seem correct
(telnet / ssh, password ...) and are becoming the same as for 2650.
Debugging using clogin works very well but with the use of
rancid-run in crond, it creates problems without messages/errors.
hlogin is for hp switches with the hp o/s, which i think began as
procurve. test with that. else, look for errors in the group's log
file.
When i execute hlogin (telnet connexion without user) , this is what i get (but no trace in the log in "/var/log/rancid/") :
linux:/var/lib/rancid/bin# ./hlogin -c "show version" hp2910
hp2910
spawn hpuifilter -- telnet hp2910

Error: telnet failed: couldn't execute "hpuifilter": no such file or directory


... And when i execute clogin, this is what i get (but still no trace) :
linux:/var/lib/rancid/bin# ./clogin -c "show version" hp2910
hp2910
spawn telnet hp2910
Trying xxx.xxx.xxx.xxx...
Connected to hp2910
Escape character is '^]'.

Password:

hp2910# couldn't compile regular expression pattern: parentheses () not balanced
while executing
"expect -nobrace -re { [55;1H([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[
]+} { exp_continue }"
invoked from within
"expect {
-re $reprompt {}
-re "\[\n\r]+" { exp_continue }
}"
(procedure "run_commands" line 23)
invoked from within
"run_commands $prompt $command"
("foreach" body line 171)
invoked from within
"foreach router [lrange $argv $i end] {
set router [string tolower $router]
# attempt at platform switching.
set platform ""
send_user ..."
(file "./clogin" line 769)


Do you have an idea where this problem will come again ?

Regards,
--
____________________________________________________________
Vincent LOUPIEN - Direction des Systemes d'Information
Batiment Langues, Nouvelles Technologies - Bureau 37
Universite Pierre Mendes France - Domaine Universitaire
79, rue des Universites - BP 47 - F-38040 Grenoble Cedex 9
Tel : (+33).04.76.82.57.58 - Fax : (+33).04.76.82.83.13
____________________________________________________________
Per-Olof Olsson
2011-09-16 18:14:17 UTC
Permalink
Post by Vincent LOUPIEN
Hello John,
----- Mail original -----
Post by Vincent LOUPIEN
Hi all,
We replaced the old good HP Procurve 2650 by more resent HP Procurve
2910 and since, rancid refuse to backup theirs configurations, while
this was going very well with 2650. All the parameters seem correct
(telnet / ssh, password ...) and are becoming the same as for 2650.
Debugging using clogin works very well but with the use of
rancid-run in crond, it creates problems without messages/errors.
hlogin is for hp switches with the hp o/s, which i think began as
procurve. test with that. else, look for errors in the group's log
file.
linux:/var/lib/rancid/bin# ./hlogin -c "show version" hp2910
hp2910
spawn hpuifilter -- telnet hp2910
Error: telnet failed: couldn't execute "hpuifilter": no such file or directory
Is it the problem with stacking enabled on hp2910 switches?

1. Looks like you run rancid command as root. Don't! You will end up
with files not owned by your ranciduser and get more trouble.

2. If you are running as rancid-user I thing you get correct path
settings to find hpuifiler. hpuifiler and hlogin is proper installed in
your "rancid/bin"-dir if it's work for 2650's.

3. clogin don't use hpuifiler so it will not work to with Procurve switches.

4. There is a new prompt on hp2910, if you have "stacking" enabled.
Test to turn off stacking and run hlogin/rancid-run as you do with 2650's.
If you start using ssh to login, you can find a patch for ssh login to
2910 switch stack member 0, posted pevious on this list.

/Peo
----------------------------------------------------------
Per-Olof Olsson Email: ***@chalmers.se
Chalmers tekniska högskola IT-service
Hörsalsvägen 5 412 96 Göteborg
Tel: 031/772 6738 Fax: 031/772 8680
----------------------------------------------------------
Post by Vincent LOUPIEN
linux:/var/lib/rancid/bin# ./clogin -c "show version" hp2910
hp2910
spawn telnet hp2910
Trying xxx.xxx.xxx.xxx...
Connected to hp2910
Escape character is '^]'.
hp2910# couldn't compile regular expression pattern: parentheses () not balanced
while executing
"expect -nobrace -re { [55;1H([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[
]+} { exp_continue }"
invoked from within
"expect {
-re $reprompt {}
-re "\[\n\r]+" { exp_continue }
}"
(procedure "run_commands" line 23)
invoked from within
"run_commands $prompt $command"
("foreach" body line 171)
invoked from within
"foreach router [lrange $argv $i end] {
set router [string tolower $router]
# attempt at platform switching.
set platform ""
send_user ..."
(file "./clogin" line 769)
Do you have an idea where this problem will come again ?
Regards,
john heasley
2011-09-19 20:07:50 UTC
Permalink
Post by Per-Olof Olsson
1. Looks like you run rancid command as root. Don't! You will end up
with files not owned by your ranciduser and get more trouble.
yes, dont run rancid-run as any user but the ranciduser or whomever owns
the rancid repository (/var/rancid). you can run clogin, rancid, hrancid,
etc as any user, but not in the respository.
Post by Per-Olof Olsson
2. If you are running as rancid-user I thing you get correct path
settings to find hpuifiler. hpuifiler and hlogin is proper installed
in your "rancid/bin"-dir if it's work for 2650's.
not necessarily; rancid.conf adjusts the PATH based on the configure
results.
Post by Per-Olof Olsson
3. clogin don't use hpuifiler so it will not work to with Procurve switches.
right; flogin will work with some procurves, those which are foundry OEMs
john heasley
2011-09-19 20:04:16 UTC
Permalink
Post by Vincent LOUPIEN
Hello John,
----- Mail original -----
Post by Vincent LOUPIEN
Hi all,
We replaced the old good HP Procurve 2650 by more resent HP Procurve
2910 and since, rancid refuse to backup theirs configurations, while
this was going very well with 2650. All the parameters seem correct
(telnet / ssh, password ...) and are becoming the same as for 2650.
Debugging using clogin works very well but with the use of
rancid-run in crond, it creates problems without messages/errors.
hlogin is for hp switches with the hp o/s, which i think began as
procurve. test with that. else, look for errors in the group's log
file.
linux:/var/lib/rancid/bin# ./hlogin -c "show version" hp2910
hp2910
spawn hpuifilter -- telnet hp2910
Error: telnet failed: couldn't execute "hpuifilter": no such file or directory
hlogin inherits the PATH of whomever executes it. add the location of
hpuifilter to your PATH and try again.
Post by Vincent LOUPIEN
"expect -nobrace -re { [55;1H([^#>\r\n]+)?[#>](\([^)\r\n]+\))?} {} -re {[
^^^^^^
implies to me that hlogin will work.
Loading...