Article ID: 110553 - Last Review: February 27, 2002 - Revision: 1.0 Stopping Sniffer Trace Automatically When LM WS FailsThis article was previously published under Q110553 On This PageSUMMARYREAD THIS FIRSTNOTE: This article applies to Microsoft LAN Manager WORKSTATIONS only. If you are trying to stop a Sniffer trace automatically when a server or Windows for Workgroups or NT workstation fails, use article110619
(http://support.microsoft.com/kb/110619/EN-US/
)
,
Stopping a Sniffer Trace Automatically When a Server Fails
INTRODUCTIONA common problem when trying to capture network traces after LAN Manager workstation failures is that nobody is there to notice and stop the Sniffer. The Sniffer should be configured to filter out only packets sent to and from the workstation, but that may not be limiting enough.This article explains how to trigger a Sniffer to stop automatically when there is a workstation failure. The method involves running a batch file that repeatedly attempts to send a packet to the failed workstation. When the batch file detects the failure, it sends a broadcast message (STOP THE SNIFF) to the domain, and the Sniffer triggers on it. Obviously the batch file has to be run on a machine other than the one that is monitored for a crash. "STOP THE SNIFF" BATCH FILErem USAGE: stopsnif [workstation-name] [interval] :start rem Make sure the LAN Manager workstation has started the MESSENGER rem service but NOT the NETPOPUP service. If NETPOPUP is running, the rem wksta gets bombarded with popup messages all the time; without rem NETPOPUP you should just hear a beep, and you can disable the rem speaker if you don't want to hear it. rem rem The workstation should have NETBEUI on LANA 0(primary protocol) rem if the NET SEND is done over NETBEUI; otherwise the message won't rem be received. rem net send %1 Hello if ERRORLEVEL 1 goto bailout delay %2 rem The utility program pauses execution of the batch file for the rem specified number of seconds. Any similar utility can be used rem instead. To obtain DELAY.EXE contact your MS Customer Support rem engineer. rem goto start rem rem The connection attempt failed. Stop the sniffer! :bailout net send /d:mydomain STOP THE SNIFF @echo @echo Well, hopefully the sniffer stopped!
| Article Translations
|

Back to the top
