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

ACE TCL Script to retrieve Cookie

I am in need to to do a post instead of a Get with a probe. So I have configured a TCL script to perform this. The issue I have is that I also need to parse the Cookie instead of the http1. response. Any ideas? Or does anyone have a variable indetifiers for TCL scripting that Cisco uses?

Thank you,

Tim

1 REPLY

Re: ACE TCL Script to retrieve Cookie

HI Thulin,

Health probe scripts have access to many configured items through a predefined TCL array. The most common use of this array is to find the current real server IP addresses of the suspect during any particular launch of the script.

Whenever the ACE executes a script probe, a special array called scriptprobe_env is passed to the script. This array holds important parameters that may be used by the script.

Member name Content

realIP

Suspect IP address

realPort

Suspect IP port

intervalTimeout

Configured probe interval in seconds

openTimeout

Configured socket open timeout for this probe (tbd)

recvTimeout

Configured socket receive timeout for this probe

failedTimeout

Configure failed timeout

retries

Configured retry count

healthStatus

Current suspect health status

contextID

The ID for the context running this script

failedRetries

Consecutive successful retries on a failed server before marking it as passed

isRouted

Boolean to determine if this IP address is a routed address

pid

Process identifier of the TCL process

runID

Pointer to the event structure (em_event_t)

Kindly refer to the following url to get more info regarding your tcl variables:

http://www.cisco.com/en/US/docs/interfaces_modules/services_modules/ace/v3.00_A1/configuration/slb/guide/script.html#wp1082112

http://www.cisco.com/univercd/cc/td/doc/solution/dc_ap11i.pdf

http://www.cisco.com/univercd/cc/td/doc/product/lan/cat6000/mod_icn/ace/ace_301/slbgd/script.pdf

Regards,

Sachin Garg

336
Views
0
Helpful
1
Replies
CreatePlease to create content