Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Backing up a switch config file to TFTP Server via SNMP

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

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(

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

    a. rlCopyRowStatus: 4 (createAndgo)

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

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

    g. rlCopyDestinationLocation: 3 (tftp)
    h. rlCopyDestinationIpAddress: (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.

Version history
Revision #:
1 of 1
Last update:
‎05-17-2011 11:30 AM
Updated by:
Labels (1)
Everyone's tags (1)
New Member

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