03-31-2015 01:57 PM
Hi Friends,
First of all I thank all the shared information in this community, it is very helpful.
I need help with my lab of Router GUI on tcl.
My issue description is follows:
*Mar 31 16:15:52.507: %HA_EM-6-LOG: http_server.tcl: error reading "sock2": broken pipe
*Mar 31 16:15:52.507: %HA_EM-6-LOG: http_server.tcl: while executing
*Mar 31 16:15:52.511: %HA_EM-6-LOG: http_server.tcl: "gets $httpsock"
*Mar 31 16:15:52.511: %HA_EM-6-LOG: http_server.tcl: invoked from within
*Mar 31 16:15:52.511: %HA_EM-6-LOG: http_server.tcl: "$slave eval $Contents"
*Mar 31 16:15:52.511: %HA_EM-6-LOG: http_server.tcl: (procedure "eval_script" line 7)
*Mar 31 16:15:52.515: %HA_EM-6-LOG: http_server.tcl: invoked from within
*Mar 31 16:15:52.515: %HA_EM-6-LOG: http_server.tcl: "eval_script slave $scriptname"
*Mar 31 16:15:52.515: %HA_EM-6-LOG: http_server.tcl: invoked from within
*Mar 31 16:15:52.515: %HA_EM-6-LOG: http_server.tcl: "if {$security_level == 1} { #untrusted script
*Mar 31 16:15:52.515: %HA_EM-6-LOG: http_server.tcl: interp create -safe slave
*Mar 31 16:15:52.515: %HA_EM-6-LOG: http_server.tcl: interp share {} stdin sl
R1#ave
*Mar 31 16:15:52.515: %HA_EM-6-LOG: http_server.tcl: interp share {} stdout slave
*Mar 31 16:15:52.515: %HA_EM-6-LOG: http_server.tcl: ..."
*Mar 31 16:15:52.515: %HA_EM-6-LOG: http_server.tcl: (file "tmpsys:/lib/tcl/base.tcl" line 50)
*Mar 31 16:15:52.515: %HA_EM-6-LOG: http_server.tcl: Tcl policy execute failed:
*Mar 31 16:15:52.515: %HA_EM-6-LOG: http_server.tcl: No memory
I think this issue related to memory of the router, but I increase the memory and the issue still persist.
Whats Can I do to avoid this problem?
My Lab enviroment is GNS3, I use 7200 router with 512 of memory. Also I try in phisical router 819 with 512 memory and recivied the same errors
and %SYS-2-MALLOCFAIL.
Thanks in advance for the help.
Attached some prints.
Solved! Go to Solution.
04-06-2015 09:38 PM
Hi Sergio
I have tried to reproduce the issue on Cisco 2811 router. it didn't show up the requested page but there was something different on mine. The logs you mentioned before, it didn't occur on my router. I am looking for the script, whether I can do some tunning to fix this
thanks
ananto
04-04-2015 12:04 AM
Can you share the tcl scripts? so I can reproduce in my lab
thanks
nanto
04-05-2015 04:39 PM
04-06-2015 07:12 PM
There very well could be a memory leak in the http_server.tcl script. You may want to have a look at the http://www.cisco.com/assets/cdc_content_elements/docs/ios/eas/easy-httx.tar implementation. It has probably received more testing.
04-07-2015 02:27 PM
Hi Joseph,
Thanks very much for your time.
I'm testing with easy_http_server and we'll let you know the results
Had found the cisco live 2012 document in which you participated, I get excited and I want to try in my lab enviroment.
I want to thank you for helpful documents that you posted on the forum and for taking the time to help us, the mortlas. :)
Best regards,
Sergio Garrido
04-06-2015 09:38 PM
Hi Sergio
I have tried to reproduce the issue on Cisco 2811 router. it didn't show up the requested page but there was something different on mine. The logs you mentioned before, it didn't occur on my router. I am looking for the script, whether I can do some tunning to fix this
thanks
ananto
04-07-2015 02:11 PM
Hi nanto,
Thanks very much for your time to do the test.
Attached the http_server.tcl to enable the web server and test the showclock.tcl on the router.
Yo should copy the http_server.tcl in your router and uses EEM to run this.
Summary steps:
* copy tftp:http_server.tcl flash:
*event manager directory user policy flash:
*event manager policy http_server.tcl
*event manager run http_server.tcl
This procedure should show you the showclock.tcl page
Best
Sergio Garrido
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