is there any way to load image on my device using CLI through ciscoworks

Unanswered Question
May 12th, 2008
User Badges:


I need to loadOs to my router and am right now using cwcli to interact with device.. as per my earlier query answered by Joi, I can not load OS using CwCli.. Just need to ask whether is there any possible way to do it..(I mean by crating a job or something like that)..

the idea comes in my mind is to send "All commands related to load OS in file" in batch mode through CWCLI and reload the router.. but dunno whether this would work , as copy command is interactive one and I may not be able to send interactive commands.. Please Help

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Joe Clarke Mon, 05/12/2008 - 21:59
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

You could emulate some of SWIM's functions using Netconfig and Netshow via cwcli. However, you would have to run multiple jobs, and write some code around each one to glue the results together. You would also need to stage the images manually to the tftpboot directory (or some other area for copying).

If you have RME 4.1 (i.e. LMS 3.0) you can export images from the SWIM repository with cwcli using the cwcli swim exportimages command. However, it will still be up to you to clue together the different pieces to actually deploy the image to a device.

er_yogendrasingh Mon, 05/12/2008 - 22:28
User Badges:

Thnks joe,

This is fine with me to put image manually at some dir in Ciscoworks, But Still am not sure using netconfig and netshow i would be able to load the image.

cwcli netconfig createjob but only be able to send cmd like copy flash:c2600-i-mz.122-24a.bin tftp//

but after that there would not be any interaction to the device(as device verify the file and tftp address.and would expect atleast "CR" i.e. return to be entered.)

could you please give comments in more details How exactly we can send netconfig and netshow cmd to execute loadImage..

I tryed swim export also . but looks like it will only copy the image from device to repository(there too I could not see any provision to mention the IP address of the device) .. would SWIM be useful to load Image on devices

Joe Clarke Mon, 05/12/2008 - 22:32
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

Consult the online help for Netconfig on how to execute interactive commands. Basically, you will need to use the tag to indicate the response required by certain commands.

You will need to use Netshow, or otherwise check the device's inventory to confirm it has enough RAM/flash to support the desired image.

SWIM or Software Image Management is the tool with RME uses to load software on devices. It can also archive software running on devices in your network. The exportimages command only operates on images already in your local LMS repository. You will need to add images to the repo from the GUI first.

er_yogendrasingh Mon, 05/12/2008 - 22:43
User Badges:

Hi Joe,

This would be great and very kind of you if you could provide me example for how tag is used.. this would be really a great Help..


This Discussion