Microsoft KB Archive/158744

= How to Automate Network Captures with Network Monitor =

Article ID: 158744

Article Last Modified on 2/22/2007

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Professional Edition
 * Microsoft Windows NT Workstation 3.5
 * Microsoft Windows NT Workstation 3.51
 * Microsoft Windows NT Workstation 4.0 Developer Edition
 * Microsoft Windows NT Server 3.5
 * Microsoft Windows NT Server 3.51
 * Microsoft Windows NT Server 4.0 Standard Edition

-



This article was previously published under Q158744





SUMMARY
Network Monitor gives you the ability to automatically start capturing network information upon starting the program. This is completed by using command-line parameters that can be passed to the program.



MORE INFORMATION
You can use this feature, for example, in conjunction with the AT command to start Network Monitor when a backup operation begins. To do this, put the command to AUTOSTART Network Monitor in the batch file just before the backup operation starts, as in the following example batch file:

@echo off

Start Netmon /AUTOSTART

NTBACKUP backup C:\ /B /L "C:\BACKUP.LOG"

The rest of this article describes the command line options for running Network Monitor. For more information, see the Network Monitor Help file in the Systems Management Server Administrator's Guide.

/REMOTE 
Starts Network Monitor with a connection to the Network Monitor Agent specified.

/NET
Starts Network Monitor with a connection to the network number specified. Use the numbers 1 to N+1 where N is the number of Network cards present in the computer. The one additional interface is the RAS/VPN interface.

/CAPTUREFILTER:
Starts Network Monitor with a specific capture filter loaded.

/DISPLAYFILTER
Starts Network Monitor with a specific display filter loaded.

/BUFFERSIZE
Starts Network Monitor with the buffers size preset to the number of bytes specified.

/QUICKFILTER ,
Begins capturing as soon as Network Monitor is started, and filters on the address specified.

/AUTOSTART
Begins capturing immediately upon starting.

/AUTOSTOP
Stops the Network Monitor capture file when the buffer is full.

/BUFFERSIZE:
Starts Network Monitor with the buffer size preset to the number of megabytes specified (Network Monitor 2.0).

Additional query words: prodnt netmon sms

Keywords: kbhowto KB158744

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.