nbtstat(1Mtcp)


nbtstat -- get information about NetBIOS

Synopsis

nbtstat [-a remote_host] [-A IP_address] [-c] [-f lmhost_file] [-i] [-R] [-s]

Description

The nbtstat command enables you to retrieve status information directly from NetBIOS. If you use nbtstat without any of its parameters, it returns the contents of the local name table and NetBIOS session status information. If you use the -a option, nbtstat returns the contents of the remote name table. This utility is typically used to check for erroneous information when developing network applications.

For a detailed description of the nbtstat output, see ``Viewing NetBIOS status'' in Configuring NetBIOS.

Options


-a remote_host
Display the name table of the specified remote host.

-A IP_address
Display the name table of the remote host specified by its IP address.

-c
List the current contents of the local name cache including IP addresses. The output is suitable for use as the contents of the lmhosts(4tcp) file. NetBIOS names are output with non-printable characters replaced by their hexadecimal equivalents with the format ``\0xnn''. One of following flags may appear in the comment field:

UNI
unique name

GRP
group name
This may be followed by one of the following flags:

B
name query pending by broadcast

P
name query pending

R
name query pending with DNS resolver
The time shown in the comment field is the time in seconds since a non-static name (a name that is not defined in /etc/lmhosts) entered the cache.

-f lmhost_file
Force NetBIOS to use the lmhosts file specified in lmhost_file. (The default lmhosts file is /etc/lmhosts).

-i
If NetBIOS is defined to run over all interfaces in /etc/inet/nb.conf (NB_ADDR=""; see nb.conf(1Mtcp)), force the NetBIOS daemon to reconfigure itself over all network interfaces currently defined for the system.

-R
Purge and reload the NetBIOS name cache without having to stop and then restart NetBIOS.

-s
Display just the session status information. If you omit this option, nbtstat also displays the local name table.

References

in.nbd(1Mtcp), lmhosts(4tcp), netbios(1Mtcp)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004