cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1501
Views
4
Helpful
9
Replies

ciscoworks && flash files

KAROLY KOHEGYI
Level 2
Level 2

Hi !

Does anybody knows how save the files (MOH or TCL scripts ) from router flash automatically with CiscoWorks? Are there any method ?

1 Accepted Solution

Accepted Solutions

You could still locate the script or policy on a central server, and use something like RME to configure it on the device.

Additionally, you could write a host-based TCL or Perl script that connects to the router, lists all file contents in flash, then copies them off. The advantage of this approach is that TFTP would be doable as the script could create the necessary TFTP dummy files before performing the copy operation.

View solution in original post

9 Replies 9

David Stanford
Cisco Employee
Cisco Employee

If you are looking to save import images from a device flash by using Cisco Works RME then here are the steps:

RME 4.X:

Go to RME - Software Management -- Software Repository -- then select the Add button and then device

RME 3.X:

RME - Software Management -- Library - Add Image and then select from device

Keep in mind that you will need SNMP RW access to the device as it uses snmp to pull the image

Hi Daviston !

This method saves the IOS image only.

Joe Clarke
Cisco Employee
Cisco Employee

You can make Netconfig transfer files out of flash automatically (note: you cannot use TFTP if you want true automation as TFTP requires files to be created in the tftpboot directory prior to transfer).

To do this, create an Enable mode Netconfig job that calls the appropriate copy commands. For example:

copy flash:script.tcl rcp://user@10.10.10.10/scripts/script.tcl

Note: you may have to provide interactive prompts to get this command to complete. See http://forums.cisco.com/eforum/servlet/NetProf?page=netprof&forum=Network%20Infrastructure&topic=Network%20Management&CommCmd=MB%3Fcmd%3Ddisplay_location%26location%3D.1ddba2a4 for help on executing interactive commands in Netconfig.

hi jclarke !

It seems to be good for saves once , but we have many different tcl and moh files on routers.

i looking for method which saves all files from flash

indepently from names and automatically.

there are app. 50 device now which contains scripts and waw files and this number increasing "day by day". ( more than 400 router are on the network.

Thanks !

In that case, you might consider an EEM policy or TCL script launched from kron on the router. Thi policy or script could iterate through all files on flash, and copy them off to a network server.

Hi Clarke.

Thanks your answer. it;s very intresting solution.

May be it is a little clumsy.

i did not known the EEM or TCL in detail so far.

a central policy mgmt may be comfortable for us.

i think we will not take the risk of this method in the large network.

Thanks again

You could still locate the script or policy on a central server, and use something like RME to configure it on the device.

Additionally, you could write a host-based TCL or Perl script that connects to the router, lists all file contents in flash, then copies them off. The advantage of this approach is that TFTP would be doable as the script could create the necessary TFTP dummy files before performing the copy operation.

Do you have an example of how to launch a TCL script from kron? Thanks in advance.

This is tricky because kron and TCL didn't get a long at first. However, if you're running recent 12.4 code, you should be okay. Here is a sample kron policy that calls a TCL script:

kron occurrence tcl_occur in 1:0:0 recurring

policy-list tcllist

kron policy-list tcllist

cli tclsh flash:script.tcl

This will run flash:script.tcl every hour.