07-22-2008 02:59 PM
I am using the HTTP probe shown below. When we shutdown our backend application the server is returning a 500 response code to the client but the CSM does not remove it from service.
probe TEST http
request method get url /test/engine
expect status 0 499
interval 10
failed 10
port 8001
What if any difference is there between
request method get url and
request url
Is there any way that I can see the last response code that the CSM received?
It looked like it wanted to fail but didn't:
CSM#sh mod csm 8 probe real 10.10.63.18
real = 10.10.63.18:8001, probe = TEST, type = http,
vserver = D-TESTVIP, sfarm = D-TESTSERVER
status = OPERABLE, current = 16:44:21 EDT 07/22/08,
successes = 1714, last success = 16:44:16 EDT 07/22/08,
failures = 35, last failure = 16:33:55 EDT 07/22/08,
state = Waiting for server to reply
CSM#sh mod csm 8 probe name TEST
type port interval retries failed open receive
---------------------------------------------------------------------
http 8001 10 3 10 10 10
Thank you,
Dave
07-22-2008 03:36 PM
You can see the response code in CSM debug mode
CSM>venus
VENUS# TestHTTP "10.10.63.18" 80
10.10.63.18 is the server ip and 80 is the port number.
Syed Iftekhar Ahmed
07-22-2008 04:05 PM
I'm not sure I understand what your telling me here. I have done a debug mod csm 8 probe and have not seen anything. I don't understand the command you typed
testHTTP "10.10.63.18" 80
Where is this a valid command? or am I missing something?
Thanks,
Dave
07-22-2008 04:10 PM
I thought you wanted to see what response CSM is getting from the real server.
The command I mentioned is a debug level command that is used to troubleshoot probes.
Using it in debug mode (VENUS) you will see what response CSM gets from the real server.
Syed
07-22-2008 04:16 PM
I do. I'm not understanding something because that is not a valid command.
07-22-2008 04:27 PM
If your CSM is in slot x then you need to do following
Router#session slot x processor 0
CSM>
CSM> venus
VENUS#
Once you get the VENUS prompt then you can use the command I mentioned.
Expect status in your probe config is using a big range.
If you only expect 200 for a success then use 200 200 only as the range. This will ensure that any 4xx errors are not keeping the srver live.
Syed
07-23-2008 03:43 AM
Ok thanks. I had never seen anything on this venus mode before. It doesn't accept the command though. I get Symbol 'testhttp' not found! when I enter the command. I have version 4.2(3a) of the CSM code running.
VENUS# ?
usage
upgrade slot0:|server-ip-addr filename
create virtual ...
destroy virtual ...
rename virtual ...
add pool ...
remove pool ...
bind virtual-name ...
unbind virtual-name rule-id
reorder virtual-name ...
set balancer ...
classify acl ...
address system ...
show virtual ...
load cfg-filename
restore config defaults|flash|backup
debug ixp rd|wr chip addr #dwords
stats real [rserver-name]
script [file [slot0:script_file|tftp_addr script_file]]
capture [on|off]
venus
tftp core_dump tftp-ip-addr [filename]
exit
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