Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

ciscoworks && flash files

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
Cisco Employee

Re: ciscoworks && flash files

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.

9 REPLIES
Cisco Employee

Re: ciscoworks && flash files

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

New Member

Re: ciscoworks && flash files

Hi Daviston !

This method saves the IOS image only.

Cisco Employee

Re: ciscoworks && flash files

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.

New Member

Re: ciscoworks && flash files

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 !

Cisco Employee

Re: ciscoworks && flash files

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.

New Member

Re: ciscoworks && flash files

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

Cisco Employee

Re: ciscoworks && flash files

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.

New Member

Re: ciscoworks && flash files

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

Cisco Employee

Re: ciscoworks && flash files

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.

173
Views
4
Helpful
9
Replies
CreatePlease to create content