RANCID and CVS. PacNOG 6 Nadi, Fiji



Similar documents
Rancid Server Build and Operation Overview (v0.3) (This is being done from memory so expect some errors)

Version Control Systems

How To Install Cisco Asr 9000 Series Router Software On A Mini Mini Mini (Cisco Ios) Router

HOW TO CONFIGURE CISCO FIREWALL PART I

Continuous Integration. CSC 440: Software Engineering Slide #1

Version control. HEAD is the name of the latest revision in the repository. It can be used in subversion rather than the latest revision number.

Router Recovery with ROM Monitor

1 Basic Configuration of Cisco 2600 Router. Basic Configuration Cisco 2600 Router

Tracking Network Changes Using Change Audit

Read Me First for the HP ProCurve Routing Switch 9304M and Routing Switch 9308M

Version Control with Subversion

File Transfers. Contents

The RT module VT6000 (VT6050 / VT6010) can be used to enhance the RT. performance of CANoe by distributing the real-time part of CANoe to a

Prisma II Software Upgrade Program (SOUP) Installation Guide

Installing the Operating System or Hypervisor

Honeywell Internet Connection Module

Load Balancing for esafe Gateway 3.0 when using Alteon s AD2 or AD3

IT6204 Systems & Network Administration. (Optional)

Monitoring the Firewall Services Module

NETWRIX EVENT LOG MANAGER

File Transfers. Contents

Objectives Understand Cisco IOS system architecture components. Work with the Cisco IOS Command Line Interface (CLI) and common commands.

HP LeftHand SAN Solutions

Using Subversion in Computer Science

Introduction to Cisco router configuration

A message from Plixer International:

TECHNICAL NOTE SETTING UP A STRM UPDATE SERVER. Configuring your Update Server

Lab Introductory Lab 1 - Getting Started and Building Start.txt

Applicazioni Telematiche

Using Network Attached Storage with Linux. by Andy Pepperdine

SDRAM and DRAM Memory Systems Overview

Lab Introductory Lab 1 Getting Started and Building Start.txt

Password Recovery Procedure for the Cisco 2900 Series Integrated Services Router

3.1 Connecting to a Router and Basic Configuration

DESLock+ Basic Setup Guide Version 1.20, rev: June 9th 2014

Note: This case study utilizes Packet Tracer. Please see the Chapter 5 Packet Tracer file located in Supplemental Materials.

Lexia Network Installation Instructions

Network monitoring systems & tools

Cisco TelePresence VCR MSE 8220

Version Control with Git. Linux Users Group UT Arlington. Rohit Rawat

Procedure: You can find the problem sheet on Drive D: of the lab PCs. Part 1: Router & Switch

Continuous Integration (CI) and Testing - Configuring Bamboo, Hudson, and TestMaker

Operations Management and Open Source Tools

USB Secure Management for ProCurve Switches

Cisco Routers and Switches

Network Management & Monitoring Overview

