TCL Scripting.

Unanswered Question
Dec 23rd, 2008
User Badges:

Hi All,

I tried to use the attached TCL scrpits for probing. My servers are listening on port 8010. But the probe failed, its getting the error "Internal error: Script error" .

Could anyone please verify the attached script ?


Aslam ..

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4.5 (2 ratings)
ciscocsoc Wed, 12/24/2008 - 00:59
User Badges:
  • Silver, 250 points or more

Hi Aslam,

Looking at the script in notepad/wordpad there is a lot of RTF chaff. The first few characters are:

{\rtf1\ansi\ansicpg1252\uc1\deff38\stshfdbch0\stshfloch38\sts ...

It looks like the file has been edited and converted accidentally into this format. I'd start with a fresh copy of the script and make the changes with a simple editor.



aslamta123 Wed, 12/24/2008 - 01:21
User Badges:

Hi Cathy,

Thanx for the reply ...

Is it required to specify the real servers IP in the script ???

I'm not good in scripting, the file i downloaded from cisco and changed only the port no's .

could you please correct the errors and send to me ?



ciscocsoc Wed, 12/24/2008 - 01:42
User Badges:
  • Silver, 250 points or more


The real IP addresses are sent as part of the environment, so they are not coded in the script.

If you define the port on the serverfarm (e.g. rserver wibble 8010) then this should be passed to the script in the environment.

I think your problems stem from whatever program you used to do the edit. Stick to a simple editing program that won't mess around with the format.

If you can't get the HTTPCONTENT probe working, then start with a simple TCP probe on 8010.

I can't write the script for you as you have to be able to maintain it.

Kind Regards


Gilles Dufour Wed, 12/24/2008 - 02:15
User Badges:
  • Cisco Employee,

you don't need to add the port in the script.

The following 2 lines will get the ip address and port from your configuration

set ip $scriptprobe_env(realIP)

set port $scriptprobe_env(realPort)

If you want to use the Cisco script, there is no need to modify it.

Just configure the probe and add it to the serverfarm.

Make sure your reals are configured with a port inside the serverfarm so that the script can identify which port to use.


aslamta123 Wed, 12/24/2008 - 04:47
User Badges:

Many Thnks.. Gilles ..

Its working now..




This Discussion