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

Mailing List Archive: RANCID: Users

Support for the Cisco SF300

 

 

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


relst at relst

Jun 16, 2013, 10:10 PM

Post #1 of 8 (3459 views)
Permalink
Support for the Cisco SF300

Howdy,

Does RANCID supports the Cisco SF300 SMB switches? The regular 'cisco' and
the 'cisco-sb' (from
http://chrpinedo.blogspot.nl/2012/03/cisco-small-business-sg300-backup-with
.html) give me an empty file in the cvs, while direct logging in on the
switch and doing a sho ru (after enable) works just fine.

Any tips or help?


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


alan.mckinnon at gmail

Jun 17, 2013, 7:38 AM

Post #2 of 8 (3385 views)
Permalink
Re: Support for the Cisco SF300 [In reply to]

On 17/06/2013 07:10, Remy van Elst wrote:
> Howdy,
>
> Does RANCID supports the Cisco SF300 SMB switches? The regular 'cisco' and
> the 'cisco-sb' (from
> http://chrpinedo.blogspot.nl/2012/03/cisco-small-business-sg300-backup-with
> .html) give me an empty file in the cvs, while direct logging in on the
> switch and doing a sho ru (after enable) works just fine.
>
> Any tips or help?

Have you checked the usual:

- password, username and method correct in ~/.cloginrc
- No ">" and "#" chars in banner
- prompt is sane (ends in # when enabled)
- does clogin <hostname> work and enable the user?
- what's in the logs?

- "rancid -d <hostname>" leaves a .new file in . that often contains clues


--
Alan McKinnon
alan.mckinnon [at] gmail

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


nicolas-ml at deffayet

Jun 18, 2013, 1:22 PM

Post #3 of 8 (3485 views)
Permalink
Re: Support for the Cisco SF300 [In reply to]

On Mon, 2013-06-17 at 07:10 +0200, Remy van Elst wrote:
Hello,

> Does RANCID supports the Cisco SF300 SMB switches? The regular 'cisco' and
> the 'cisco-sb' (from
> http://chrpinedo.blogspot.nl/2012/03/cisco-small-business-sg300-backup-with
> .html) give me an empty file in the cvs, while direct logging in on the
> switch and doing a sho ru (after enable) works just fine.
>
> Any tips or help?

I have updated original Christian Pinedo's work for support Cisco Small
Business switch in Rancid:
- Rancid 2.3.8 support
- End of run fix (important for be sure to get the full configuration
dump)

Updated files can be found in attachment.



--
Nicolas DEFFAYET
Attachments: csblogin (16.1 KB)
  csbrancid (12.3 KB)


morten at dintid

Jun 30, 2013, 6:52 AM

Post #4 of 8 (3351 views)
Permalink
Support for the Cisco SF300 [In reply to]

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.
------------------
rancid [at] ubunt:~$ bin/clogin sg300-10p
sg300-10p
spawn ssh -c 3des -x -l rancid sg300-10p
rancid [at] sg300-10'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 at gmail

Jun 30, 2013, 1:26 PM

Post #5 of 8 (3343 views)
Permalink
Re: Support for the Cisco SF300 [In reply to]

On 30/06/2013 15:52, Morten Nielsen wrote:
> 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.
>
> ------------------
>
> rancid [at] ubunt:~$ bin/clogin sg300-10p
>
> sg300-10p
>
> spawn ssh -c 3des -x -l rancid sg300-10p
>
> rancid [at] sg300-10'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

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
alan.mckinnon [at] gmail

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


howie at thingy

Jul 1, 2013, 1:23 AM

Post #6 of 8 (3348 views)
Permalink
Re: Support for the Cisco SF300 [In reply to]

On 30/06/2013 14:52, Morten Nielsen wrote:
>
> 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]
>
> 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.
>
> ------------------
>
> rancid [at] ubunt:~$ bin/clogin sg300-10p
>
> sg300-10p
>
> spawn ssh -c 3des -x -l rancid sg300-10p
>
> rancid [at] sg300-10's password:
>
>
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
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss [at] shrubbery
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss


heas at shrubbery

Jul 1, 2013, 9:15 AM

Post #7 of 8 (3334 views)
Permalink
Re: Support for the Cisco SF300 [In reply to]

Sun, Jun 30, 2013 at 10:26:53PM +0200, Alan McKinnon:
> On 30/06/2013 15:52, Morten Nielsen wrote:
> > 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?

> > 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.
> >
> > ------------------
> >
> > rancid [at] ubunt:~$ bin/clogin sg300-10p
> >
> > sg300-10p
> >
> > spawn ssh -c 3des -x -l rancid sg300-10p
> >
> > rancid [at] sg300-10'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
>
> 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
> alan.mckinnon [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


morten at dintid

Jul 8, 2013, 10:18 AM

Post #8 of 8 (3328 views)
Permalink
Re: Support for the Cisco SF300 [In reply to]

Jun 30, 2013, 1:26 PM, alan.mckinnon at gmail wrote:

> 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.

I werent even aware of this feature, but after testing it, I can say it does not.



Doing a -d using clogin I did get some more usefull info though, which corresponds wih my findings that it is an SSH issue between my rancid and the switch.



Jul 1, 2013, 1:23 AM, howie at thingy wrote:

> 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...



I weren't aware of the csblogin thingie as I'm total linux newbie, but the issue is the same nonetheless.



I'm rather confused as I can log into the device using telnet using either "clogin" or "csblogin" either way.



After I asked the first question I found that it is propably some SSH issue between rancid and my switch, as it works fine using just telnet.



Jul 1, 2013, 9:15 AM, heas at shrubbery wrote:

> are they not using the usual IOS cli?

Not entirely. The commands are % 90+ but not all IOS.

My SG200 don't have any cli access at all, which is even worse.



Cli reference /adm guide.

https://supportforums.cisco.com/servlet/JiveServlet/download/3431571-112802/300%20series%20CLI%20firmware%201.1.pdf

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.