cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3770
Views
0
Helpful
1
Comments
Ivor Diedricks
Cisco Employee
Cisco Employee

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.

Comments
tgen-jmolina
Level 1
Level 1

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: