chrpinedo / rancid-cisco-sb

rancid-cisco-sb
26 stars 25 forks source link

Support for Cisco Small Business in RANCID

Travis CI

Unmaintained. This repository is read-only. I can't continue evolving the script because I don't work with Cisco Small Business switches anymore. You are free to clone this repo and continue evolving it.

Introduction

I like using RANCID to manage a backup of all the network devices of a network: switches, routers, firewalls,... However, RANCID lacks of "official" support for Cisco SG300 series switches. These switches form part of Cisco's Small Business serie and although they are not based on Cisco IOS, they are provided with a CLI with some similar commands to Cisco IOS's ones.

By Googling I found how to backup a Cisco SRW2008P switch with RANCID. I have modified those files to support not only a SRW switch but also a SG300 switch.

These files add support to RANCID in order to backup Cisco Small Business switches that comes with an tenel/SSH CLI:

Caution! Not all switch models of the previous series comes with an telnet/SSH CLI and so they cannot be backed up with RANCID (see Issue #12).

Installation

For RANCID 2.x

'cisco-sb'        => 'csbrancid',

For RANCID 3.x

cisco-sb;script;csbrancid
cisco-sb;login;csblogin

Usage

test.example.com:cisco-sb:up:
add user test.example.com       {user}
add password test.example.com       {password}
add autoenable test.example.com     1
add method test.example.com     ssh
#add method test.example.com        ssh:2222    # SSH port TCP/2222
#add method test.example.com        telnet  # For telnet default TCP port
#add method test.example.com        telnet:2323 # For telnet port TCP/2323
add userprompt test.example.com     {"User Name:"}

Christian Pinedo