Cisco 2851 router unable to load config file form tftp host

Unanswered Question
Nov 16th, 2009


I seem to have a problem with 2851's and copying config files using tftp.

Looks like the IOS may consider OLD-CISCO-SYS-MIB to be legacy, but I'm having no luck with the CISCO-CONFIG-COPY-MIB.

Code is


I can walk the device using the RW string.

Have been able to pull back the config using 'writeNet' ie.

snmpset -v1 -c [RW_string] [IP_a.b.c.d] .[svr_IPa.b.c.d] s host.cfg

When I try hostConfigSet it is unsuccessful;

snmpset -v1 -c [RW_string] [IP_a.b.c.d] .[svr_IPa.b.c.d] s cfg.txt

An snmpwalk reveals no OID for hostConfigSet ie. .53, and the entry under .51 is, implying that hostConfigAddr was never previously successful

.iso. = 0

.iso. = 0

.iso. = 0

.iso. = 0

.iso. = 9

.iso. = 0

.iso. = IpAddress:

.iso. = ""

.iso. = IpAddress:

.iso. = ""

.iso. = 0

.iso. = 0

.iso. = 0

I guess what I'm after is simply the OID to use for a hostConfigSet on a c2851


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
iswift Mon, 11/16/2009 - 05:53


Thanks, I'll try the tech tip.

Basically get a timeout, no response from host x.x.x.x.


iswift Mon, 11/16/2009 - 06:01

I'm only a little concerned about the statement in the referred artcile saying

"You must upload complete configurations when you use the snmpset command. Partial configurations erase what is currently stored in non-volatile RAM (NVRAM). This is only needed for startup configurations. When you run a configuration copy it merges the contents. "

I want to merge a couple of commands with the running config, but I obviously don't want to wipe out the rest of the config.

It seems ambiguous, can you please clarify ?


iswift Mon, 11/16/2009 - 07:53

I have managed to get some success but what appears to be happening is the router config is being written back to the tftp server and overwrites the text file which I was using as my source file.

;-} helps if I can read !! I'm using dotted notation and was using the example for copying the running config to the tftp server which is exactly what I was getting

iswift Mon, 11/16/2009 - 08:35

Still having problems with the expected file types for ccCopySourceFileType and/or ccCopyDestFileType.

Have set Dest to an integer of '2' = running-config.

I get an error when following the value of '3' as per the CCO URL previously given.

The CCO SNMP Object Navigator has a reference to 'networkFile' as a value, but I'm not sure how to set it.

" If the ccCopySourceFileType has the value of networkFile, the

ccCopyServerAddress and ccCopyFileName must also be created,

and these 3 objects together

(ccCopySourceFileType, ccCopyServerAddress, ccCopyFileName)

will uniquely identify the source file."


only has possible values of 1 or 2 for the OID.

Any thoughts ?


iswift Mon, 11/16/2009 - 08:41

. s networkFile

Error in packet.

Reason: (badValue) The value given has the wrong type or length.

Failed object: iso.

iswift Mon, 11/16/2009 - 09:00

It seems the CCO article is wrong !!

The fileType possible values are :

1: networkFile(1)

2: iosFile(2)

3: startupConfig(3)

4: runningConfig(4)

5: terminal(5)

iswift Mon, 11/16/2009 - 09:35

This issue is now resolved using the OID values in the last post, from the MIB - do not rely on the content of the CCO snmp object navigator for the values of ccCopySourceFileType (or Destination).


This Discussion