07-21-2006 01:17 AM
Hi !
Does anybody knows how save the files (MOH or TCL scripts ) from router flash automatically with CiscoWorks? Are there any method ?
Solved! Go to Solution.
07-25-2006 08:03 AM
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.
07-21-2006 08:49 AM
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
07-23-2006 10:55 PM
Hi Daviston !
This method saves the IOS image only.
07-22-2006 08:18 PM
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.
07-23-2006 11:00 PM
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 !
07-24-2006 07:55 AM
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.
07-24-2006 11:02 PM
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
07-25-2006 08:03 AM
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.
10-19-2006 07:25 AM
Do you have an example of how to launch a TCL script from kron? Thanks in advance.
10-19-2006 07:39 AM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide