You can manage this Document

Backing up a switch config file to TFTP Server via SNMP

Document

May 17, 2011 11:30 AM
May 17th, 2011

Here's the procedure to backup a config file for an SGE2010 switch to a TFTP Server using SNMP.

1) Download the MIB files we officially released from cisco.com

http://www.cisco.com/cisco/software/release.html?mdfid=282414069&flowid=3650&softwareid=283415684&release=3.0.0&relind=AVAILABLE&rellifecycle=&reltype=latest

2) Compile the MIB files on MIB browser e.g. MG-SOFT, SilverCreek. Make sure there is no compilation errors.

3) Configure SNMPv2 or SNMPv3 accordingly on SGE2010 switch

4) Look for CISCOSBCopy.mib file.

The OID is SNMPv2-SMI::enterprises(1.3.6.1.4.1).cisco(9).otherEnterpise(6).ciscosb(1).odm1(101).CISCOSBCopy(87)

Using rlCopyTable(2), create an new entry on this particular table:

    a. rlCopyRowStatus: 4 (createAndgo)

   b. rlCopySourceLocation: 1  (local)
    c. rlCopySourceIpAddress: 0.0.0.0

    d. rlCopySourceUnitNumber: 1
    e. rlCopySourceFileName: (blank)
    f. rlCopySourceFileType: 3 (startup config), 2 is for running config


    g. rlCopyDestinationLocation: 3 (tftp)
    h. rlCopyDestinationIpAddress: 192.168.10.22 (tftp server ip)

    i. rlCopyDestinationUnitNumber: 1
    j. rlCopyDestinationFileName:  0x61:62:63 (in hex, abc)

By doing that, it should able to backup device startup config from device to remove tftp server.

Average Rating: 0 (0 ratings)

Comments

tgen-jmolina Tue, 05/17/2011 - 19:48

Most excellent.  I think I'll write a shell script to automatically back up configs and maybe integrate into RANCID.

Actions

Login or Register to take actions

This Document

Posted May 17, 2011 at 11:30 AM
Stats:
Comments:1 Avg. Rating:0
Views:1356 Contributors:1
Shares:0

Related Content