11-09-2009 12:45 PM
Is there any way to perform a "write mem" or "copy run start" via SNMP (snmpget) on IOS, CatOS or PIX/ASA?
Solved! Go to Solution.
11-09-2009 01:01 PM
Sure! Use the CISCO-CONFIG-COPY-MIB to do this:
That tech tip details copying the config to and from a TFTP server, but for a write mem, set the destination as startup and the source as running, and you're set.
11-10-2009 08:36 AM
createAndWait lets you perform the set in multiple packets. When using createAndGo, you have to send all the objects in the same packet. You can do either one.
The random number is your choice. It can be anything in the range of 1 to 2^31-1.
11-09-2009 01:01 PM
Sure! Use the CISCO-CONFIG-COPY-MIB to do this:
That tech tip details copying the config to and from a TFTP server, but for a write mem, set the destination as startup and the source as running, and you're set.
11-09-2009 01:02 PM
Oh, this is not possible on the PIX/ASA as config manipulation is not possible using SNMP.
11-10-2009 07:11 AM
Thanks! I thought it wasn't possible, but I should've searched:
In the above thread, Nadim gave an example in which ccCopyEntryRowStatus was set to "5:createAndWait", whereas in the URL you pointed out "createAndGo(4) : Create an entry" and "destroy(6) : Delete an entry" were suggested. Would you know what the differences are between 4 (createAndGo) and 5 (createAndWait), specifically which one would you choose to commit a "write mem"?
Secondly, how is the random number below generated? Is that my choice?
snmpset -v 1 -c private
.1.3.6.1.4.1.9.9.96.1.1.1.1.2.
.1.3.6.1.4.1.9.9.96.1.1.1.1.3.
.1.3.6.1.4.1.9.9.96.1.1.1.1.4.
.1.3.6.1.4.1.9.9.96.1.1.1.1.5.
.1.3.6.1.4.1.9.9.96.1.1.1.1.6.
.1.3.6.1.4.1.9.9.96.1.1.1.1.14.
11-10-2009 08:36 AM
createAndWait lets you perform the set in multiple packets. When using createAndGo, you have to send all the objects in the same packet. You can do either one.
The random number is your choice. It can be anything in the range of 1 to 2^31-1.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: