Hello,

We've run into a problem with the WUG TCP/IP custom service (WUG V.7.03)

We've been running scripts to test a custom application through a
proprietary binary protocol. I'm basically connecting through some TCP port,
sending several commands, and expecting an answer. The test was run 3 times
- 1 - local host, expecting a success - script succeeded 2 - local host,
expecting a failure - script succeeded 3 - remote host, expecting a success
- script FAILED

It seems that WUG is looking for the answer (either with "expect" or
"SimpleExpect") only on the first answer packet, which works fine if I test
it on a local host (as shown in scenarios 1 & 2) But if the test is run on a
remote host, and the answer is divided to different packets, WUG can't read
after the first packet, and assumes the test has failed (as shown in
scenario 3).

The difference between the tests is that one was done locally (local host)
and one remotely. This caused different TCP/IP framing which you can also
see in the way the returned bytes are broken into two lines in the WUG debug
log.

Any one has encountered this problem before? Is it a WUG bug? Any ideas?
Workaround? Are there any parameters I can use in the script which can help
me solve the problems?

Thanks,
 
Amihai Bareket
Senior System Engineer & Consultant
Email: [EMAIL PROTECTED]


Script details -

----------------------------------------------------------------------------
-----------------------------------------------------
Scenario 1 (Good result) -
The test should succeed since the device returned <001> where a success is
counted as <000> or <001>  

(C:\Program Files\WhatsUp\TEST.wup) map poll start
Checking CACHE INT : 00 : TEST Agent 
[10.100.10.16] >>> COHS CHECK 7557 on 10.100.10.16 [10.100.10.16] connected
[10.100.10.16] 000: Send=%001 <001> [10.100.10.16] 001: Send=%000
[10.100.10.16] 002: Send=%000 [10.100.10.16] 003: Send=%000 [10.100.10.16]
004: Send=%000
005: SimpleExpect=%001
<001>
[10.100.10.16] 006: Expect=^%016%000%000%000(%000|%001)
<016><000><000><000><001><000><000><000><001>-<000><000><001><005><018><026>
<001><003><016><001>
[10.100.10.16] <<< COHS EXIT=0
TCP/IP Service check complete. OK
Check Complete (2) CACHE INT : 00 : TEST Agent 
20020820<009>213057<009>C:\Program
Files\WhatsUp\TEST.wup<009>SVCUP<009>CACHE INT<009>10.100.10.16<009>TEST
Agent <009>missed 1 (C:\Program Files\WhatsUp\TEST.wup) map poll complete

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

Scenario 2 (Good result) -
The test should fail since the device returned <002> where a success is
counted as <000> or <001>

(C:\Program Files\WhatsUp\TEST.wup) map poll start
Checking CACHE INT : 00 : TEST Agent 
[10.100.10.16] >>> COHS CHECK 7557 on 10.100.10.16 [10.100.10.16] connected
[10.100.10.16] 000: Send=%001 <001> [10.100.10.16] 001: Send=%000
[10.100.10.16] 002: Send=%000 [10.100.10.16] 003: Send=%000 [10.100.10.16]
004: Send=%000
005: SimpleExpect=%001
<001>
[10.100.10.16] 006: Expect=^%016%000%000%000(%000|%001)
<016><000><000><000><002><000><000><000><001><030><000><000><000><012><006><
026><002> <000><000> [10.100.10.16] <<< COHS EXIT=10004 TCP/IP Service check
complete. FAILED Check Complete (-1) CACHE INT : 00 : TEST Agent 
(C:\Program Files\WhatsUp\TEST.wup) map poll complete

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

Scenario 3 (BAD result) -
The test should succeed since the device returned <001> where a success is
counted as <000> or <001>

(E:\Program Files\WhatsUp\remote.wup) map poll start
ping 127.0.0.1 returned in 0 ms. 0
Checking REMOTE TEST : 00 : TEST state 
[127.0.0.1] >>> COHS CHECK 7557 on 127.0.0.1
[127.0.0.1] connected
[127.0.0.1] 000: Send=%001
<001>
[127.0.0.1] 001: Send=%000
[127.0.0.1] 002: Send=%000
[127.0.0.1] 003: Send=%000
[127.0.0.1] 004: Send=%000
005: SimpleExpect=%001
<001>
[127.0.0.1] 006: Expect=%016%000%000%000(%000|%001)
<016><000><000><000>
<001><000><000><000><001>.<000><000><001><005><018><026><001><003><016><001>
[127.0.0.1] <<< COHS EXIT=10004
TCP/IP Service check complete. FAILED
Check Complete (-1) REMOTE TEST : 00 : TEST state 
(E:\Program Files\WhatsUp\remote.wup) map poll complete
 
----------------------------------------------------------------------------
-----------------------------------------------------





 

 

Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/

Reply via email to