Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 16 of 49

Cyclades-TS User Guide: Chapter 3 - Additional Features, pages 147 to 156

Pages 147 to 156 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 147

Chapter 3 - Additional Features INSTRUCTIONS for using the Wizard: You can: 1) Enter the appropriate information for your system and press ENTER. Enter '#' if you want to deactivate that parameter or 2) Press ENTER if you are satisfied with the value within the brackets [ ] and want to go on to the next parameter or 3) Press ESC if you want to exit. NOTE: For some parameters, if there is nothing within the brackets, it will continue to ask for a value. In that case, you must enter a valid value or # if you do not wish to configure the value. Press ENTER to continue... Screen 2: *********************************************************** ********* C O N F I G U R A T I O N W I Z A R D ********* *********************************************************** Current configuration: (The ones with the '#' means it's not activated.) conf.nfs_data_buffering : # all.data_buffering : 0 all.DB_mode : cir all.dont_show_DBmenu : 0 all.DB_timestamp : 0 all.syslog_buffering : 0 all.syslog_sess : 0 Set to defaults? (y/n) [n] : Screen 3: *********************************************************** ********* C O N F I G U R A T I O N W I Z A R D ********* ***********************************************************

User Guide

147

Page 148

Data Buffering

CONF.NFS_DATA_BUFFERING - This parameter applies only if users choose to remotely buffer data. This is the remote directory name where data buffering will be written to instead of the default directory '/var/run'. If deactivavated, data buffering will be done locally. conf.nfs_data_buffering[#] : ALL.DATA_BUFFERING - For local data buffering, this parameter represents the maximum file size in bytes allowed to be captured before it is discarded for new space. If remote this parameter is just a flag to either activate (any value greater than 0) or deactivate data buffering. all.data_buffering[0] :

Screen 4: *********************************************************** ********* C O N F I G U R A T I O N W I Z A R D ********* *********************************************************** ALL.DB_MODE - For local data buffering, this parameter allow users to buffer data in either a circular or linear fashion. Circular format (cir) is a revolving buffer file that is overwritten whenever the limit of the buffer size (set by all.data_buffering) is reached. In linear format (lin), data transmission between the remote device and the serial port ceases once the 4k bytes Rx buffer in the kernel is reached. Then if a session is established to the serial port, the data in the buffer is shown (dont_show_DBmenu must be 2), cleared, and data transmission is resumed. Linear buffering is impossible if flow control is set to none. Default is cir. all.DB_mode[cir] : ALL.DONT_SHOW_DBMENU - When 0, a menu with data buffering options is shown when a non-empty data buffering file is found. When 1, the data buffering menu is not shown. When 2, the data buffering menu is

148

Cyclades-TS

Page 149

Chapter 3 - Additional Features not shown but the data buffering file is shown if not empty. When 3, the data buffering menu is shown, but without the 'erase and show' and 'erase' options. all.dont_show_DBmenu[0] :

Screen 5: *********************************************************** ********* C O N F I G U R A T I O N W I Z A R D ********* *********************************************************** ALL.DB_TIMESTAMP - Records the time stamp in the data buffering file (1) or not (0). In case it is configured as 1, the software will accumulate input characters until it receives a CR and LF from the serial port, or the accumulated data reaches 256 characters. Either way, the accumulated data will be recorded in the data buffering file along with the current time. The parameter, all.data_buffering, has to be nonzero in order for this parameter to work. all.DB_timestamp[0] : ALL.SYSLOG_BUFFERING - This parameter is another option to data buffering. Users can also have syslog perform this function along with data buffering into files. When nonzero, the contents of the data buffer are sent to the syslog-ng every time a quantity of data equal to this parameter is collected. The syslog level for data buffering is hard coded to level 5 (notice) and facility conf.DB_facility. The file /etc/syslog-ng/syslog-ng.conf should be set accordingly for the syslog-ng to take some action. (Please see the 'Syslog-ng Configuration to use with Syslog Buffering Feature' section under Generating Alarms in Chapter 3 of the system's manual for the syslog-ng configuration file.)

User Guide

149

Page 150

Data Buffering all.syslog_buffering[0] :

Screen 6: *********************************************************** ********* C O N F I G U R A T I O N W I Z A R D ********* *********************************************************** ALL.SYSLOG_SESS - In order for this parameter to function, make sure syslog buffering is activate. When set as 0, syslog messages are always generated whether or not there is a connection to the port that is sending data to your unit. When set to 1, syslog messages are NOT generated when there IS a connection to the port that is sending data. It is only generated when there isn't a session to the port that is sending data to your unit. all.syslog_sess[0] : Screen 7: *********************************************************** ********* C O N F I G U R A T I O N W I Z A R D ********* *********************************************************** Current configuration: (The ones with the '#' means it's not activated.) conf.nfs_data_buffering : # all.data_buffering : 0 all.DB_mode : cir all.dont_show_DBmenu : 0 all.DB_timestamp : 0 all.syslog_buffering : 0 all.syslog_sess : 0 Are these configuration(s) all correct? (y/n) [n] : If you type 'n'

150

Cyclades-TS

Page 151

Chapter 3 - Additional Features Type 'c' to go back and CORRECT these parameters or 'q' to QUIT : Typing 'c' repeats the application, typing 'q' exits the entire wiz application If you type 'y' Discard previous port-specific parameters? (y/n) [n] :

Note: Answering yes to this question will discard only the parameter(s) which you are currently configuring if they were configured for a specific port in a previous session. For instance, if you are currently configuring parameter, all.x, and there was a specific port, s2.x, configured; then, answering yes to this question will discard s2.x.

Type 'c' to CONTINUE to set these parameters for specific ports or 'q' to QUIT : Typing 'c' leads to Screen 8, typing 'q' leads to Screen 9. Screen 8: *********************************************************** ********* 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 9.

User Guide

151

Page 152

Data Buffering

Screen 9: *********************************************************** ********* 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] : Screen 10: *********************************************************** ********* 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 certain parameters for a specific serial port.

152

Cyclades-TS

Page 153

Chapter 3 - Additional Features 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 nfs_data_buffering: config configure conf nfsdb <string> To configure data_buffering: config configure line <serial port number> databuffering <number> To configure DB_mode: config configure line <serial port number> dbmode <string> To configure dont_show_DBmenu: config configure line <serial port number> dbmenu <number> To configure DB_timestamp: config configure line <serial port number> dbtimestamp <number> To configure syslog_buffering: config configure line <serial port number> syslogdb <number>

Tip. You can configure all the parameters for a serial port in one line: config configure line <serial port number> tty <string> conf nfsdb <string> db <number> dbmode <string> dbmenu <number> dbtimestamp <number> syslogdb <number> Step 2: Activate and Save.

User Guide

153

Page 154

Data Buffering 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.)

154

Cyclades-TS

Page 155

Chapter 3 - Additional Features DHCP The DHCP (Dynamic Host Configuration Protocol) Client is available for firmware versions 1.2.x and above. DHCP is a protocol that allows network administrators to assign IP addresses automatically to network devices. Without DHCP (or a similar protocol like BOOTP), each device would have to be manually configured. DHCP automatically sends a new IP address to a connected device when it is moved to another location on the network. DHCP uses the concept of a fixed time period during which the assigned IP address is valid for the device it was assigned for. This “lease” time can vary for each device. A short lease time can be used when there are more devices than available IP numbers. For more information, see RFC 2131.

Parameter Involved and Passed Values The DHCP client on the Ethernet Interface can be configured in two different ways, depending on the action the Cyclades-TS should take in case the DHCP Server does not answer the IP address request: 1.

No action is taken and no IP address is assigned to the Ethernet Interface (most common configuration): • Set the global parameter conf.dhcp_client to 1. • Comment all other parameters related to the Ethernet Interface (conf.eth_ip, etc.). • Add the necessary options to the file /etc/network/dhcpcd_cmd (some options are described below).

2.

The Cyclades-TS restores the last IP address previously provided in another boot and assigns this IP address to the Ethernet Interface. For the very first time the unit is powered ON, the IP address restored is 192.168.160.10 in case of failure in the DHCP. The unit goes out from the factory with DHCP enabled (conf.dhcp_client 2): • Set the global parameter conf.dhcp_client to 2. • Comment all other parameters related to the Ethernet Interface (conf.eth_ip, etc.). • Add the following lines to the file /etc/config_files: /etc/network/dhcpcd_cmd (from factory file already present in /etc/config_files)

User Guide

155

Page 156

DHCP /etc/dhcpcd-eth0.save (From the factory, the file is already present in /etc/config_files.) • Add the option “-x” to the factory default content of the file /etc/network/dhcpcd_cmd: /sbin/dhcpcd -l 3600 -x -c /sbin/handle_dhcp From the factory, /etc/network/dhcpcd_cmd already has such content. • Add all other necessary options to the file /etc/network/dhcpcd_cmd (some options are described below). In both cases if the IP address of the Cyclades-TS or the default gateway are changed, the Cyclades-TS will adjust the routing table accordingly. Two files are related to DHCP: /bin/handle_dhcp

The script which is run by the DHCP client each time an IP address negotiation takes place.

/etc/network/dhcpcd_cmd

Contains a command that activates the DHCP client (used by the cy_ras program). Its factory contents are: /bin/dhcpcd -c /bin/handle_dhcp

The options available that can be used on this command line are: -D

This option forces dhcpcd to set the domain name of the host to the domain name parameter sent by the DHCP Server. The default option is to NOT set the domain name of the host to the domain name parameter sent by the DHCP Server.

-H

This option forces dhcpcd to set the host name of the host to the hostname parameter sent by the DHCP Server. The default option is to NOT set the host name of the host to the hostname parameter sent by the DHCP Server.

-R

This option prevents dhcpcd from replacing the existing /etc/resolv.conf file.

156

Cyclades-TS