How To Set Up Safetica Insight 9 (Safetica) For A Safetrica Management Service (Sms) For An Ipad Or Ipad (Smb) (Sbc) (For A Safetaica) (

Dell SupportAssist Version 2.0 for Dell OpenManage Essentials Quick Start Guide

Contents 1. Introduction 2. Security Considerations 3. Installation 4. Configuration 5. Uninstallation 6. Automated Bulk Enrollment 7.

DRO-210i LOAD BALANCING ROUTER. Review Package Contents

Web Testing, Java Testing, Server Monitoring. AppPerfect Installation Guide

Veritas Cluster Server

Floating License Installation Guide for Windows

Connecting to the Firewall Services Module and Managing the Configuration

Getting Started with Attunity CloudBeam for Azure SQL Data Warehouse BYOL

APPLICATION NOTE. How to build pylon applications for ARM

VMTurbo Operations Manager 4.5 Installing and Updating Operations Manager

WebSpy Vantage Ultimate 2.2 Web Module Administrators Guide

BMC BladeLogic Client Automation Installation Guide

How to deploy console cable to connect WIAS-3200N and PC, to reset setting or check status via console

CDUfiles User Guide. Chapter 1: Accessing your data with CDUfiles. Sign In. CDUfiles User Guide Page 1. Here are the first steps to using CDUfiles.

Table of Contents. Cisco Using the Cisco IOS Firewall to Allow Java Applets From Known Sites while Denying Others

ALERT installation setup

Network Simulator Lab Study Plan

NSi Mobile Installation Guide. Version 6.2

Source Code Management/Version Control

Troubleshooting the Firewall Services Module

How Do I Upgrade Firmware and Save Configurations on PowerConnect Switches?

Troubleshooting the Firewall Services Module

Using Debug Commands

Configuring a Gateway of Last Resort Using IP Commands

McAfee Network Threat Response (NTR) 4.0

Configuring Secure Socket Layer (SSL) for use with BPM 7.5.x

Debugging Network Communications. 1 Check the Network Cabling

Lab Configuring Syslog and NTP (Instructor Version)

BF2CC Daemon Linux Installation Guide

VRC 7900/8900 Avalanche Enabler User s Manual

Chapter 6 Using Network Monitoring Tools

Mercury User Guide v1.1

SOA Software API Gateway Appliance 7.1.x Administration Guide

Administering the Network Analysis Module. Cisco IOS Software. Logging In to the NAM with Cisco IOS Software CHAPTER

SmartFiler Backup Appliance User Guide 2.0

Manual. CollabNet Subversion Connector to HP Quality Center. Version 1.2

PFSENSE Load Balance with Fail Over From Version Beta3

Table of Contents. The RCS MINI HOWTO

Avaya Network Configuration Manager User Guide

: HP HP Version : R6.1

PZVM1 Administration Guide. V1.1 February 2014 Alain Ganuchaud. Page 1/27

Chapter 6 Updating Software Images and Configuration Files

Configuring Logging. Information About Logging CHAPTER

Extending Remote Desktop for Large Installations. Distributed Package Installs

ROM Monitor. Entering the ROM Monitor APPENDIX

Prerequisites Guide. Version 4.0, Rev. 1

How To Use Gfi Mailarchiver On A Pc Or Macbook With Gfi From A Windows 7.5 (Windows 7) On A Microsoft Mail Server On A Gfi Server On An Ipod Or Gfi.Org (

enetworks TM Using the Syslog Feature C.1 Configuring the Syslog Feature

Lab - Using IOS CLI with Switch MAC Address Tables

Workflow Templates Library

Administrative Guide VtigerCRM Microsoft Exchange Connector (Exchange Server 2010)

Transcription:

RANCID and CVS PacNOG 6 Nadi, Fiji

Overview what is CVS? Version Control Systems: CVS Mercurial RCS Subversion RANCID works with CVS to as a version control system for network hardware configurations.

What is Version Control? Version control, and change management - Keep track of changes (revisions) - Share changes with others (public repository) - Maintain multiple versions of a same set of data (branches) What types of data? - Source code - Documentation - Configuration files ( efficient - Binary data as well (less

CVS terminology repository - Central, master copy containing all files being versioned. Directory structured working copy - Local copy of a project, checked out from a repository. Contains special directories (CVS) with information about which files are under CVS control, where they files come from and where they should be committed. module - A set of directories, files or other modules under a common shortcut name

CVS principles CVS uses a centralized master copy : the repository All work is done in a working copy Changes are committed back to the repository Special directory, CVS

CVS the repository ( repository CVS is a centralized VCS (1 The repository contains files in the RCS format, all ending in ',v ' Each RCS file contains a complete history, with changelog, of the file being versioned Well adapted to text files The repository is NEVER edited by hand A number of tools exist to analyze or browse the repository - cvsweb/webcvs

CVS example workflow cont'd

CVS clients Exist for most operating systems ( Win32 - cvs command line (UNIX, ( Win32 ) - TortoiseCVS embeds in Explorer ( Win32 ) - WinCVS -... Access the repository over the network or locally

What's in the CVS/ directory? Entries - existing files, and newly added files Root - where is the repository located Repository - name of module or path in the repository

The Big Picture mail, CVSWeb, lists

Automated scenarios Idea: automatize configuration management tasks so that configuration files are automatically versioned using CVS...... even when the sysadmin forgets :) Implementation cron job - look at all files in a given directory - if they exist in the repository already -> commit - if they don't, add, then commit

Automated scenarios cont'd Already exists for network equipment: RANCID - http://www.shrubbery.net/rancid/ Simple concept to implement for all relevant files in /etc Subscribe all admins to the alias / mailing list, so everyone receives a notification when a change takes place whether planned or not!

RANCID Really Awesome New Cisco Differ Availabe from http://www.shrubbery.net/rancid/ Designed initially for Cisco routers but now suppors other manufacturers and models such as: - Juniper, Foundry, Extreme, Redback, Alteon, HP Procurve, Force10, etc. Basic Operations - Via RANCID download the equipment s configuration via commands (such as show) - Manipulate the information: Remove confidential information such as passwords - You can compare information with last saved copy - Notify of changes (via email by default) - Save the latest version (and all prior versions) in an version control system: Subversion CVS

RANCID: Example In this example a Gigabit ethernet card has been removed: From: rancid <rancid@example.com> To: rancid-example@example.com Subject: example router config diffs Precedence: bulk Index: configs/dfw.example.com ================================================================ === retrieving revision 1.144 diff -u -4 -r1.144 dfw.example.com @@ -57,14 +57,8 @@!Slot 2/MBUS: hvers 1.1!Slot 2/MBUS: software 01.36 (RAM) (ROM version is 01.33)!Slot 2/MBUS: 128 Mbytes DRAM, 16384 Kbytes SDRAM! -!Slot 6: 1 Port Gigabit Ethernet -!Slot 6/PCA: part 73-3302-03 rev C0 ver 3, serial CAB031216OL -!Slot 6/PCA: hvers 1.1 -!Slot 6/MBUS: part 73-2146-07 rev B0 dev 0, serial CAB031112SB -!Slot 6/MBUS: hvers 1.2 -!Slot 6/MBUS: software 01.36 (RAM) (ROM version is 01.33)!Slot 7: Route Processor!Slot 7/PCA: part 73-2170-03 rev B0 ver 3, serial CAB024901SI!Slot 7/PCA: hvers 1.4!Slot 7/MBUS: part 73-2146-06 rev A0 dev 0, serial CAB02060044 @@ -136,11 +130,8 @@ boot system flash slot0: logging buffered 32768 debugging no logging console enable secret 5 $1$73Y1$grXuRjuZxfSiLYv1sBRUz0

RANCID: Testing Check a router via RANCID bin/clogin <ip del router> Test all the devices that you have manually configured: - bin/rancid-run Check to see if there are errors in the logs (logs/*) FAQ de Rancid: http://www.shrubbery.net/rancid/faq Repeat until no errors The last configuration can be found in: - /usr/local/rancid/var/<group>/configs/

RANCID: Automating Create an entry in cron to periodically check for revisions and store these to the VCS. - Depending on how many devices you have configured RANCID may need enough time between runs to check all the device configurations: # su rancid # crontab -e 1 * * * * /usr/local/rancid/bin/rancid-run 50 23 * * * /usr/bin/find /usr/local/rancid/logs -type f -mtime +2 -exec rm {} \;

Sample RANCID Install 1. Install an MTA (postfix in our case) on the box where RANCID will run. 2. Configure postfix 3. Install RANCID 4. Create a rancid user 5. Configure RANCID so that you can access your devices automatically 6. Initial the VCS (in our case CVS) 7. Create cron entry for RANCID 8. Do stuff on the your devices (routers) 9. See the change results (diffs) using CVSWeb, ViewVC, etc.

ViewVC Sample

CVSWeb Example