02-25-2013 06:13 AM
Hello Community,
Can someone please show me how to convert the following EEM into Tcl?
I need action 4 to produce a carriage return
event manager applet backer
event none
action 1 cli command "enable"
action 2 cli command "copy running tftp:" pattern "Address"
action 3 cli command "10.44.97.254" pattern "Destination"
action 4 cli command "I WOULD LIKE A CARRIAGE RETURN HERE PLEASE"
Cheers
Carlton
02-26-2013 04:10 AM
Joseph,
I formatted the flash as you suggested and uploaded the flash that works on another router, see below for show version.
I uploaded the exact same script as the one used on successful router.
Again when I try to delete the tcl script I get the same message %Error deleting flash:/cpuHighCPUUsage.tcl (File in use in an incompatible mode)
Any suggestions?
Carlton
02-26-2013 05:09 AM
Joseph,
I formatted the flash as you suggested and uploaded the flash that works on another router, see below for show version.
I uploaded the exact same script as the one used on successful router.
Again when I try to delete the tcl script I get the same message %Error deleting flash:/cpuHighCPUUsage.tcl (File in use in an incompatible mode)
Any suggestions?
Carlton
02-26-2013 09:26 AM
Hi Carlton,
Just to be clear, when you format a flash you should do so using the IOS version that you plan to run on the device. That ensures the most ideal compatibility with the version of monlib that is then installed on the flash. Monlib is what is used at the most base level (i.e. it is like a driver). Really it should not matter much but in the 12.4T version of code there were some issues with monlib that can cause very odd problems with performance. I'm shooting from the hip here though, I have no evidence to claim that any of those issues are the cause of what you are seeing.
What commands are being used to access the files on flash? You might see if there are file descriptors actually open for the files with the command 'show file descriptors'. This command may require you to enable the 'service internal' command in config mode. The service internal command just enables additional commands.
Mike
02-26-2013 03:26 PM
Wow Mike you're good. Yes I do see the files open when I do show file descriptor.
Can you tell me how close it?
Cheers
Sent from Cisco Technical Support iPad App
02-26-2013 04:40 PM
Hi Carlton,
If the files are open then we can rule out a monlib issue. We need to figure out what is opening them and either leaving them open or if the files are repeatedly being opened and closed and you never get a chance to delete them because they always look like they are open.
How might this Tcl script be accessed? Registered via EEM? Opened via the tclsh? The more command? Any other means?
Mike
02-28-2013 02:50 AM
Hi Mike,
Sorry the delayed response.
I believe the script is accessed via tclsh.
Will that help you help me?
02-28-2013 02:53 AM
Mike,
Check this out ...
FD Position Open PID Path
0 8174 030A 42 flash:utilisationHighInterfaceUtilization.tcl
1 9122 030A 42 flash:errorsInterfaceErrorsv13.tcl
2 9119 030A 42 flash:errorsInterfaceErrors19.tcl
3 9119 030A 42 flash:errorsInterfaceErrors39.tcl
4 9119 030A 42 flash:errorsInterfaceErrors22.tcl
5 9122 030A 42 flash:errorsInterfaceErrors333.tcl
6 6227 030A 42 flash:envAssetChassisIssue.tcl
7 6068 030A 42 flash:oirExpansionCardReconfigured.tcl
8 4790 030A 42 flash:cpuHighCPUUsage.tcl
I'm trying to delete all of the above but unable to...
02-28-2013 09:22 AM
Hi Carlton,
So all of these files are currently open by process ID 42. In this case I would normally then move on to using these commands (probably need service internal enabled):
show processes 42
show processes events 42
show stack 42
Wait 5 seconds then...
show stack 42
Wait 5 seconds then...
show stack 42
Mike
Edit: The goal is try and find out what has these files opened and why they are not closed.
02-27-2013 01:54 AM
Hi Joseph,
As I mentioned above, I formatted the flash as suggested and installed a flash that supports EEM 3.0. However, the version is not reflected on the router - it still uses EEM Version 2.1
Do I need to do a physical reboot of the router for the new flash to take affect and be added to the system? Or is there someway of copying the flash to system without doing a reboot?
In the show version below you will see the system image file still reflects the old image file, whereas the image on the flash is the updated image:
Brislington_DM001#show version
Cisco IOS Software, C181X Software (C181X-ADVIPSERVICESK9-M), Version 12.4(6)T7, RELEASE SOFTWARE (fc5)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2007 by Cisco Systems, Inc.
Compiled Thu 29-Mar-07 02:54 by khuie
ROM: System Bootstrap, Version 12.3(8r)YH12, RELEASE SOFTWARE (fc1)
Brislington_DM001 uptime is 2 days, 1 hour, 14 minutes
System returned to ROM by power-on
System restarted at 08:30:12 BST Mon Feb 25 2013
System image file is "flash:c181x-advipservicesk9-mz.124-6.T7.bin"
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to
export@cisco.com.
Cisco 1812 (MPC8500) processor (revision 0x400) with 118784K/12288K bytes of memory.
Processor board ID FCZ1218130V, with hardware revision 0000
10 FastEthernet interfaces
1 ISDN Basic Rate interface
31808K bytes of ATA CompactFlash (Read/Write)
Configuration register is 0x2102
Brislington_DM001#show flas
-#- --length-- -----date/time------ path
1 23621284 Feb 26 2013 11:40:12 +00:00 c181x-advipservicesk9-mz.124-24.T2.bin
02-27-2013 07:12 AM
Yes, you must reload to boot a new OS version. You cannot do an ISSU upgrade on this platform.
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