05-08-2013 08:57 AM
I am trying to setup snmp to tftp the run/start config files.
My test setup is using a 3745 with 12.4(25d)
snmpset v1.01 from snmpsoft
I think I am close but continue to get an error
Here is the command I am using (line broken for clarity)
snmpset -r:10.0.0.2 -v:2c
-o:.1.3.6.1.4.1.9.9.96.1.1.1.1.2.114 -val:1 -tp:int
-o:.1.3.6.1.4.1.9.9.96.1.1.1.1.3.114 -val:4 -tp:int
-o:.1.3.6.1.4.1.9.9.96.1.1.1.1.4.114 -val:1 -tp:int
-o:.1.3.6.1.4.1.9.9.96.1.1.1.1.5.114 -val:192.168.1.38 -tp:ip
-o:.1.3.6.1.4.1.9.9.96.1.1.1.1.6.114 -val:"jjstest1" -tp:str
-o:.1.3.6.1.4.1.9.9.96.1.1.1.1.14.114 -val:4 -tp:int
Its the last line that is giving me trouble. If I issue a create&wait, I get an OK.
a cli to tftp files from 10.0.02 to 192.168.1.38 does work
05-08-2013 10:21 AM
Hi John,
following the example in Cisco Document ID 15217 "How To Copy Configurations To and From Cisco Devices Using SNMP" I always had the same problem.
When I set ccCopyEntryRowStatus to "active" (1) instead, it works perfectly (don't forged to set it to "destroy" (6) afterward).
Hope that helps
Rolf
P.S.: Another source doing so:
http://ccie20728.wordpress.com/2008/05/20/get-the-cisco-configuration-over-snmp/
05-08-2013 12:05 PM
That works. Thanks!
05-08-2013 03:00 PM
Try this:
conf t
archive
! “$h” means the appliance’s hostname will be the filename. The filename format is hostname-month-day-hour-minute-seconds-timezone-version, like “Hostname-Apr-23-10-51-13-AEST-0”.
! Make sure you put a “-“ at the end of the “$h”. Compare the two and you’ll see. J
! If you are using Windows to store these files, DO NOT USE “$t” because it won’t work. Cisco will store the timestamps as “:” and Windows don’t like it.
! You can use TFTP, FTP, SCP and some more stuffs.
path tftp://
! The next two lines means that this command will run when someone saves the configuration and/or at a certain time, like 24 hours or weekly.
time-period
write-memory
end
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide