cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2836
Views
5
Helpful
3
Replies

snmp to tftp config files

sheehan.john
Level 1
Level 1

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

3 Replies 3

Rolf Fischer
Level 9
Level 9

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/

That works. Thanks!

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:///Subdirectory/$h-

!           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

Review Cisco Networking for a $25 gift card