Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


November 2000

Browstat


RSS
Subscribe to Windows IT Pro | See More Resource Kit Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

A command-line tool for managing the browser

The Browser network service, which you see through its Network Neighborhood interface, must have seemed a good idea at one time, but sometimes its unreliability makes Browser seem more like a bug than a feature. Whenever Browser gives a user fits, the network administrator needs to try to figure out why it's misbehaving. But what tools does an administrator have to monitor Browser's behavior? In a word, the answer is Browstat.

Browstat, a command-line tool, tells you a lot about a network's browsers. For example, it can tell you which machine is a workgroup's browse master, list all servers that are candidates to be the browse master, and list browsing statistics for the workgroup. Browstat's one annoying feature is that it requires that you do some typing to identify transport protocols.

As you might know, Microsoft network OSs elect a separate browse master for each workgroup and network transport protocol on a subnet. To find out which system is the browse master for a workgroup named Fishes on TCP/IP, you could type the command

browstat getmaster netbt_el90x1 fishes

The getmaster option tells Browstat to report the browse master for the Fishes workgroup. (Browstat commands aren't case sensitive.) The purpose of the netbt_el90x1 part of the command string isn't as obvious. This part of the command is Windows NT-ese for "the NetBIOS over TCP/IP (NetBT) stack running on your 3Com Etherlink 3C905B-TX NIC." You must type the name correctly; Browstat won't help you if you don't. Fortunately, you can use the Net config rdr command to easily find the name of your system's transport protocols. On an NT 4.0 system, the transport name will resemble \Device\NetBT_El90x1 (you can drop the \Device\ part). On a Windows 2000 system, the device names look like \Device\NetBT_Tcpip_{418786EA-FAFE-443C-A9Fb-DC0CE26D87E5}, probably because of Win2K's Plug and Play (PnP) nature. After you've typed the transport name a few times, you'll wonder, as I did, why Browstat's author didn't either include wildcard support for transport names or drop the need to type the transport for single-protocol environments.

Browstat has a number of options.

browstat status -v <workgroup-name>

reports the name of the master and backup browsers and lists the number and type of servers in the workgroup. The workgroup name is optional; if you don't include it, Browstat reports on your workgroup.

browstat view <transport-
  name> <workgroup-name>

shows all servers that are potential browse masters as well as the OS that they claim to run (Samba servers commonly fib about their OS version to ensure that they're browse masters). This command also reports the characteristics Browser uses to grade servers' fitness to act as a browse master during an election. Again, the workgroup name is optional. For example,

browstat view netbtel90x1

will list the potential servers running TCP/IP on my workstation's workgroup.

browstat getpdc <transport-name> <domain-name>

returns the name of the PDC for the specified domain (the domain name is optional).

browstat getmaster <transport-name> <workgroup-name>

reports the browse master for the specified transport and workgroup--­information that you can also get from the browstat stats command.

browstat stats \\<systemname>

asks the specified system (or your local machine, if you don't specify a system) to report its Browser statistics (e.g., how many elections the system has seen, how many times a server has announced itself).

Browstat is small (42KB), requires no installation, and provides a quick-and-dirty look at browsing on a network. Add it to your toolkit; Browstat earns its keep.

End of Article



Reader Comments
<br>In This Old Resource Kit: "Browstat" (November 2000), Mark Minasi states, "After you've typed the transport name a few times, you'll wonder, as I did, why Browstat's author didn't either include wildcard support for transport names or drop the need to type the transport for single-protocol environments." I ran into this problem a few months ago. I discovered that with the Windows 2000 version of Browstat, you don't have to type in the Win2K long transport name. All you have to do is type in the transport number: browstat vw 1 domain name. Even this command works: browstat vw 1.<br>

Mark Frieden December 13, 2000


You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
The Memory-Optimization Hoax

Don't believe the hype. At best, RAM optimizers have no effect. At worst, they seriously degrade performance. ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

SET Options and Recompilation

Learn how to tweak your server's SET options so that you don't have to constantly recompile. ...


Windows OSs Whitepapers Why SaaS is the Right Solution for Log Management

Related Events Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing