cssrancid script issues

Jeremy M. Guthrie jeremy.guthrie at berbee.com
Thu Jul 29 03:06:08 UTC 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Two problems:
1.  I am not fluent in perl.  I've been able hack a few things but not 
successfully make major changes.  Not that I expect people to fix me but I 
may be able to offer access to test hardware.
2.  When I run cssrancid on a 2nd Generate CSS I get:
cssrancid -d l-cust-msn-1.msn-cust.com
executing clogin -t 90 -c"term length 65535;copy profile user-profile;show 
version;show boot;show running-config" l-cust-msn-1.msn-cust.com
HIT COMMAND:l-harley-msn-1#  term length 65535
HIT COMMAND:l-harley-msn-1#  term length 65535
l-cust-msn-1.msn-cust.com: found unexpected command - "term length 65535"
HIT COMMAND:l-harley-msn-1# copy profile user-profile
HIT COMMAND:l-harley-msn-1# copy profile user-profile
l-cust-msn-1.msn-cust.com: found unexpected command - "copy profile 
user-profile"
HIT COMMAND:l-harley-msn-1# show version
    In ShowVersion: l-harley-msn-1# show version
HIT COMMAND:l-harley-msn-1# show running-config
    In ShowRun: l-harley-msn-1# show running-config
l-cust-msn-1.msn-cust.com: missed cmd(s): show boot
l-cust-msn-1.msn-cust.com: missed cmd(s): show boot
l-cust-msn-1.msn-cust.com: End of run not found
l-cust-msn-1.msn-cust.com: End of run not found

My questions
1.  why the complaints about the unexpected commands when they should be 
expected from what I can tell by looking at the code?
2.  it is complaining about not seeing End of run, so I changed:
	# end of config.  the ": " game is for the PIX
        if (/^(: +)?end$/ || /CSS.*#/ || /$prompt/ ) {
            $found_end = 1;

to

	# end of config.  the ": " game is for the PIX
        if (/^(: +)?end$/ || /l-.*#/ || /CSS.*#/ || /$prompt/ ) {
            $found_end = 1;

These changes did not fix this.  We change our CSS prompt to reflect which CSS 
we're actually on rather than leaving the Cisco default(ie.  CSS11501 or 
CSS11050).  How do I fix this?  It fails on both Gen-1 CSSes and Gen-2.

For sure I can provide access to a CSS11050(aka 1st gen) device.  I may be 
able to provide a 2nd gen(11501/3/6).  Plus I have a few more commands we may 
want to add(a la 'show scripts', 'show ssl files') , etc... 



- -- 

- --------------------------------------------------
Jeremy M. Guthrie        jeremy.guthrie at berbee.com
Senior Network Engineer        Phone: 608-298-1061
Berbee                           Fax: 608-288-3007
5520 Research Park Drive         NOC: 608-298-1102
Madison, WI 53711
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBCGmyqtjaBHGZBeURAuS0AJ9phGrckLcDhyud/jesej6XF5ThcACfT9sd
z3yvVUCFXM1yt9BG0OQSBSk=
=DMbk
-----END PGP SIGNATURE-----



More information about the Rancid-discuss mailing list