The text of a manual · part 41 of 49
Cyclades-TS User Guide: Appendix D - Software Upgrades and Troubleshooting
Pages 387 to 400 of 454, from Cyclades-TS User Guide
The original document is the PDF (4.3 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Cyclades TS2000 and Avocent TS2000
Page 387
Appendix D - Upgrades and Troubleshooting Upgrades
Appendix D - Software Upgrades and Troubleshooting
Users should upgrade the Cyclades-TS whenever there is a bug fix or new features that they would like to have. Below are the six files added by Cyclades to the standard Linux files in the /proc/flash directory when an upgrade is needed. They are: • boot_ori - original boot code
• boot_alt - alternate boot code
• syslog - event logs (not used by Linux)
• config - configuration parameters, only the boot parameters are used by the boot code
• zImage - Linux kernel image
• script - file where allCyclades-TS configuration information is stored
The Upgrade Process To upgrade the Cyclades-TS, follow these steps: Step 1: Log in to the TS as root. Provide the root password if requested. Step 2: Go to the /proc/flash directory using the following command: cd /proc/flash Step 3: FTP to the host where the new firmware is located. Log in using your username and password. Go to the directory where the firmware is located. Select binary transfer and “get” the firmware file.
Note: The destination file name in the /proc/flash directory must be zImage. Example (hostname = server; directory = /tftpboot; username= admin; password = adminpw; firmware filename on that server = zImage.134).
User Guide
387
Page 388
Appendix D - Upgrades and Troubleshooting ftp > open server > user admin > Password: adminpw > cd /tftpboot > bin > get zImage.134 zImage > quit
Note: Due to space limitations, the new zImage file may not be downloaded with a different name, then renamed. The TS searches for a file named zImage when booting and there is no room in flash for two zImage files. Step 4: Run zImage. To make sure the downloaded file is not corrupted or that the zImage saved in flash is OK the user should run: md5sum -b /proc/flash/zImage Step 5: Check text file information. Now the user should check with the information present in the text file saved in the Cyclades site (e.g. zImage.134.md5sum). If the numbers match, the downloaded file is not corrupted. Step 6: Issue the command reboot. reboot Step 7: Confirm that the new Linux kernel has taken over. After rebooting, the new Linux kernel will take over. This can be confirmed by typing the following to see the Linux kernel version: cat /proc/version
388
Cyclades-TS
Page 389
Appendix D - Upgrades and Troubleshooting Troubleshooting Flash Memory Loss If the contents of flash memory are lost after an upgrade, please follow the instructions below to restore your system: Step 1: Turn the TS OFF, then back ON. Step 2: Using the console, wait for the self test messages. If you haven't got any, make sure you have the right settings. If you really get no boot message, press <s> right after powering ON and skip ALTERNATE boot code. That will make the boot run its ORIGINAL boot code. Step 3: During the self test, press <Esc> after the Ethernet test. Step 4: When the Watch Dog Timer prompt appears, press <Enter>. Step 5: Choose the option Network Boot when asked. Step 6: Enter the IP address of the Ethernet interface. Step 7: Enter the IP address of the host where the new zImage file is located. Step 8: Enter the file name of the zImage file on the host. Step 9: Select the TFTP option instead of BOOTP. The host must be running TFTPD and the new zImage file must be located in the proper directory. e.g. /tftpboot for Linux. Step 10: Accept the default MAC address by pressing <Enter>. The Cyclades-TS should begin to boot off the network and the new image will be downloaded and begin running in RAM. At this point, follow the upgrade steps above (login, cd /proc/flash, ftp, and so forth) to save the new zImage file into flash again.
User Guide
389
Page 390
Appendix D - Upgrades and Troubleshooting Note: Possible causes for the loss of flash memory may include: downloaded wrong zImage file, downloaded as ASCII instead of binary; problems with flash memory.
If the Cyclades-TS booted properly, the interfaces can be verified using ifconfig and ping. If ping does not work, check the routing table using the command route. Of course, all this should be tried after checking that the cables are connected correctly. The file /etc/config_files contains a list of files acted upon by saveconf and restoreconf. If a file is missing, it will not be loaded onto the ramdisk on boot. The following table lists files that should be included in the /etc/config_files file and which programs use each.
Table 40: Files to be included in /etc/config_file and the program to use File
Program
/etc/securetty telnet, login, su
/etc/issue getty
/etc/getty_ttyS0 login (via console)
/etc/hostname tcp
/etc/hosts tcp
/etc/host.conf tcp
/etc/nsswitch.conf dns
/etc/resolv.conf dns
/etc/config_files saveconf
/etc/passwd login, passwd, adduser...
/etc/group login, passwd, adduser...
390
Cyclades-TS
Page 391
Appendix D - Upgrades and Troubleshooting Table 40: Files to be included in /etc/config_file and the program to use File
Program
/etc/ssh/ssh_host_key.pub sshd
/etc/ssh/sshd_config sshd
/etc/ssh/ssh_config ssh client
/etc/ssh/ssh_host_key sshd (ssh1)
/etc/ssh/ssh_host_key.pub sshd (ssh1)
/etc/ssh/ssh_host_dsa_key sshd (ssh2)
/etc/ssh/ssh_host_dsa_key.pub sshd (ssh2)
/etc/snmp/snmpd.conf snmpd
/etc/portslave/pslave.conf cy_ras, portslave,TS configuration information
/etc/network/ifcfg_eth0 ifconfig eth0, cy_ras, rc.sysinit
/etc/network/ifcfg* ifconfig, cy_ras, rc.sysinit
/etc/network/ifcfg_lo ifconfig lo, cy_ras, rc.sysinit
/var/run/radsession.id radinit, radius authentication process
/home adduser, passwd
/etc/network/st_routes ifconfig, cy_ras, rc.sysinit
/etc/syslog-ng/syslog-ng.conf syslog-ng
Important! If any of the files listed in /etc/config_files is modified, the Cyclades-TS administrator must execute the command saveconf before rebooting the Cyclades-TS or the changes will be lost. If a file is created (or a filename altered), its name must be added to this file before executing saveconf and rebooting.
User Guide
391
Page 392
Appendix D - Upgrades and Troubleshooting Important! Cyclades Technical Support is always ready to help with any configuration problems. Before calling, execute the command cat /proc/version and note the Linux version and Cyclades-TS version written to the screen. This will speed the resolution of most problems.
Hardware Test A hardware test called tstest is included with the Cyclades-TS firmware. It is a menu-driven program, run by typing tstest at the command prompt. The various options are described below. Note that the Cyclades-TS should not be tested while in use as the test will inactivate all ports. You should inactivate all processes that may use the serial ports: inetd, sshd, cy_ras, and cy_buffering. Following are the hardware test steps: Step 1: signal_ras stop. Step 2: Perform all hardware tests needed. Step 3: signal_ras start.
Port Test Either a cross cable or a loop-back connector is necessary for this test. Their pinout diagrams are supplied in Appendix B - Cabling, Hardware, and Electrical Specifications. Connect the loop-back connector to the modem cable and then connect the modem cable to the port to be tested (or connect a cross cable between two ports to be tested). In the case of the 1PortTS110/100, connect the DB-25 loop-back connector to the console cable using a DB-9 DB-25 convertor. When tstest senses the presence of the cable or connector, the test will be run automatically and the result shown on the screen. Each line of data corresponds to a port in test. The last four columns (DATA, CTS, DCD, and DSR) indicate errors. The values in these columns should be zero. Below is an example of the output screen.
392
Cyclades-TS
Page 393
Appendix D - Upgrades and Troubleshooting <- Packets -> From
To
<- Errors ->
Sent Received
Passes
Data
CTS
DCD
DSR
2 <-> 2
35
35
35
0
0
0
0
4 <-> 5
35
35
35
0
0
0
0
5 <-> 4
35
35
35
0
0
0
0
When this test is run with a cable or connector without the DSR signal (see the pinout diagram for the cable or connector being used), errors will appear in the DSR column. This does not indicate a problem with the port. In the example above, tstest perceived that a loop-back connector was attached to port 2 and that a cross cable was used to connect ports 4 and 5.
Port Conversation This test sends and receives data on the selected port. One way to run this test is to place a loop-back connector on the port to be tested and begin. Enter the number of the port and a baud rate (9600 is a typical value). Type some letters, and if the letters appear on the screen, the port is working. If the letters do not appear on the screen (which also occurs if the loopback connector is removed), the port is not functioning correctly. A second method that can be used to test the port is to connect it to a modem with a straight cable. Begin the test and type “at”. The modem should respond with “OK”, which will appear on the screen. Other commands can be sent to the modem or to any other serial device. Press Ctrl-Q to exit the terminal emulation test.
Test Signals Manually This test confirms that signals are being sent and received on the selected port. Neither the loop-back connector nor the cross cable are necessary. Enter the number of the port to be tested and begin the test.
Figure 53: Initial test
User Guide
393
Page 394
Appendix D - Upgrades and Troubleshooting First, type Ctrl-D to see the X in the DTR column move position, then type Ctrl-R to see the X in the RTS column change position. If each of the Xs moves in response to its command, the signals are being sent. Another method to test the signals is to use a loop-back connector. Enter the number of the port with the loopback connector and start the test. In this case, when Ctrl-D is typed, the Xs in the first three columns will move as shown below.
Figure 54: Second screen, showing changed positions This is because the test is receiving the DTR signal sent through the DCD and DSR pins. When Ctrl-R is typed, the Xs in the RTS and CTS columns should move together. If the Xs change position as described, the signals are being sent and received correctly.
Test Analog Ports (for theTS110 only) This test consecutively reads the Analog-to-Digital converters on both analog ports and compares the variance between the current reading and the first reading (pattern). One way to run this test is to place a short-circuit connector on the ports. The reading should be at the bottom of the Analog-to-Digital scale. Another way is to place 10K ohms on the ports. The reading should be at half scale. A third way is to place no connector at all. The reading should be at full scale. Below is an example of the output screen, when using 10K ohms. <--------- VALUE ---------> ANALOG
Initial
Current
Correct
<---- ERRORS ----> Passes
Data
-----------------------------------------------------------1
3fff
3fff
7
7
0
2
3fff
3fff
7
7
0
Press <ESC> to stop the test.
394
Cyclades-TS
Page 395
Appendix D - Upgrades and Troubleshooting Test Digital Ports (for the TS110 only) This test consecutively reads the digital ports and compares the variance between the current reading and the first reading (pattern). One way to run this test is to place a loop-back connector on the ports. The port reading on this condition should be 1. It means that pin+ and pin- have a closed loop. For the ports without loop-back, the reading should be 0. It means that pin+ and pin- have an open loop. Below is an example of the output screen. Digital ports 1, 2, 3, 4 and 5 have loop-back connectors. Digital ports 6, 7 and 8 have not.
<--------- VALUE ---------> DIGITAL Initial
Current
Correct
<---- ERRORS ----> Passes
Data
-------------------------------------------------------------1
1
1
10
10
0
2
1
1
10
10
0
3
1
1
10
10
0
4
1
1
10
10
0
5
1
1
10
10
0
6
0
0
10
10
0
7
0
0
10
10
0
8
0
0
10
10
0
Press <ESC> to stop the test.
Single User Mode The Cyclades-TS has a single user mode used when: •
The name or password of the user with root privileges is lost or forgotten,
•
After an upgrade or downgrade which leaves the Cyclades-TS unstable,
•
After a configuration change which leaves the Cyclades-TS inoperative or unstable.
User Guide
395
Page 396
Appendix D - Upgrades and Troubleshooting Type the word “single” (with a blank space before the word) during boot using a console connection. This cannot be done using a telnet or other remote connection. The initial output of the boot process is shown below. Entry Point = 0x00002120 loaded at: 00002120 0000D370 relocated to: 00300020 0030B270 board data at: 003052C8 0030537C relocated to: 002FF120 002FF1D4 zimage at: 00008100 0006827E relocated to: 00DB7000 00E1717E initrd at: 0006827E 0024F814 relocated to: 00E18000 00FFF596 avail ram: 0030B270 00E18000 Linux/PPC load: root=/dev/ram After printing “Linux/PPC load: root=/dev/ram,” the Cyclades-TS waits approximately 10 seconds for user input. This is where the user should type “<sp>single” (spacebar, then the word “single”). When the boot process is complete, the Linux prompt will appear on the console: [root@(none) /]# If the password or username was forgotten, execute the following commands: passwd saveconf reboot
396
Cyclades-TS
Page 397
Appendix D - Upgrades and Troubleshooting For configuration problems, you have two options: Step 1: Edit the file(s) causing the problem with vi, then execute the commands: saveconf reboot Step 2: Reset the configuration by executing the commands: echo > /proc/flash/script reboot If the problem is due to an upgrade/downgrade, a second downgrade/upgrade will be necessary to reverse the process. First, the network must be initialized in order to reach a ftp server. Execute the following script, replacing the parameters with values appropriate for your system. If your ftp server is on the same network as the TS, the gw and mask parameters are optional. config_eth0 ip 200.200.200.1 mask 255.255.255.0 gw 200.200.200.5 At this point, the DNS configuration (in the file /etc/resolv.conf) should be checked. Then, download the kernel image using the ftp command.
Troubleshooting the Web Configuration Manager What to do when the initial Web page does not appear Try pinging, telnetting, or tracerouting to the Cyclades-TS to make sure it is reachable. If not, the problem is probably in the network or network configuration. Are the interfaces up? Are the IP addresses correct? Are filters configured which block the packets? If the Cyclades-TS is reachable, see if the /bin/webs process is running by executing the command ps. If it is not, type /bin/webs & to start it. If the /bin/webs process is not being initialized during boot, change the file /etc/inittab.
How to restore the Default Configuration of the Web Configuration Manager This would be required only when the root password was lost or the configuration file /etc/websum.conf was damaged. From a console or telnet session, edit the file /etc/ config_files. Find the reference to /etc/websum.conf and delete it. Save the modified /etc/ config_files file. Execute the command saveconf. Reboot the system. Enter into the Web Con-
User Guide
397
Page 398
Appendix D - Upgrades and Troubleshooting figuration Manager with the default username and password (root/tslinux). Edit the file /etc/ config_files and insert the reference to /etc/websum.conf.
Recover access to the Cyclades-TS110/100 console port There is no dedicated console port available in the Cyclades-TS110/100. As factory default the serial port is set to work as a console port to allow initial product configuration. After that, changes can still be made through the Ethernet port and a Telnet command. If for some reason this access is lost (usually misconfiguration), the product can only be configured if the steps bellow are followed. Step 1: Power the Cyclades-TS110/100 off. Step 2: Connect the Cyclades-TS110/100 to a terminal configured to work at 9600 bps, with 8 bits, no parity and 1 stop bit. Step 3: Press and hold the ADM button and power on the Cyclades-TS110/100. There’s a small hole in the box containing an internal ADM button that can be reached by a thin, sharp object. Step 4: Release the ADM button when the self test starts on the terminal’s screen. The Cyclades-TS110/100 be now in single user mode, the serial port will work as a console port and the product can de reconfigured. Notice that no previous configuration is lost. After finishing, save the configuration (saveconf), power the Cyclades-TS110/100 off, and reconnect the original device to the serial port.
Using a different speed for the Serial Console The serial console is originally configured to work at 9600 bps. If you want to change that, it is necessary to change the configuration following the steps: Step 1: Run bootconf. The user will be presented with the screen: Current configuration MAC address assigned to Ethernet [00:60:2e:00:16:b9] IP address assigned to Ethernet interface [192.168.160.10] Watchdog timer ((A)ctive or (I)nactive) [A] Firmware boot from ((F)lash or (N)etwork) [F]
398
Cyclades-TS
Page 399
Appendix D - Upgrades and Troubleshooting Boot type ((B)ootp,(T)ftp or Bot(H)) [T] Boot File Name [zvmppctsbin] Server's IP address [192.168.160.1] Console speed [9600] (P)erform or (S)kip Flash test [P] (S)kip, (Q)uick or (F)ull RAM test [F] Fast Ethernet ((A)uto Neg, (1)00 BtH, 100 Bt(F), 10 B(t)F, 10 Bt(H)) [A] Fast Ethernet Maximum Interrupt Events [0] Type <Enter> for all fields but the Console Speed. When presented the following line: Do you confirm these changes in flash ( (Y)es, (N)o (Q)uit ) [N] : Step 2: Enter Y and the changes will be saved in flash. Step 3: Logout and login again to use the console at the new speed.
User Guide
399
Page 400
Appendix D - Upgrades and Troubleshooting CPU LED Normally the CPU status LED should blink consistently one second on, one second off. If this is not the case, an error has been detected during the boot. The blink pattern can be interpreted via the following table: Table 41: CPU LED Code Interpretation Event
CPU LED Morse code
Normal Operation
S (short, short, short . . . )
Flash Memory Error - Code
L (long, long, long . . . )
Flash Memory Error - Configuration
S, L
Ethernet Error
S, S, L
No Interface Card Detected
S, S, S, L
Network Boot Error
S, S, S, S, L
Real-Time Clock Error
S, S, S, S, S, L
Note: The Ethernet error mentioned in the above table will occur automatically if the Fast Ethernet link is not connected to an external hub during the boot. If the Fast Ethernet is not being used or is connected later, this error can be ignored.
400
Cyclades-TS