View Full Version : MONMSG for PING or FTP
Guest.Visitor
08-09-2006, 05:20 AM
Here's a code snippet: PING RMTSYS(&BLIPADDR) MSGMODE(*QUIET *ESCAPE) + PKTLEN(32) NBRPKT(4) MONMSG MSGID(TCP3210) EXEC(DO) /* Ping failed */ ENDDO
ATSInc
08-09-2006, 05:29 AM
That works in my test program. Any idea why this works works using the MSGMODE? Thanks, Tom
Guest.Visitor
08-09-2006, 12:56 PM
No.
Guest.Visitor
08-10-2006, 11:28 AM
Try some of the messages in QTCPMSG. For example, one that I use when monitoring PING is TCP3202.
ATSInc
08-10-2006, 12:57 PM
After looking at the the command in a prompted mode and using help, it seems as if the second half (Summary, if response errors) of the MSGMODE actually generates a message that can be monitored for while using *ESCAPE. The default (*COMP) does not! Here is the help verbage: COMP This is the default value. If the PING request is successful, the summary message returned is a completion message. *ESCAPE A monitorable escape message is returned. This is useful if you have written a program to issue the PING request and wish to monitor the PING request for errors. See the error message section of the PING (VFYTCPCNN) command help for a list of possible escape messages. Thanks again, Tom
Guest.Visitor
08-16-2006, 06:37 AM
See if using this utility helps: http://archive.midrange.com/midrange-l/200605/msg00044.html
B.Bardini
08-17-2006, 10:36 AM
I created a CHKSVR command (Check Server). It's doing a PING. I put all the code below, if anyone is interested. So far, it's working for me just fine. Bruce <hr width=50 align=left>Code ('http://www.mcpressonline.com/mc/showcode@@.6b3a0893/6')
ATSInc
08-17-2006, 10:45 AM
I want to be able to ftp a file to a server. If the server isn't active for some reason, my ftp hangs, and there is no ftp output because the ftp never started. So I thought I'd first see if it's active using a PING and do a MONMSG. I can't seem to get this to work. Any ideas and/or help is appreciated. TIA, Tom
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.