SGE2010 How do I trigger backups via SNMP?

Linksys, Netgear, ect. Webbase configurations for switches or layer 2 devices.
Guest

SGE2010 How do I trigger backups via SNMP?

Post by Guest »

Hi there, I have been trying, so far unsucessfully, to trigger backups to a TFTP server of our SGE201 switches. I have testesd TFTP backups via the web interface, and that does work. I need SNMP as I  need a scriptable method to trgiger the backups on a regular schedule. I am running the SNMP query from a RedHat Linux server. So far I have the following query work out, but it is failing: snmpset -v 1 -c COMMUNITY SWITCH.MGMT.IP.ADDRESS 1.3.6.1.4.1.9.6.1.101.87.2.1.7 i 2 1.3.6.1.4.1.9.6.1.101.87.2.1.8 i 3  1.3.6.1.4.1.9.6.1.101.87.2.1.9 a TFTP.SERVER.IP.ADDRESS 1.3.6.1.4.1.9.6.1.101.87.2.1.11 s FILENAME 1.3.6.1.4.1.9.6.1.101.87.2.1.17 i 4 The error I am getting is generic, and the same query failed on multiple switches running Software Version 3.0.0.18. The switch is set with the community having full SNMP-admin access from the servers IP address. If anyone here has been able to run SNMP triggered backups and would be willing to post their query and/or software that would be greatly appreciated. Any other suggestions, comments or advice is equally welcome. Thank you for your time.
Guest

Re:SGE2010 How do I trigger backups via SNMP?

Post by Guest »

Jeff, The procedure to download or upgrade the config via SNMP is as follows: 1) Download the MIB files we officially released from cisco.comhttp://www.cisco.com/cisco/software/release.ht ... ype=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.
Guest

Re:SGE2010 How do I trigger backups via SNMP?

Post by Guest »

Thank you, Do you also have any particular recommendations for a command line Linux client to do this? I need something that is scriptable so it can be run against a number of switches at set intervals. Edit: For others reference, the following works for me with snmpset, replace .999 with what ever ID you prefer: snmpset -v 2c -c COMMUNITY -r 0 SWITCH.MGMT.IP.ADDRESS 1.3.6.1.4.1.9.6.1.101.87.2.1.11.999 s FILENAME 1.3.6.1.4.1.9.6.1.101.87.2.1.10.999 i 1 1.3.6.1.4.1.9.6.1.101.87.2.1.9.999 a TFTP.SERVER.IP.ADDRESS 1.3.6.1.4.1.9.6.1.101.87.2.1.8.999 i 3 1.3.6.1.4.1.9.6.1.101.87.2.1.7.999 i 2 1.3.6.1.4.1.9.6.1.101.87.2.1.5.999 i 1 1.3.6.1.4.1.9.6.1.101.87.2.1.4.999 a 0.0.0.0 1.3.6.1.4.1.9.6.1.101.87.2.1.3.999 i 1 1.3.6.1.4.1.9.6.1.101.87.2.1.17.999 i 4 Message was edited by: Jeff Whitehouse
Post Reply