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.
Smilies
: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 10.5.233.57 1.3.6.1.4.1.9.6.1.101.87.2.1.17.1 i 4 1.3.6.1.4.1.9.6.1.101.87.2.1.3.1 i 1 1.3.6.1.4.1.9.6.1.101.87.2.1.7.1 i 2 1.3.6.1.4.1.9.6.1.101.87.2.1.8.1 i 3 1.3.6.1.4.1.9.6.1.10 1.87.2.1.9.1 a 10.5.71.7 1.3.6.1.4.1.9.6.1.101.87.2.1.11.1 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,                   "10.5.71.7"             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 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

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.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.

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 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.

Top