Network+

Скачать в pdf «Network+»

The -s Switch


As with the -A and -a switches, the lowercase -s switch is similar to its uppercase sibling. The nbtstat -s command produces the same output as nbtstat -S, except that it tries to resolve remote host IP addresses into host names, if possible. Figure 4.10 shows sample output from the nbtstat -s switch. Note the similarities between Figure 4.10 and Figure 4.9.


FIGURE 4.10 Sample output of the nbtstat -s command


C:NBTSTAT -s


NetBIOS Connection Table


Local Name    State In/Out Remote Host    Input Output


S1    <0O> Connected Out DEFAULT    <20> 256B    432B


S1    <03> Listening


As you can do with the netstat command, you can place a number at the end of any nbtstat command to indicate that the command should execute once every so many seconds (as specified by the number) until you press Ctrl+C.

The File Transfer Protocol (FTP) Utility


From the last chapter, you know that File Transfer Protocol (FTP) is a subset of TCP/IP and that FTP is used during the transfer of files between Unix boxes. In recent years, FTP has become a truly cross-platform protocol for file transfer. Because Internet, and thus TCP/IP, use has skyrocketed, almost every client (and server) platform has implemented FTP. Windows 95/98 and NT are not exceptions. Both of their TCP/IP stacks come with a command-line FTP utility (as a matter of fact, they’re basically the same utility).


To start the FTP utility, type FTP at a command prompt. The result is an FTP command prompt:


FTP>


From this command prompt, you can upload and download files, as well as change the way FTP operates. To display a list of all the commands you can use at the FTP command prompt, type HELP and press Enter. To get help on a specific command, type HELP, a space, and then the name of the command.

Скачать в pdf «Network+»