The text of a manual · part 39 of 49
Cyclades-TS User Guide: Appendix C - The pslave Configuration File, pages 370 to 378
Pages 370 to 378 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 370
Appendix C - The pslave Configuration File Table 36: Parameters Common to CAS, TS, & Dial-in Access Parameter
Description
Value for this Example all.break_interval
This parameter defines the break duration in milliseconds. It is valid if TTY protocol is socket_ssh,socket_server or ssh-2 (client).
all.radtimeout
This is the timeout (in seconds) for a Radius/ TacacsPlus authentication query to be answered. The first server (authhost1) is tried “radretries” times, and then the second (authhost2), if configured, is contacted “radretries” times. If the second also fails to respond, Radius/TacacsPlus authentication fails.
3 all.radretries
Defines the number of times each Radius/ TacacsPlus server is tried before another is contacted. The default, if not configured, is 5.
5 all.secret
This is the shared secret necessary for communication between the Cyclades-TS and the Radius/TacacsPlus servers.
secret all.flow
This sets the flow control to hardware, software, or none. Valid values are: hard, none and soft.
hard all.protocol
The default CAS setup was explained in Chapter 2, Task 4: Edit the pslave.conf file. The TS configuration settings are in Table 38, “TS Parameters,” on page 383. The Dial-in configuration settings are in Table 39, “Dial-in configuration Parameters,” on page 384.
socket_server all.web_WinEMS
Defines whether or not management of Windows Emergency Management Service is allowed from the Web.
yes or 1, or no or 0
370
Cyclades-TS
Page 371
Appendix C - The pslave Configuration File Table 36: Parameters Common to CAS, TS, & Dial-in Access Value for this Example
Parameter
Description all.xml_monitor
A non-zero value activates XML monitoring. All XML data received from the port is captured and sent to syslog-ng with facility LOCAL<DB_facility> and priority INFO. The format of the message is "XML_MONITOR (ttySx) [data]". XML tags are sent by Windows Server 2003 Emergency Management Services during boot or crash. You can read more on XML_MONITOR in: /etc/syslog-ng/syslog-ng.conf
1 all.translation
Defines whether or not to perform translation of Fnkeys (e.g. F8 key) from one terminal type to VTUTF8. Currently only translation from xterm to VTUTF8 is supported.
xterm sX.pmoutlet sX indicates the serial port number to which the PM hardware is connected. The pmoutlet part of the parameter indicates the outlet # on the PM hardware that manages the server/network equipment in question.
8 s1.tty
The device name for the port is set to the value given in this parameter. If a device name is not provided for a port, it will not function.
ttyS1
User Guide
371
Page 372
Appendix C - The pslave Configuration File CAS Parameters You can configure additional CAS features with the parameters given on the following tables. (The is used as an example in some parameters. In addition to the above parameters which are common to all local and remote access scenarios, you can also configure the following parameters for additional options. Many of the parameters are unique to CAS, but some also apply to TS and Dial-in port profiles. This is indicated in these instances. Table 37: Mostly CAS-specific Parameters Parameter
Description
Value for this Example conf.nfs_data_ buffering
This is the Remote Network File System where data captured from the serial port will be written instead of being written to the local directory /var/run/ DB. The directory tree to which the file will be written must be NFSmounted, so the remote host must have NFS installed and the administrator must create, export and allow reading/writing to this directory. The size of this file is not limited by the value of the parameter all.data_buffering, though the value cannot be zero since a zero value turns off data buffering. The size of the file is dependent on the NFS server only (hard drive, partition size, etc.).
commented conf.DB_facility
This value (0-7) is the Local facility sent to the syslog with the data when syslog_buffering is active. The file /etc/syslog-ng/syslog-ng.conf contains a mapping between the facility number and the action.
0
372
Cyclades-TS
Page 373
Appendix C - The pslave Configuration File Table 37: Mostly CAS-specific Parameters Parameter
Description
Value for this Example all.ipno
This is the default IP address of the CycladesTS 's serial ports. The “+” indicates that the first port should be addressed as 192.168.1.101 and the following ports should have consecutive values. Any host can access a port using its IP address as long as a path to the address exists in the host's routing table.
192.168.170.1 01+ all.netmask
It defines the network mask for the serial port.
255.255.255.2 55 all.DTR_reset
This parameter specifies the behavior of the DTR signal in the serial port. If set to zero the DTR signal will be ON if there is a connection to the serial port, otherwise OFF. If set from 1 to 99 the DTR signal will be always ON. A value greater or equal 100 specifies for how long (in milliseconds) the DTR signal will be turned off before it is turned back on again when a connection to the serial port is closed.
100 all.break_ sequence
This parameter is the string that is used to send a break to the TTY. It is only valid if TTY protocol is socket_ssh or socket_server.
~break all.break_interval
This parameter defines the break duration in miliseconds. It is valid if TTY protocol is socket_ssh, socket_ server or ssh-2 (client)
all.modbus_ smode
Communication mode through the serial ports. This parameter is meaningful only when modbus protocol is configured. The valid options are ascii (normal TX/RX mode) and rtu (some time constraints are observed between characters while transmitting a frame). If not configured, ASCII mode will be assumed.
commented
User Guide
373
Page 374
Appendix C - The pslave Configuration File Table 37: Mostly CAS-specific Parameters Parameter
Description
Value for this Example all.lf_suppress
This can be useful because telneting (from DOS) from some OS such as Windows 98 causes produces an extra line feed so two prompts appear whenever you press Enter. When set to 1, line feed suppression is active which will eliminate the extra prompt. When set to 0 (default), line feed suppression is not active.
0 all.auto_ answer_input
This parameter works in conjunction with all.auto_answer_output. It allows you to configure a string that will be matched against all data coming in from the tty (remote server). If there is a match, the configured output string (auto_answer_output) will then be send back to the tty. This parameter works only when there is no session to the port. If uncommented and a string of bytes is set, matching occurs whenever there is not session established to the port. If this parameter is commented out, then no checking and matching occurs.
commented
374
Cyclades-TS
Page 375
Appendix C - The pslave Configuration File Table 37: Mostly CAS-specific Parameters Parameter
Description
Value for this Example all.auto_ answer_output
This parameter works in conjunction with all.auto_answer_input. It allows you to configure a string that is sent back to the remote server whenever the incoming data remote server matches with all.auto_answer_input. This parameter works only when there is no session to the port. If this parameter is commented, then nothing will be sent back to the remote server even if all.auto_answer_input is uncommented. If this parameter is uncommented and if all.auto_answer_input is also uncommented, then the string configured will be sent back to the remote server.
commented all.poll_interval
Valid only for protocols socket_server and raw_data. When not set to zero, this parameter sets the wait for a TCP connection keep-alive timer. If no traffic passes through the CycladesTS for this period of time, the Cyclades-TS will send a line status message to the remote device to see if the connection is still up. If not configured, 1000 ms is assumed (the unit for this parameter is ms). If set to zero, line status messages will not be sent to the socket client.
0
User Guide
375
Page 376
Appendix C - The pslave Configuration File Table 37: Mostly CAS-specific Parameters Parameter all.socket_port
Description In the CAS profile, this defines an alternative labeling system for the Cyclades-TS ports. The “+” after the numerical value causes the serial interfaces to be numbered consecutively. In this example, serial interface 1 is assigned the port value 7001,serial interface 2 is assigned the port value 7002, etc. One example on how this could be used is in the case of all.protocol or s<n>.protocol socket_ssh and the port value (7001, 7002, etc), if supplied by the ssh client like username:port value, the ssh client will be directly connected with the serial interface.
Value for this Example 7001+
For TS, this parameter is valid only all.protocol is configured as socket_cliente or telnet. It is the TCP port number of the application that will accept connection requested by this serial port.
376
Cyclades-TS
Page 377
Appendix C - The pslave Configuration File Table 37: Mostly CAS-specific Parameters Parameter all.data_ buffering
User Guide
Description A non zero value activates data buffering (local or remote, according to what was configured in the parameter conf.nfs_data_buffering). If local data buffering, a file is created on the Cyclades-TS; if remote, a file is created through NFS in a remote server. All data received from the port is captured in this file. If local data buffering, this parameter means the maximum file size (in bytes). If remote, this parameter is just a flag to activate (greater than zero) or deactivate data buffering. When local data buffering is used, each time the maximum is reached the oldest 10% of stored data is discarded, releasing space for new data (FIFO system) - circular file. When remote data buffering is used, there's no maximum file size other than the one imposed by the remote server - linear file. This file can be viewed using the normal Unix tools (cat, vi, more, etc.). Size is in bytes not kilobytes. See Data Buffering for details.
Value for this Example 0
377
Page 378
Appendix C - The pslave Configuration File Table 37: Mostly CAS-specific Parameters Parameter
Description
Value for this Example all.DB_mode
When configured as cir for circular format, the buffer works like a revolving file at all times. The file is overwritten whenever the limit of the buffer size (as configured in all.data_buffering or s<n>.data_buffering) is reached. As for linear format (lin), once the limit of the kernel buffer size is reached (4k), a flow control stop (RTS off or XOFF-depending on how all.f low or s<n>.flow is set) is issued automatically to the remote device so that it will stop sending data to the serial port. Then, when a session is established to the serial port, the data in the buffer is shown to the user if not empty (dont_show_DBmenu parameter assumed to be 2), cleared, and a flow control start (RTS on or XON) is issued to resume data transmission. Once exiting the session, linear data buffering resumes. If all.flow or s<n>.flow is set to none, linear buffering is not possible as there is no way to stop reception through the serial line. Default is cir.
cir all.DB_ timestamp
Records the time stamp in the data buffering file (1) or not (0). If 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 with a non-zero value for this parameter to be meaningful.
0
378
Cyclades-TS