cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
932
Views
0
Helpful
3
Replies

Image deployment

ngholmieh
Level 1
Level 1

I am trying to use ciscoworks (LMS2.5.1 running on windows 2003) to deploy software images. For now i am trying 3750 switches.

I am having problems with TFTP from the switch to the CiscoWorks server: when the switch is trying to backup its old image by putting it on the CW server, I get a permission denied error. After that, CW still erases the flash on the switch, but the job fails.

I tried the following scenarios manually between the switch and the TFTP server on the Ciscoworks box:

1. Get any file from the TFTP root directory: successful

2. Put a new file on the TFTP root dir: failed -- permission denied

3. Put a file that already exists on the TFTP root dir (overwrite it): Successful

I have two questions:

1. is there a setting I should be doing to the TFTP server to enable writing a new file in the root dir?

2. why is the CW server erasing the flash on the switch despite the job failure?

Thanks,

Nathalie~

3 Replies 3

Joe Clarke
Cisco Employee
Cisco Employee

TFTP requires that the file exist on the server with write permissions before a transfer can begin. RME should handle creating this file provided it can write to NMSROOT\tftpboot and you are using our TFTP service.

I would have to see a swim_debug.log for this job with Software Management debugging enabled to know why it proceeds with the job after the image backup fails.

As you said that this is a normal TFTP behavior, I looked into the debug file and the telnet file and here's more info:

The first step failed: copy flash to tftp. the debug file points to the telnet file for more info. I am including below parts of the debug and telnet files:

------------------------------

swim_debug.log

[ Tue Jun 12 15:57:20 PDT 2007 ],INFO ,[RFRDOper:cub-test-3750],com.cisco.nm.xms.xdi.pkgs.SharedSwimIOS.RFRDistributionOper,updateStatus,343,Buff Msg: Failed to import the image vlan.dat from device.

See C:\PROGRA~1\CSCOpx\files\rme\jobs\swim\3087\cub-test-3750_telnet.log for the output from the device on which the image transfer failed.

Trying to backup flash:vlan.dat from the device using TFTP

Copying flash:vlan.dat to C:/PROGRA~1/CSCOpx/tftpboot/rep_sw_8867590007047074470 using TFTP.

Copying vlan.dat from flash to tftp://CW_IP/C:/PROGRA~1/CSCOpx/tftpboot/rep_sw_8867590007047074470

[ Tue Jun 12 15:57:20 PDT 2007 ],INFO ,[RFRDOper:cub-test-3750],com.cisco.nm.rmeng.swim.drivers.SoftwareOperationDriver,operationStatusChange,1964,DDriver :opStatusChnage got Operation Status : Op ID = 8867590281924987601, Error Code = 0, Error Info = , Error Detail = , Percentage Completed = 0 , Status = INPROGRESS, Operation In Progress

[ Tue Jun 12 15:57:20 PDT 2007 ],INFO ,[RFRDOper:cub-test-3750],com.cisco.nm.rmeng.swim.drivers.SoftwareOperationDriver,operationStatusChange,1965,Protcol used

[ Tue Jun 12 15:57:20 PDT 2007 ],INFO ,[RFRDOper:cub-test-3750],com.cisco.nm.rmeng.swim.drivers.SoftwareOperationDriver,operationStatusChange,1974,OSC null

[ Tue Jun 12 15:57:20 PDT 2007 ],INFO ,[RFRDOper:cub-test-3750],com.cisco.nm.rmeng.swim.drivers.SoftwareOperationDriver,operationStatusChange,1975,Failed to import the image vlan.dat from device.

See C:\PROGRA~1\CSCOpx\files\rme\jobs\swim\3087\cub-test-3750_telnet.log for the output from the device on which the image transfer failed.

Trying to backup flash:vlan.dat from the device using TFTP

Copying flash:vlan.dat to C:/PROGRA~1/CSCOpx/tftpboot/rep_sw_8867590007047074470 using TFTP.

Copying vlan.dat from flash to tftp://CW_IP/C:/PROGRA~1/CSCOpx/tftpboot/rep_sw_8867590007047074470

--------------------------------

telnet.log

switch#copy flash:vlan.dat tftp://CW_IP/C:/PROGRA~1/CSCOpx/tftpboot/rep_sw_8867590007047074470

Address or name of remote host [CW_IP]? CW_IP

Destination filename [C:/PROGRA~1/CSCOpx/tftpboot/rep_sw_8867590007047074470]? C:/PROGRA~1/CSCOpx/tftpboot/rep_sw_8867590007047074470

!.....

%Error writing tftp://CW_IP/C:/PROGRA~1/CSCOpx/tftpboot/rep_sw_8867590007047074470 (Timed out).....

--------------------------------------

This is only the first step: backup of existing image. Despite the backup failure, the job continues, and the next step is erase the flash, which is the only part of the job that gets executed successfully. So, I do not understand why at the end the result is an empty flash, and the upgrade did not succeed. After this, I do not trust CiscoWorks to upgrade switches on the network.

Then while loading the new image to the flash, another error occurs. This is the output in the switch_telnet.log:

archive download-sw /overwrite tftp://CW_IP/rep_sw_8867589903959940153

Could not buffer tarfile...using multiple downloads

examining image...

%Error opening tftp://CW_IP/rep_sw_8867589903959940153 (Timed out)

%Error opening flash:update/info (No such file or directory)

ERROR: Image is not a valid IOS image archive.

Note that I used this same image to update the IOS of the switch manually, and it turned out to be a good image. The manual upgrade went smoothly with no problem.

I have checked that there is not firewall blocking traffic between the switch and the CW server. I don't have a clue of what is going on here. Any suggestion would be appreciated.

Thanks.

I can't say what is going on here, but it appears network related. It looks like the TFTP transfer is starting, then just times out. When you did this manually, did you execute all the commands that RME executed exactly how they appear in the telnet log?

Getting Started

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: