The text of a manual · part 22 of 49
Cyclades-TS User Guide: Chapter 3 - Additional Features, pages 207 to 216
Pages 207 to 216 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 207
Chapter 3 - Additional Features Screen 7: *********************************************************** ********* C O N F I G U R A T I O N W I Z A R D ********* *********************************************************** You have 8 available ports on this system. Type 'q' to quit, a valid port number[1-8], or anything else to refresh :
Note: The number of available ports depends on the system you are on. Typing in a valid port number repeats this program except this time it's configuring for the port number you have chosen. Typing 'q' leads to Screen 8.
Screen 8: *********************************************************** ********* C O N F I G U R A T I O N W I Z A R D ********* *********************************************************** (Note: If you are NOT connected to this unit through a console, and you have just reconfigured the IP of this unit, activating the new configurations may cause you to lose connection. In that case, please reconnect to the unit by the new IP address, and manually issue a saveconf to save your configurations to flash.)
Do you want to activate your configurations now? (y/n) [y] :
User Guide
207
Page 208
Serial Settings Screen 9: *********************************************************** ********* C O N F I G U R A T I O N W I Z A R D ********* *********************************************************** Flash refers to a type of memory that can be erased and reprogrammed in units of memory known as blocks rather than one byte at a time; thus, making updating to memory easier. If you choose to save to flash, your configurations thus far will still be in the memory of the system even after you reboot it. If you don't save to flash and if you were to reboot the system, all your new configurations will be lost and you will have to reconfigure the system.
Do you want to save your configurations to flash? (y/n) [n] :
CLI Method To configure line parameters for a specific serial port: Step 1: At the command prompt, type in the appropriate command to configure desired parameters. To activate the serial port. <string> should be ttyS<serial port number> : config configure line <serial port number> tty <string> To configure speed: config configure line <serial port number> speed <number> To configure datasize: config configure line <serial port number> datasize <number> To configure stopbits: config configure line <serial port number> stopbits <number>
208
Cyclades-TS
Page 209
Chapter 3 - Additional Features To configure parity: configure line <serial port number> parity <string> To configure flow: config configure line <serial port number> flow <string> To configure dcd: config configure line <serial port number> dcd <number>
Tip. You can configure all the parameters for a serial port in one line: config configure line <serial port number> tty <string> speed <number> datasize <number> stopbits <number> parity <string> flow <string> dcd <number> Step 2: Activate and Save. To activate your new configurations and save them to flash, type: config write
(This is essentially typing signal_ras hup and saveconf from the normal terminal prompt.)
Configuration for Dial-in Access Browser Method See the browser method for the CAS, earlier in this section. The only difference for Dial-in is that the “Dial-in Profile” button should be clicked in Step 5.
User Guide
209
Page 210
Serial Settings CLI Method To configure line parameters for a specific serial port: Step 1: At the command prompt, type in the appropriate command to configure desired parameters. To activate the serial port. <string> should be ttyS<serial port number> : config configure line <serial port number> tty <string> To configure speed: config configure line <serial port number> speed <number>
To conf igure datasize: config configure line <serial port number> datasize <number>
To conf igure stopbits: config configure line <serial port number> stopbits <number>
210
Cyclades-TS
Page 211
Chapter 3 - Additional Features Session Sniffing Versions 1.3.2 and earlier The Cyclades-TS allows a maximum of two connections to each serial port, as follows: •
One common session: user can execute read and write commands to the tty port. Session can be established by a regular user or by an administrator.
•
One sniffer session: user can execute only read commands, in order to monitor what is going on in the other (main) session. Session can only be established by an administrator, defined by the parameter all.admin_users or sN.admin_users in the file pslave.conf (exception: authentication none - anyone can open a sniffer).
The first connection always opens a common session. After the second connection has been established and the user is authenticated, the Cyclades-TS shows the following menu to the administrator user:, - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - * * * * ttySN is being used by (<user_name>) !!! * 1 - Assume the main session 2 - Initiate a sniff session 3 - Quit Enter your option:, - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - If the second user is not an administrator, his connection is automatically refused. This description is valid for all of the available protocols (socket_server, socket_ssh or raw_data).
User Guide
211
Page 212
Session Sniffing Versions 1.3.3 and later You can open more than one common and sniff session at the same port. For this purpose, the following configuration items are available in the file pslave.conf: • all.multiple_sessions: If it is configured as no, only two users can connect to the same port simultaneously. If it is configured as yes, more than two simultaneous users can connect to the same serial port. A “Sniffer menu” will be presented to the user and they can choose either to open a sniff session; to open a read and/or write session; to cancel a connection; or to send a message to other users connected to the same serial port. If it is configured as “RW_sessions,” only read and/or write sessions will be opened, and the sniffer menu won’t be presented. If it is configured as “sniff_session” only, a sniff session will be opened, and the sniffer menu won’t be presented. Default value: no.
• sN.multiple_sessions: Valid only for port N. If it is not defined, it will assume the value of all.multiple_sessions.
• all.multiuser_notif - Multiple User notification selects if users of a certain serial port should receive a warning message every time a new user logs in or out. By default this parameter is not activated. The warning messages doesn't go to the buffering file and will be like the following example: WARNING: New user connected to this port. Current number of users: x or WARNING: User disconnection from this port. Current number of users: x
Where x is the current number of connected users. The last user will know he/she is alone again when x = 1. • sN.multiuser_notif - Valid only for port N. If it is not defined, it will assume the value of all.multiuser_notif.
• all.escape_char: Valid for all the serial ports; this parameter will be used to present the menus below to the user. Only characters from ‘^a’ to ‘^z’ (i.e., CTRL-A to CTRL-Z) will be accepted. The default value is ‘^z’ (CTRL-Z).
• sN.escape_char: Valid only for port N; this parameter will be used to present the menus below to the user. Only characters from ‘^a’ to ‘^z’ (i.e. CTRL-A to CTRL-Z) will be accepted. If it is not defined, it will assume the value of all.escape_char.
212
Cyclades-TS
Page 213
Chapter 3 - Additional Features When multiple sessions are allowed for one port, the behavior of the Cyclades-TS will be as follows: 1.
The first user to connect to the port will open a common session.
2.
From the second connection on, only admin users will be allowed to connect to that port. The Cyclades-TS will send the following menu to these administrators (defined by the parameter all.admin_users or sN.admin_users in the file pslave.conf):
User Guide
213
Page 214
Session Sniffing, - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - * * * * ttySN is being used by (<first_user_name>) !!! * 1 - Initiate a regular session 2 - Initiate a sniff session 3 - Send messages to another user 4 - Kill session(s) 5 - Quit Enter your option:, - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - If the user selects 1 - Initiate a regular session, s/he will share that serial port with the users that were previously connected. S/he will read everything that is received by the serial port, and will also be able to write to it. If the user selects 2 - Initiate a sniff session, s/he will start reading everything that is sent and/or received by the serial port, according to the parameter all.sniff_mode or sN.sniff_mode (that can be in, out or i/o). When the user selects 3 - Send messages to another user, the Cyclades-TS will send the user’s messages to all the sessions, but not to the tty port. Everyone connected to that port will see all the “conversation” that’s going on, as if they were physically in front of the console in the same room. These messages will be formatted as: [Message from user/PID] <<message text goes here>> by the TS To inform the Cyclades-TS that the message is to be sent to the serial port or not, the user will have to use the menu. If the administrator chooses the option 4 - Kill session(s), the Cyclades-TS will show him/her a list of the pairs PID/user_name, and s/he will be able to select one session typing its PID, or
214
Cyclades-TS
Page 215
Chapter 3 - Additional Features “all” to kill all the sessions. If the administrator kills all the regular sessions, his session initiates as a regular session automatically. Option 5 - Quit will close the current session and the TCP connection.
Only for the administrator users: Typing all.escape_char or sN.escape_char from the sniff session or “send message mode” will make the TS show the previous menu. The first regular sessions will not be allowed to return to the menu. If you kill all regular sessions using the option 4, your session initiates as a regular session automatically.
Parameters Involved and Passed Values Sniffing involves the following parameters: all.admin_users
This parameter determines which users can receive the sniff menu. When users want access per port to be controlled by administrators, this parameter is obligatory and authtype must not be none. User groups (defined with the parameter conf.group) can be used in combination with user names in the parameter list. Example values: peter, john, user_group.
all.sniff_mode
This parameter determines what other users connected to the very same port (see parameter admin_users below) can see of the session of the first connected user (main session): in shows data written to the port, out shows data received from the port, and i/o shows both streams, whereas no means sniffing is not permitted.The second and later sessions are called sniff sessions and this feature is activated whenever the protocol parameter is set to socket_ssh or socket_server. Example value: out.
all.escape_char
This parameter determines which character must be typed to make the session enter menu mode. The possible values are <CTRL-a> to <CTRL-z>. Represent the CTRL with carat: ^. This parameter is only valid when the port protocol is socket_server or socket_ssh. Default value is ^z.
User Guide
215
Page 216
Session Sniffing all.multiple_sessions
If it is configured as no, only two users can connect to the same port simultaneously. If it is configured as yes, more than two simultaneous users can connect to the same serial port. A “Sniffer menu” will be presented to the user and they can choose either to open a sniff session; to open a read and/or write session; to cancel a connection; or to send a message to other users connected to the same serial port. If it is configured as “RW_sessions,” only read and/or write sessions will be opened, and the sniffer menu won’t be presented. If it is configured as “sniff_session” only, a sniff session will be opened, and the sniffer menu won’t be presented. Default value: no.
all.multiuser_notif
Multiple User notification selects if users of a certain serial port should receive a warning message every time a new user logs in or out. By default this parameter is not activated. The warning messages doesn't go to the buffering file and will be like the following example: WARNING: New user connected to this port. Current number of users: x or WARNING: User disconnection from this port. Current number of users: x
Where x is the current number of connected users. The last user will know he/she is alone again when x = 1.
Configuration for CAS vi Method Only the file /etc/portslave/pslave.conf has to be changed.
Browser Method To configure Session Sniffing with your browser: Step 1: Point your browser to the Console Server.
216
Cyclades-TS