Discussion:
[rancid] Support for the Cisco SF300
Morten Nielsen
2013-06-30 13:52:15 UTC
Permalink
Been trying to add support for the Cisco Small business switches in my Rancid 2.38.

I finally found the updated versions of csbrancid and csblogin files here but still seems to be some issue with my SG300
http://www.gossamer-threads.com/lists/rancid/users/6910

Maybe i miss something with this line, as I don't know what he means:?
"- End of run fix (important for be sure to get the full configuration dump)"

My log just says:
Trying to get all of the configs.
sg300-10p csblogin error: Error: TIMEOUT reached
sg300-10p missed cmd(s): show version,show system,show startup-config
sg300-10p End of run not found

I can log in just fine using .clogin sg300-10p
Only odd thing is the 4 blank lines, but I don't know if they are important.
------------------
***@ubuntu:~$ bin/clogin sg300-10p
sg300-10p
spawn ssh -c 3des -x -l rancid sg300-10p
***@sg300-10p's password:




SG300-10P#
SG300-10P#
------------------

My .cloginrc
# Switches
add userprompt sg*.* {"User Name:"}
add user sg*.* {rancid}
add password sg*.* {pass}
add autoenable sg*.* 1
add method sg*.* ssh

I've commenting lines out, removing {} and googled a lot, so feel I've tried evertyhing but to no avail.

Hope someone have some idea :)
Alan McKinnon
2013-06-30 20:26:53 UTC
Permalink
Post by Morten Nielsen
Been trying to add support for the Cisco Small business switches in my Rancid 2.38.
I finally found the updated versions of csbrancid and csblogin files
here but still seems to be some issue with my SG300
http://www.gossamer-threads.com/lists/rancid/users/6910
Maybe i miss something with this line, as I don’t know what he means:?
”- End of run fix (important for be sure to get the full configuration
dump)”
Trying to get all of the configs.
sg300-10p csblogin error: Error: TIMEOUT reached
sg300-10p missed cmd(s): show version,show system,show startup-config
sg300-10p End of run not found
I can log in just fine using .clogin sg300-10p
Only odd thing is the 4 blank lines, but I don’t know if they are important.
------------------
sg300-10p
spawn ssh -c 3des -x -l rancid sg300-10p
SG300-10P#
SG300-10P#
------------------
My .cloginrc
# Switches
add userprompt sg*.* {"User Name:"}
add user sg*.* {rancid}
add password sg*.* {pass}
add autoenable sg*.* 1
add method sg*.* ssh
I’ve commenting lines out, removing {} and googled a lot, so feel I’ve
tried evertyhing but to no avail.
Hope someone have some idea
Does csbrancid support -d like regular rancid does? If so

csbrancid -d >hostname>

let it complete and a full log is left in the current directory. It
usually has enough info for you to figure out why it failed.
--
Alan McKinnon
***@gmail.com
heasley
2013-07-01 16:15:10 UTC
Permalink
Post by Alan McKinnon
Post by Morten Nielsen
Been trying to add support for the Cisco Small business switches in my Rancid 2.38.
I finally found the updated versions of csbrancid and csblogin files
here but still seems to be some issue with my SG300
http://www.gossamer-threads.com/lists/rancid/users/6910
are they not using the usual IOS cli?
Post by Alan McKinnon
Post by Morten Nielsen
Maybe i miss something with this line, as I don?t know what he means:?
?- End of run fix (important for be sure to get the full configuration
dump)?
Trying to get all of the configs.
sg300-10p csblogin error: Error: TIMEOUT reached
sg300-10p missed cmd(s): show version,show system,show startup-config
sg300-10p End of run not found
I can log in just fine using .clogin sg300-10p
Only odd thing is the 4 blank lines, but I don?t know if they are important.
------------------
sg300-10p
spawn ssh -c 3des -x -l rancid sg300-10p
SG300-10P#
SG300-10P#
------------------
My .cloginrc
# Switches
add userprompt sg*.* {"User Name:"}
add user sg*.* {rancid}
add password sg*.* {pass}
add autoenable sg*.* 1
add method sg*.* ssh
I?ve commenting lines out, removing {} and googled a lot, so feel I?ve
tried evertyhing but to no avail.
Hope someone have some idea
Does csbrancid support -d like regular rancid does? If so
csbrancid -d >hostname>
let it complete and a full log is left in the current directory. It
usually has enough info for you to figure out why it failed.
--
Alan McKinnon
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Howard Jones
2013-07-01 08:23:03 UTC
Permalink
Post by Morten Nielsen
I finally found the updated versions of csbrancid and csblogin files
here but still seems to be some issue with my SG300
http://www.gossamer-threads.com/lists/rancid/users/6910
[snip]
Post by Morten Nielsen
I can log in just fine using .clogin sg300-10p
Only odd thing is the 4 blank lines, but I don’t know if they are
important.
------------------
sg300-10p
spawn ssh -c 3des -x -l rancid sg300-10p
You downloaded a csblogin/csbrancid (which RANCID is using), but you are
testing using clogin (the regular Cisco version). To see what's going
on, try using the same login program RANCID is! :-)

bin/csblogin sg300-10p

It might be a start, at least...

Howie
Loading...