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 38 of 49

Cyclades-TS User Guide: Appendix C - The pslave Configuration File, pages 361 to 369

Pages 361 to 369 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 361

Appendix C - The pslave Configuration File Introduction

Appendix C - The pslave Configuration File

This chapter begins with a table containing parameters common to all profiles, followed by tables with parameters specific to a certain profile. You can find samples of the pslave configuration files (pslave.conf, .cas, .ts, and .ras) in the /etc/portslave directory in the TS box.

Configuration Parameters CAS, TS, and Dial-in Common Parameters The parameters on the following table are common to all three profiles:

Table 36: Parameters Common to CAS, TS, & Dial-in Access Value for this Example

Parameter

Description conf.dhcp_client

It defines the dhcp client operation mode. Valid values: 0 - DHCP disabled 1 - DHCP active 2 - DHCP active and the unit saves in flash the last IP assigned by the DHCP server (default).

1 Also see Description column .

conf.eth_ip_alias

Secondary IP address for the Ethernet interface (needed for clustering feature).

209.81.55.10 conf.eth_mask_ali as

Mask for the secondary IP address above.

255.255.255. 0 conf.rlogin

It defines the location of rlogin utility Note: This is a parameter specific to TS profile.

Ex: /bin/ rlogin conf.facility

The local facility sent to syslog-ng from PortSlave.

1-7

User Guide

361

Page 362

Appendix C - The pslave Configuration File Table 36: Parameters Common to CAS, TS, & Dial-in Access Parameter

Description

Value for this Example conf.group

Used to group users to simplify the configuration of the parameter all.users later on. This parameter can be used to define more than one group.

group_name: user1, user2 conf.eth_ip

Configured in Task 4: Edit the pslave.conf file in Chapter 2 - Installation, Configuration, and Usage. This is the IP address of the Ethernet interface. This parameter, along with the next two, is used by the cy_ras program to OVERWRITE the file /etc/ network/ifcfg_eth0 as soon as the command “signal_ras hup” is executed. The file /etc/network/ ifcfg_eth0 should not be edited by the user unless the cy_ras configuration is not going to be used.

200.200.200. 1 conf.eth_mask

The mask for the Ethernet network.

255.255.255. 0 conf.eth_mtu

The Maximum Transmission Unit size, which determines whether or not packets should be broken up.

1500 conf.lockdir

The lock directory, which is /var/lock for the Cyclades-TS. It should not be changed unless the user decides to customize the operating system.

/var/lock all.dcd

DCD signal (sets the tty parameter CLOCAL). Valid values are 0 or 1. If all.dcd=0, a connection request will be accepted regardless of the DCD signal and the connection will not be closed if the DCD signal is set to DOWN. If all.dcd=1 a connection request will be accepted only if the DCD signal is UP and the connection will be closed if the DCD signal is set to DOWN.

0

362

Cyclades-TS

Page 363

Appendix C - The pslave Configuration File Table 36: Parameters Common to CAS, TS, & Dial-in Access Parameter

Description

Value for this Example all.users

Restricts access to ports by user name (only the users listed can access the port or, using the character “!”, all but the users listed can access the port.) In this example, the users joe, mark and members of user_group cannot access the port. A single comma and spaces/tabs may be used between names. A comma may not appear between the “!” and the first user name. The users may be local, Radius or TacacsPlus. User groups (defined with the parameter conf.group) can be used in combination with user names in the parameter list. Notice that these are common users, not administrators.

! joe, mark, user_group all.issue

This text determines the format of the login banner that is issued when a connection is made to the Cyclades-TS. \n represents a new line and \r represents a carriage return. Expansion characters can be used here. Value for this Example:

See Description column

\r\n\ Welcome to terminal server %h port S%p \r\n\ all.prompt

User Guide

This text defines the format of the login prompt. Expansion characters can be used here.

%h login:

363

Page 364

Appendix C - The pslave Configuration File Table 36: Parameters Common to CAS, TS, & Dial-in Access Parameter all.media

Description It defines media type RS232/RS484 and operation mode half/full duplex.

Value for this Example See Description column

Valid values for all products : • rs232 - RS232 (default value). When configured sXX.flow is set to hard, only transmit if the CTS signal is asserted. • rs232_half - RS232 with RTS legacy half duplex. Allows hardware flow control, when the parameter sXX.flow is set to hard. With hardware flow control, it asserts the RTS signal and only sends data when CTS is asserted. When sXX.flow is set to no the CTS signal is asserted while sending data. • rs232_half_cts - RS232 with RTS legacy half duplex and CTS control. Configured along with sXX.flow no only sends (asserts RTS while sending), if the CTS signal is not asserted. Valid values for the TS100/TS110 only : • rs485_half - RS485 half duplex without terminator. • rs485_half_terminator - RS485 half duplex with terminator. • rs485_full_terminator - RS485 full duplex with terminator. • rs422 - alike rs485_full_terminator. all.netmask

