The text of a manual · part 14 of 49
Cyclades-TS User Guide: Chapter 3 - Additional Features, pages 127 to 136
Pages 127 to 136 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 127
Chapter 3 - Additional Features When a connection request arrives using one of pool_ipno, pool_serverfarm, or pool_socket_port the TS will look for the first free serial port from the pool and that port will be assigned to connection. If there is no serial port free in the pool the connection is just dropped.
How to Configure it Following is an example of serial port pool configuration: # # Serial port pool: pool-1 # s1.tty ttyS1 s1.protocol socket_server s1.socket_port 7001 // TCP port # for specific allocation s1.pool_socket_port 3000 // TCP port # for the pool s1.ipno 10.0.0.1 // IP address for specific allocation s1.pool_ipno 10.1.0.1 // IP address for the pool s1.serverfarm serial-1 // alias for specific allocation s1.pool_serverfarm pool-1 // alias for the pool s2.tty ttyS2 s2.protocol socket_server s2.socket_port 7002 // TCP port # for specific allocation s2.pool_socket_port 3000 // TCP port # for the pool s2.ipno 10.0.0.2 // IP address for specific allocation s2.pool_ipno 10.1.0.1 // IP address for the pool s2.serverfarm serial-2 // alias for specific allocation s2.pool_serverfarm pool-1 // alias for the pool # # Serial port pool: pool-2 # s3.tty ttyS3 s3.protocol socket_ssh s3.socket_port 7003 // TCP port # for specific allocation s3.pool_socket_port 4000 // TCP port # for the pool s3.ipno 10.0.0.3 // IP address for specific allocation s3.pool_ipno 10.2.0.1 // IP address for the pool
User Guide
127
Page 128
CAS Port Pool s3.serverfarm serial-3 // alias for specific allocation s3.pool_serverfarm pool-2 // alias for the pool s4.tty ttyS4 s4.protocol socket_ssh s4.socket_port 7004 // TCP port # for specific allocation s4.pool_socket_port 4000 // TCP port # for the pool s4.ipno 10.0.0.4 // IP address for specific allocation s4.pool_ipno 10.2.0.1 // IP address for the pool s4.serverfarm serial-4 // alias for specific allocation s4.pool_serverfarm pool-2 // alias for the pool
In the example above, there are two pools: • pool-1 (identified by Protocol socket_server, TCP port #3000, IP 10.1.0.1, and alias pool1)
• pool-2 (identified by Protocol socket_ssh, TCP port #4000, IP 10.2.0.1, and alias pool-2)
The serial ports ttyS1 and ttyS2 belong to the pool-1. The serial ports ttyS3 and ttyS4 belong to the pool-2. You can access specifically serial port ttyS1 by using TCP port 7001, IP address 10.0.0.1 or alias serial-1. If the ttyS1 is being used by somebody else the connection will be dropped if the user is not a admin_user. Alternately, you can access ttyS1 through pool (if it's free) using TCP port 3000, IP 10.1.0.1 or alias pool-1. If it is not free ttyS2 will be automatically allocated. Additionally, if ttyS2 is not free, the connection will be dropped.
128
Cyclades-TS
Page 129
Chapter 3 - Additional Features Centralized Management The Cyclades-TS allows centralized management through the use of a Master pslave.conf file. Administrators should consider this approach to configure multiple Cyclades-TS. Using this feature, each unit has a simplified pslave.conf file where a Master include file is cited. This common configuration file contains information for all units, properly divided in separate sections, and would be stored on one central server. This file, in our example shown in the following figure Figure 22: Example of Centralized Management, is /etc/portslave/TScommon.conf. It must be downloaded to each Cyclades-TS.
Note: Centralized management can mean one big configuration file (the common file) that is placed in a management host. This same file would be downloaded into all TS boxes (each of those boxes would include a tiny config file and that big common file). In this application, there may or may not be clustering involved. The user may want to access each box individually, without passing through a central point (master), using the common file just to make his/her life easier in regard to maintain the config file. This user could ALSO add the clustering application on a daily basis. Clustering does NOT require a common config file. A common config file does NOT apply to clustering, however, common config files can be used in an integrated manner.
Figure 22: Example of Centralized Management The abbreviated pslave.conf and /etc/hostname files in each unit, for the example are: User Guide
129
Page 130
Centralized Management
For the /etc/hostname file in unit 1: unit1 For the plsave.conf file in unit 1: conf.eth_ip 10.0.0.1 conf.eth_mask 255.0.0.0 conf.include /etc/portslave/TScommon.conf For the /etc/hostname file in unit 2: unit2 For the plsave.conf file in unit 2: conf.eth_ip 10.0.0.2 conf.eth_mask 255.0.0.0 conf.include /etc/portslave/TScommon.conf For the /etc/hostname file in unit 3: unit3 For the plsave.conf file in unit 3: conf.eth_ip 10.0.0.3 conf.eth_mask 255.0.0.0 conf.include /etc/portslave/TScommon.conf The common include file for the example is: all.authtype none all.protocol socket_server conf.host_config unit1
130
Cyclades-TS
Page 131
Chapter 3 - Additional Features all.socket_port s1.tty ttyS1 s2.tty ttyS2
7001+
... s16.tty ttyS16 s17.tty
20.20.20.3:7033 s18.tty
20.20.20.3:7034
... conf.host_config unit2 all.socket_port s1.tty ttyS1 s2.tty ttyS2
7033+
... sN.tty ttySN conf.host_config unit3 all.socket_port s1.tty ttyS1 s2.tty ttyS2
7301+
... sN.tty ttySN conf.host_config end
User Guide
131
Page 132
Centralized Management When this file is included, unit1 would read only the information between conf.host_config unit1 and conf.host_config unit2. Unit2 would use only the information between conf.host_config unit2 and conf.host_config unit3 and unit3 would use information after conf.host_config unit3 and before conf.host_config end.
Steps for using Centralized Configuration Step 1: Create and save the /etc/portslave/pslave.conf and /etc/hostname files in each Cyclades-TS. Step 2: Create, save, and download the common configuration. Create and save the common configuration file on the server, then download it (probably using scp) to each unit. Make sure to put it in the directory set in the pslave.conf file (/etc/portslave in the example). Step 3: Execute the command signal_ras hup on each unit. Step 4: Test each unit. If everything works, add the line /etc/portslave/TScommon.conf to the /etc/config_files file. Step 5: Save the file and close it. Step 6: Execute the saveconf command.
Note: The included file /etc/portslave/TScommon.conf cannot contain another include file (i.e., the parameter conf.include must not be defined). Also, <max ports of TS> + N(+) is done same way as serial port.
132
Cyclades-TS
Page 133
Chapter 3 - Additional Features Clustering Clustering is available for the Cyclades-TS with firmware versions 1.3.0 and up (except for the TS110/100). It allows the stringing of Terminal Servers so that one Master Cyclades-TS can be used to access all Cyclades-TSs on a LAN. The Master Cyclades-TS can manage up to 1024 serial ports, so that the following can be clustered: •
1 Master TS1000 + 31 Slave TS1000s, or
•
1 Master TS2000 + 15 Slave TS2000s, or
•
1 Master TS3000 + 9 slave TS3000s + 1 slave TS2000
An example with one Master TS2000 and two Slave TS1000s is shown in the following figure.
Figure 23: An example using the Clustering feature
User Guide
133
Page 134
Clustering Parameters Involved and Passed Values The Master Cyclades-TS must contain references to the Slave ports. The configuration described earlier for Console Access Servers should be followed with the following exceptions for the Master and Slaves:
Table 7: Master Cyclades Configuration (where it differs from the CAS standard) Parameter conf.eth_ip
Description Ethernet Interface IP address.
Value for this example 20.20.20.1 conf.eth_ip_alias
Secondary IP address for the Ethernet Interface (needed for clustering feature).
209.81.55.110 conf.eth_mask_alias
Mask for secondary IP address above.
255.255.255.0 all.socket_port
This value applies to both the local ports and ports on Slave Cyclades-TS.
7001+ all.protocol
Depends on the application.
Socket_ssh or socket_server all.authtype
Depends on the application.
Radius, local, none, remote, TacacsPlus, Ldap, local/Radius, radius/local, local/TacacsPlus, TacacsPlus, local, RadiusDownLocal, ldapDownLocal, NIS s33.tty
This parameter must be created in the Master TS file for every Slave port. Its format is: IP_of_Slave:[slave_socket_port] for non-Master ports. In this case, the slave_socket_port value is not necessary because s33.socket_port is automatically set to 7033 by all.socket_port above.
20.20.20.2:7033
134
Cyclades-TS
Page 135
Chapter 3 - Additional Features Table 7: Master Cyclades Configuration (where it differs from the CAS standard) Parameter
Description
Value for this example s33.serverfarm
An alias for this port. (This is an optional parameter)
Server_on_slave1_ serial_s1 s33.ipno
This parameter must be created in the Master TS file for every Slave port, unless configured using all.ipno.
0.0.0.0 s34.tty
See s33.tty.
20.20.20.2:7034 s34.serverfarm
An alias for this port.
Server_on_slave1_ serial_s2 s34.ipno
See s33.ipno.
0.0.0.0 s35.tty
See s33.tty.
20.20.20.2:7035 s35.serverfarm
An alias for this port.
Server_on_slave1_ serial_s3 s35.ipno
See s33.ipno.
0.0.0.0
S65.tty
The format of this parameter is IP_of_Slave:[slave_socket_port] for nonMaster ports. The value 7301 was chosen arbitrarily for this example.
20.20.20.3:7301
S65.serverfarm
An alias for this port.
Server_on_slave2_ serial_s1
S65.ipno
See s33.ipno.
0.0.0.0
S66.tty
See s65.tty
20.20.20.3:7302
S66.serverfarm
An alias for this port.
Server_on_slave2_ serial_s2
S66.ipno
See s33.ipno.
0.0.0.0 etc. for s36-s64
User Guide
135
Page 136
Clustering Table 7: Master Cyclades Configuration (where it differs from the CAS standard) Parameter
Description
Value for this example
S67.tty
See s65.tty.
20.20.20.3:7303
S67.serverfarm
An alias for this port.
Server_on_slave2_ serial_s3
S67.ipno
See s33.ipno.
0.0.0.0 etc. for s68-s96
The Slave Cyclades-TSs do not need to know they are being accessed through the Master Cyclades-TS. (You are creating virtual terminals: virtual serial ports.) Their port numbers, however, must agree with those assigned by the Master.
Table 8: Cyclades-TS configuration for Slave 1 (where it differs from the CAS standard)
136
Parameter
Value for this example all.protocol socket_server all.authtype none conf.eth_ip
20.20.20.2 all.socket_port
7033+
Cyclades-TS