Troubleshooting guide

5. Obtaining Failure Information
190
5.4 Collecting information and transferring files by using the "ftp" command
on a remote terminal
You can use the ftp command on a remote terminal or remote server to connect to the Switch and
to obtain failure or maintenance information by specifying a file name.
In a stack configuration, you can connect to the master switch by using the
ftp command. You
cannot connect to member switches other than the master switch by using the
ftp command.
To collect failure or maintenance information or to transfer files by using member switches other
than the master switch, perform the following procedure:
1. Use each member switch to collect the failure or maintenance information.
2. Use the
cp command to copy the information collected from each member switch from the
member switches to the master switch, and then transfer the files from the master switch.
For the procedure for transferring the files, see 5.2 Transferring maintenance information
files.
(1) Collecting "show tech-support" information
The procedures below describe how to connect a remote operation terminal, as a client, to the
Switch by using the
ftp command, and how to collect information by specifying the name of a file
that contains the required
show tech-support information.
Table 5-3: ftpInformation you can obtain with the "ftp" command
Figure 5-10: Obtaining the basic "show tech-support" information
client-host> ftp 192.168.0.60 <---1
Connected to 192.168.0.60.
220 192.168.0.60 FTP server (NetBSD-ftpd) ready.
Name (192.168.0.60:staff1): staff1
331 Password required for staff1.
Password:
230 User staff1 logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> get .show-tech show-tech.txt <---2
local: show-tech.txt remote: .show-tech
150 Opening BINARY mode data connection for '/etc/ftpshowtech'.
226 Transfer complete.
270513 bytes received in 8.22 seconds (32.12 KB/s)
ftp> quit
221 Thank you for using the FTP service on 192.168.0.60.
client-host>
1. Use FTP on a client to connect to the Switch.
2. Transfer the
.show-tech file to the client. (The file name show-tech.txt is specified.)
File name to specify in the "get"
subcommand
Information to be obtained
.show-tech Results obtained from the show tech-support command
.show-tech-unicast Results obtained from the show tech-support unicast command
.show-tech-multicast Results obtained from the show tech-support multicast command
.show-tech-layer-2 Results obtained from the show tech-support layer-2 command