It defines the network mask for the serial port.

255.255.255. 255 all.mtu

It defines the maximum transmit unit

1500 all.mru

It defines the maximum receive unit

1500

364

Cyclades-TS

Page 365

Appendix C - The pslave Configuration File Table 36: Parameters Common to CAS, TS, & Dial-in Access Parameter

Description

Value for this Example all.sysutmp

It defines whether portslave must write login records.

yes/no all.syswtmp

It defines whether portslave must write login records.

yes/no all.pmtype

Name of the IPDU manufacturer.

cyclades all.pmusers

List of the outlets each user can access.

1-3 all.pmkey

The hotkey that identifies the power management command.

^p all.pmNumOfOutl ets

The number of outlets you have on the AlterPath PM.

8 sXX.pmsessions

Only users logged in with the connection method defined by this parameter will be allowed to access the IPDU unit. It is also necessary to define the authentication method in the sXX.authtype parameter and configure the sXX.users parameter in order to allow users to access the IPDU port. Valid values are: "none" , "ssh", "telnet" or "ssh_telnet".

ssh_telnet

User Guide

365

Page 366

Appendix C - The pslave Configuration File Table 36: Parameters Common to CAS, TS, & Dial-in Access Parameter all.sttyCmd

Description The TTY is programmed to work as configured and this user-specific configuration is applied over that serial port. Parameters must be separated by a space. The following example sets : -igncr This tells the terminal not to ignore the carriagereturn on input, -onlcr Do not map newline character to a carriage return or newline character sequence on output, opost Post-process output, -icrnl Do not map carriage-return to a newline character on input.

Value for this Example commented all.sttyCmd -igncr -onlcr opost icrnl all.utmpfrom

It allow the administrator to customize the field "FROM" in the login records (utmp file). It is displayed in the "w" command.

See Description Column

Ex: "%g:%P.%3.%4" %g : process id %P : Protocol %3 : Third nibble of remote IP %J : Remote IP Note: In the pslave.conf file there is a list of all expansion variables available. all.radnullpass

366

It defines whether the access to users with null password in the radius server must be granted or not.

yes/no

Cyclades-TS

Page 367

Appendix C - The pslave Configuration File Table 36: Parameters Common to CAS, TS, & Dial-in Access Parameter

Description

Value for this Example all.speed

The speed for all ports.

9600 all.datasize

The data size for all ports.

8 all.stopbits

The number of stop bits for all ports.

1 all.parity

The parity for all ports.

none all.authhost1

This address indicates the location of the Radius/ TacacsPlus authentication server and is only necessary if this option is chosen in the previous parameter. A second Radius/TacacsPlus authentication server can be configured with the parameter all.authhost2.

200.200.200. 2 all.accthost1

This address indicates the location of the Radius/ TacacsPlus accounting server, which can be used to track how long users are connected after being authorized by the authentication server. Its use is optional. If this parameter is not used, accounting will not be performed. If the same server is used for authentication and accounting, both parameters must be filled with the same address. A second Radius/TacacsPlus accounting server can be configured with the parameter all.accthost2.

200.200.200. 2

User Guide

367

Page 368

Appendix C - The pslave Configuration File Table 36: Parameters Common to CAS, TS, & Dial-in Access Parameter all.authtype

368

Description Configured in Task 4: Edit the pslave.conf file in Chapter 2 - Installation, Configuration, and Usage. Type of authentication used. There are several authentication type options: • none (no authentication) • local (authentication is performed using the /etc/ passwd file) • remote (This is for a terminal profile only. The unit takes in a username but does not use it for authentication. Instead it passes it to the remote server where it is then used for authentication.) • radius (authentication is performed using a Radius authentication server) • TacacsPlus (authentication is performed using a TacacsPlus authentication server) • ldap (authentication is performed against an ldap database using an ldap server. The IP address and other details of the ldap server are defined in the file /etc/ldap.conf)

Value for this Example local

Cyclades-TS

Page 369

Appendix C - The pslave Configuration File Table 36: Parameters Common to CAS, TS, & Dial-in Access Parameter

Description

Value for this Example

• local/radius (authentication is performed locally first, switching to Radius if unsuccessful) • radius/local (the opposite of the previous option) • local/TacacsPlus (authentication is performed locally first, switching to TacacsPlus if unsuccessful) • TacacsPlus/local (the opposite of the previous option) • RadiusDownLocal (local authentication is tried only when the Radius server is down) • TacacsPlusDownLocal (local authentication is tried only when the TacacsPlus server is down) • ldapDownLocal (local authentication is tried only when the ldap server is down)

all.authtype (cont.)

• 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. Note that this parameter controls the authentication required by the Cyclades-TS. The authentication required by the device to which the user is connecting is controlled separately.

all.break_sequenc e

User Guide

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

369