[rancid] Restore of rancid-based hp procurve config files failed

Stefan Metzger metzgers at web.de
Wed Oct 12 05:22:50 UTC 2011


Hi,
 
configured rancid (version 2.3.6, expect version 5.44 on a SLES 11.1) based on different tutorials. Created a user “rancid”, the .cloginrc file, modified the
rancid.conf file, created the svn/cvs repository (rancid-cvs) and tested successfully the login on our hp procurve switch
infrastructure by using hlogin.
 
After running the “rancid-run” script to backup the configuration of a hp procurve 4208 switch, the config file under
/usr/local/rancid/var/<LIST_OF_GROUPS_entry>/configs looks like this:
 
-----
;RANCID-CONTENT-TYPE: hp
;
;Chassis type: J8773A
;Serial Number: SG746VB024
;
;Memory: 47M
;
;Image: stamp:    /sw/code/build/rmm(rm11)
;Image: Mar 12 2010 01:28:36
;Image: L.11.24
;Image: 76
;Image: Boot Image:     Primary
;Image: ROM L.10.03
;
;Flash: Image           Size(Bytes)   Date   Version
;Flash: -----           ----------  -------- -------
;Flash: Primary Image   : 4542313   03/12/10 L.11.24
;Flash: Secondary Image : 4542313   03/12/10 L.11.24
;Flash: Boot Rom Version: L.10.03
;Flash: Current Boot    : Primary
;
;  Status and Counters - Module Information
;   Slot  Module Description                       Serial Number
;   ----- ---------------------------------------- --------------
;   A     ProCurve J9033A Gig-T/SFP vl Module      SG743AM06Y
;   B     ProCurve J8768A 24p Gig-T vl Module      SG744AK0D9
;
; Stacking Status
;  Stack State           : Candidate
;  Transmission Interval : 60
;  Auto Join             : Yes
;
;
hostname "ProCurve Switch 4208vl"
max-vlans 256
module 1 type J9033A
module 2 type J8768A
[…]
;
---------
 
If I try to restore this file by using scp on the switch startup-config (scp <backup file> <login>@<switch-ip>:/cfg/startup-config
I got an error:
 
scp: /cfg/startup-config/: errno = 0xe
 
 
If I backup the config manually by using scp the backup file (header) looks a little bit different:
 
-----
; J8773A Configuration Editor; Created on release #L.11.24
 
hostname "ProCurve Switch 4208vl"
max-vlans 256
module 2 type J8768A
module 1 type J9033A
[…]
 
-----
 
Restoring this one works well.
If I replace the comments header of the rancid backup file by the second one (; J8773A Configuration Editor; Created on release #L.11.24) the restore
works also.
 
Any idea/solution?
 
Br
Stefan
___________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192


More information about the Rancid-discuss mailing list