SGE2010 How do I trigger backups via SNMP?

Post a reply

In an effort to prevent automatic submissions, we require that you complete the following challenge.
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review

Expand view Topic review: SGE2010 How do I trigger backups via SNMP?

Re:SGE2010 How do I trigger backups via SNMP?

by Guest » Thu Nov 18, 2010 5:11 am

Jeff, Heres the info I got from my team. First and foremost, you don need all of the parameters you showed, just the ones I here:  snmpset -v 2c -c public i 4 i 1 i 2 i 3 a s example1.txt   (here is "translation" for above -   Received Message Data {       Error-Status: noError,       Error-Index : 0,       Bindings {             CISCOSB-COPY-MIB:rlCopyRowStatus.1,                   SNMPv2-TC:RowStatus,                   "4"             CISCOSB-COPY-MIB:rlCopySourceLocation.1,                   CISCOSB-COPY-MIB:RlCopyLocationType,                   "1"             CISCOSB-COPY-MIB:rlCopySourceFileType.1,                   CISCOSB-COPY-MIB:RlCopyFileType,                   "2"             CISCOSB-COPY-MIB:rlCopyDestinationLocation.1,                   CISCOSB-COPY-MIB:RlCopyLocationType,                   "3"             CISCOSB-COPY-MIB:rlCopyDestinationIpAddress.1,                   IpAddress,                   ""             CISCOSB-COPY-MIB:rlCopyDestinationFileName.1,                   SNMPv2-TC:DisplayString,                   "example1.txt"       } )

Re:SGE2010 How do I trigger backups via SNMP?

by Guest » Thu Nov 18, 2010 4:36 am

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 s FILENAME i 1 a TFTP.SERVER.IP.ADDRESS i 3 i 2 i 1 a i 1 i 4 Message was edited by: Jeff Whitehouse

Re:SGE2010 How do I trigger backups via SNMP?

by Guest » Thu Nov 18, 2010 3:46 am

Jeff, The procedure to download or upgrade the config via SNMP is as follows: 1) Download the MIB files we officially released from cisco.com ... 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( 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.

SGE2010 How do I trigger backups via SNMP?

by Guest » Thu Nov 18, 2010 2:20 am

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 i 2 i 3 a TFTP.SERVER.IP.ADDRESS s FILENAME i 4 The error I am getting is generic, and the same query failed on multiple switches running Software Version 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.