The text of a manual · part 8 of 49
Cyclades-TS User Guide: Chapter 2 - Installation, Configuration, and Usage, pages 69 to 76
Pages 69 to 76 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 69
Chapter 2 - Installation, Configuration, Usage •
NIS - All authentication types but NIS follow the format all.authtype <Authentication>DownLocal or <Authentication> (e.g. all.authtype radius or radiusDownLocal or ldap or ldapDownLocal, etc). NIS requires all.authtype to be set as local, regardless if it will be "nis" or its “Downlocal" equivalent. The service related to "nis" or its “Downlocal" equivalent would be configured in the /etc/nsswitch.conf file, not in the /etc/portslave/pslave.conf file.
An example value would be: radius all.protocol
For the console server configuration, the possible protocols are: • socket_server (when telnet is used)
• socket_ssh (when ssh version one or two is used)
• raw_data (to exchange data in transparent mode – similar to socket_server mode, but without telnet negotiation, breaks to serial ports, etc.)
An example value would be: socket_server
The Authentication feature See Authentication in Chapter 3 - Additional Features.
Task 5: Activate the changes Execute the following command in HyperTerminal to activate the changes: signal_ras hup
Task 6: Test the configuration Now you will want to make sure that the ports have been set up properly. Step 1: Ping the TS from a DOS prompt. Open a DOS window, type in the following, and then press Enter: ping <IP assigned to the TS by DHCP or you>
User Guide
69
Page 70
Chapter 2 - Installation, Configuration, Usage An example would be: ping 192.168.160.10 If you receive a reply, your TS connection is OK. If there is no reply see Appendix D Software Upgrades and Troubleshooting. Step 2: Telnet to the server connected to the first port of the Cyclades-TS. (This will only work if you selected socket_server as your all.protocol parameter.) While still in the DOS window, type the following and then press Enter: telnet <IP assigned to the TS by DHCP or you> 7001 An example would be: telnet 192.168.160.10 7001 If everything is configured correctly, a telnet session should open on the server connected to port 1. If not, check the configuration, follow the above steps again, and check Appendix D - Software Upgrades and Troubleshooting.
Task 7: Save the changes Execute the following command in HyperTerminal to save the configuration: saveconf
Task 8: Reboot the Cyclades-TS After rebooting, the initial configuration is complete.
Note: restoreconf does the opposite of saveconf, copying the contents of the /proc/flash/script file to the corresponding files in the ramdisk. The files on the ramdisk are overwritten. Restoreconf is run automatically each time the Cyclades-TS is booted.
70
Cyclades-TS
Page 71
Chapter 2 - Installation, Configuration, Usage Special Configuration for the Cyclades-TS110/100 TS110/100-specific background information Since there are two configurable physical interfaces available in the TS110/100 (RS-232 and RS-485), these models require the configuration of the parameter described below.
all.media or* s1.media
For the TS110/100 only. • rs232 (RS-232 interface and DB-9 connector),
(*see note box below)
• rs485_half_terminator (RS-485 interface, half duplex communication with two wires, DB-9 or Terminal Block. The TS110/ 100 terminates the network),
• rs422 (RS-485 interface, full duplex communication with four wires, DB-9 or Terminal Block. The TS110/100 terminates the network), or
• rs485_half (RS485 interface, half duplex communication with two wires, DB-9 or Terminal Block. The TS110/100 is in the middle of the network.)
Note: Note: all.* parameters are used to set default parameters for all ports and s#.* parameters change the default parameters for individual ports. As the TS110/100 has only one port, either s1* or all.* can be used interchangeably.
User Guide
71
Page 72
Chapter 2 - Installation, Configuration, Usage DANGER! When reconfiguring the media from RS232 to RS485 (or RS485 to RS232), it is extremely important to remove the serial cable (DB9 connector) before issuing signal_ras hup or signal_ras start (to make valid the new configuration). Using wrong cable for that newly configured media may burn the serial interface. When using Web or telnet/ssh session to reconfigure the media, follow these steps: 1) Remove the serial cable before the reconfiguration 2) Start the reconfiguration process 3) Save and submit the changes (e.g. signal_ras hup) 4) Insert the new serial cable compatible with the new media When using console for the configuration, follow these steps: 1) Edit the proper configuration file 2) Quit editor, saving the changes 3) Run saveconf 4) Remove the serial cable 5) Power the unit off 6) Insert the new serial cable compatible with the new media 7) Power the unit back on
Configuring the Cyclades-TS110/100 for the first time The Cyclades-TS110/100 does not have a dedicated console port. Therefore, after configuring the serial port, perform the following steps:
72
Cyclades-TS
Page 73
Chapter 2 - Installation, Configuration, Usage Step 1: Edit the file /etc/inittab. Comment the line that designates the console port (add a “#” to it): # ttyS0::respawn:/sbin/getty -p ttyS0 ansi Uncommenting the line starts the program cy_buffering (remove the '#' from the beginning): ::once:/sbin/cy_buffering Step 2: Run saveconf. The command saveconf, which reads the /etc/config_files file, should be run. The command saveconf copies all the files listed in the file /etc/config_files from the ramdisk to /proc/flash/script. The previous contents of the file /proc/flash/script will be lost. Step 3: Reboot. After rebooting the TS110/100, the initial configuration is complete.
User Guide
73
Page 74
Chapter 2 - Installation, Configuration, Usage Accessing the Serial Ports There are four ways to access the serial ports, depending on the protocol you configured for that serial port (all.protocol being socket_server for telnet access, socket_ssh for ssh access, etc).
Opening and closing a telnet session to a serial port To open a telnet session to a serial port, issue the command: telnet <CAS hostname> <TCP port number> <CAS hostname> is the hostname configured in the workstation where the telnet client will run (through /etc/hosts or DNS table). It can also be just the IP address of the Cyclades-TS (Ethernet's interface) configured by the user or learned from DHCP. Note: restoreconf does the opposite of saveconf, copying the contents of the /proc/flash/ script file to the corresponding files in the ramdisk. The files on the ramdisk are overwritten. Restoreconf is run automatically each time the Cyclades-TS is booted. <TCP port number> is the number associated to the serial port. From factory, 7001 corresponds to serial port 1, 7002 to serial port 2 and so forth. To close the telnet session, just press the telnet hot key configured in telnet client application (usually it's "Ctrl ]") and "q" to quit.
Opening and closing an SSH session to a serial port To open a ssh session to a serial port, issue the command: ssh -l <Username>:<Server> <CAS hostname> <Username> is the user configured to access that serial port. It is present either in the local CAS database or in a Radius/Tacacs/LDAP, etc database. <Server> can be just the TCP port number assigned for that serial port (7001, 7002, etc) or the alias for the server connected to that serial port. <CAS hostname> is the hostname configured in the workstation where the ssh client will run
74
Cyclades-TS
Page 75
Chapter 2 - Installation, Configuration, Usage (through /etc/hosts or DNS table). It can also be just the IP address of the Cyclades-TS (Ethernet's interface) configured by the user or learned from DHCP. To exit the ssh session, press the hot key configured for that ssh client (usually "~.").
Accessing Serial Ports using “ts_menu” To access the serial port (telnet or ssh) using ts_menu, login to the CAS unit and, after receiving the shell prompt, run ts_menu. The servers (aliases) or serial ports will be shown as option to start a connection (telnet/ssh). After typing ts_menu, you will see something similar to the following: Serial Console Server Connection Menu for your Master Terminal Server 1 ttyS1 2 ttyS2 3 ttyS3 4 ttyS4 5 ttyS5 6 ttyS6 7 ttyS7 8 ttyS8 Type 'q' to quit, a valid option[1-8], or anything else to refresh:
How to close the session from ts_menu (from the console of your unit) Step 1: Enter the escape character. The escape character is shown when you first connect to the port. In character/text Mode, the Escape character is ^] After entering the escape character, the following is shown: Console escape. Commands are: l go to line mode c go to character mode z suspend telnet b send break t toggle binary e exit telnet Step 2: Press “e” to exit from the session and return to the original menu. Select the exit option and you will return to the shell prompt.
User Guide
75
Page 76
Chapter 2 - Installation, Configuration, Usage How to close the session from ts_menu (from a telnet session to your unit) You have to be sure that a different escape character is used for exiting your telnet/SSH session; otherwise, if you were to exit from the session created through the ts_menu, you will close your entire telnet session to your unit. To do this, when you first telnet/SSH to your unit, use the -e option. So for example, to set Ctrl-? as the escape character, type: telnet -e ^? 192.168.160.10 ssh -e ^? user1@192.168.160.10 To exit from the session created through the ts_menu, just follow Step 1 from above. To exit from the entire telnet session to your unit, type the escape character you had set. To exit from the entire SSH session to your unit, type the escape character you had set plus character "."(dot)
User Guide
76