probe script failed at csm

Unanswered Question
Jul 16th, 2007
User Badges:

Hi Everyone,


This is my first time to use script for probe at csm. The following is my configuration ,script and the sh tech script output. we fail before "set sock [socket $ip $port]".


The last exit status = 4001 and last errorCode = 65534. Can anyone help me to find why we failed with the script? Thanks in advance.


Jason


CSM configuration:


vlan 876 server

description *** UNIX APP-SERVER TRAFFIC VLAN ***

ip address 172.24.176.4 255.255.248.0 alt 172.24.176.5 255.255.248.0

alias 172.24.176.6 255.255.248.0

route 172.24.62.0 255.255.255.0 gateway 172.24.176.1




script file tftp://172.24.62.126/xxsping.tcl


probe XX1script script

script XX1script

interval 30

retries 3

failed 60

open 15

!


serverfarm tdc-xx1tst-01

nat server

nat client DEV-PAYMTWG

real 172.24.62.12

ins

probe XX1script


!


vserver tdc-xx1tst-01

virtual 172.24.173.62 tcp 8810

serverfarm tdc-xx1tst-01

replicate csrp connection

persistent rebalance

inservice

!

==========================================================

script:


#!name = XX1script

# XX/1 Ping


## Request ##


set ip $csm_env(realIP)

set port $csm_env(realPort)


# XX/1 TC

set xtcu "rfdev"

set xtcp "7q4Njdfl"


set EXIT_MSG "SOAP req"

# SOAP Request

set req "POST http://$ip:$port/xxs HTTP/1.0\n"

append req "Accept: text/xml\n"

append req "Accept: multipart/*\n"

append req "Content-Length: 668\n"

append req "Content-Type: text/xml; charset=utf-8\n"

append req "SOAPAction: \"xxs#Transaction\"\n"

append req "\n"

append req "<xml version=\"1.0\" encoding=\"UTF-8\"?>\n"

append req "<SOAP-ENV:Envelope xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\"\n"

append req "SOAP-ENV:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"\n"

append req "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"

append req "xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\"\n"

append req "xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\n"

append req "<SOAP-ENV:Header><t:Transaction xmlns:t=\"xxs\">\n"

append req "<tc>\n<iden u=\"$xtcu\" p=\"$xtcp\"/>\n<provider>Loyalty</provider><trace>ed</trace>\n</tc>\n"

append req "</t:Transaction></SOAP-ENV:Header><SOAP-ENV:Body><ns1:XXTransaction xmlns:ns1=\"xxs\">\n"

append req "<REQ><PingRQ><Text>LoyaltyPingTest</Text></PingRQ></REQ>\n"

append req "</ns1:XXTransaction></SOAP-ENV:Body></SOAP-ENV:Envelope>\n"


# open a socket

set EXIT_MSG "open socket 1 $ip $port"

set sock [socket $ip $port]

set EXIT_MSG "open socket 2"

fconfigure $sock -buffering none -eofchar {}


#puts "req:\n$req"


# send request

set EXIT_MSG "send req: $ip $port"

puts -nonewline $sock $req;


#puts "wait"

# Wait for response

set EXIT_MSG "read resp"

set line [ read $sock ]


# close the socket

#puts "close"

set EXIT_MSG "close"

close $sock


if { [ regexp "HTTP/1.. (\[0-9\]+) " $line match status ] } {

puts "real $ip server response : $status"

}


if { [ regexp ".*<PingRS><Text>(.+)</Text>" $line match prs ] } {

puts "pingrs: $prs"

}


if { $status == 200 && $prs == "LoyaltyPingTest" } {

puts "exit 5000"

exit 5000

} else {

puts "exit 5001"

exit 5001

}


#puts "response $line\n"




  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
csco10046fen Mon, 07/16/2007 - 11:39
User Badges:

sorry, I forgot the Sh tech script as following:


Software version: 4.2(3a)


SCRIPT BUFFER STATS

:SCRIPT BUF(0xbc74620): scriptname XX1script from file (16386) tftp://172.24.62.126/xxsping.tcl

Last load time = MON JUL 16 18:32:47 2007


flag (0x1) ref (0)

tclbuf: curr_index (1)

tclbuf: index(0) ref(12) buf(0xbc73540) len(1963)

tclbuf: index(1) ref(0) buf(0xbc71fe8) len(2142)

tclbuf: index(2) ref(0) buf(0x0) len(0)

tclbuf: index(3) ref(0) buf(0x0) len(0)


===========================================================



SCRIPT SUBSYSTEM STATS

:===================================================================

SCRIPT SUBSYTEM STATS

Total number of Active scripts: 1

===================================================================

runs = 154 +4

resets = 154 +4


SCPOST:

send = 0 +0

send err = 0 +0

recv = 0 +0

recv err = 0 +0


#killed = 146 +4


#task spawn err = 0 +0 Errno(0x0)

#paniced = 0 +0

exception = 0 +0

exception task id = 0x0 and sc = 0x0

#rst run mismatch= 0 +0

#sc not released = 0 +0

#sc double end = 0 +0

#sc abort del notify = 0 +0


sc acquring sc_cntrl_mu = 0x0

sc stuck on free = 0x0

sc not rel = 0x0

sc doubel end = 0x0


===================================================


***************************************************


SCRIPT CONTROLLER STATS

:

==========================================================================

SCRIPT(0xbc51350) stat blk(0xbc513b8): TCL_XX1scriptbc51350

CMDLINE ARGUMENT:

curr_id 1 argc 0 flag 0x0::

type = PROBE

task_id = 0x0: run_id = 512 ref count = 2

task_status = TASK_DONE run status = OK

start time = MON JUL 16 19:16:06 2007

end time = MON JUL 16 19:16:35 2007

runs = 154 +4

resets = 154 +4

notrel = 0 +0

buf read err = 0 +0

killed = 146 +4

panicd = 0 +0

last exit status= 4001 last Bad status = 4001

Exit status history:

Status (SCRIPT_KILLED) occured #(145) last@ MON JUL 16 19:16:35 2007



**TCL Controller:

------------------------

tcl cntrl flag = 0x7fffffff

#select(0) close_n_exit(1) num_sock(1)

MEM TRACK last alloc(0) last size(0) alloc(0) size(0)

hm_ver (5) flag(0x0) script buf(0xbc74620) new script buf(0x0)

lock owner(0x0) sig taskdel:0 del:0 syscall:0 syslock:0 sig_select

script ptr (0xbc71fe8) id(1)

Config(0xbc44e30) probe -> 172.24.62.12:8810

tclGlob(0xbc70908)

SCRIPT RESOURCE(0xbc72c08)-------

#Selects(0) Close_n_exit(1) #Socket(1)

OPEN SOCKETS:


Persistent Variables

--------------------


Last erroInfo =

Last errorCode = 65534

Last panicInfo =

EXIT_MSG = open socket 1 172.24.62.12 8810


Actions

This Discussion