cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
919
Views
0
Helpful
1
Replies

ACE probe

gavin han
Level 1
Level 1

Hi,

i've requirement to declare probe as sucess of url returns 200 OK or 302 or string value. any of this status would declare probe as sucess.

probe http status1

request method head url /um/load

expect status 200 200

expect status 302 302

expect regex string value

open 1

would this be enough to meet my requirement? please advise.

1 Reply 1

ciscocsoc
Level 4
Level 4

Hi,

This will not work.

From the manual section on configuring probes.

"An HTTP probe establishes a TCP connection and issues an HTTP request to the server for an expected string and status code. The ACE can compare the received response with configured codes, looking for a configured string in the received HTTP page, or verifying hash for the HTTP page. If any of these checks fail, the server is marked as failed.

For example, if you configure an expected string and status code and the ACE finds them both in the server response, the server is marked as passed. However, if the ACE does not receive either the server response string or the expected status code, it marks the server as failed."

You can configure multiple status ranges, but you can't mix them with the regex.  If you wanted to do this then you would need to write a custom tcl script. Your probe will succeed only if  (return status is 200 or 302) AND the regex is matched.

HTH

Cathy

Review Cisco Networking for a $25 gift card