You can manage this Document

Backing up a switch config file to TFTP Server via SNMP


Tue, 05/17/2011 - 19:48
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

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.

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.


This Document

Related Content