The text of a manual · part 33 of 49
Cyclades-TS User Guide: Chapter 3 - Additional Features, pages 317 to 324
Pages 317 to 324 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 317
Chapter 3 - Additional Features 2. Add Menu Option 3. Delete Menu Option 4. List Current Menu Settings 5. Save Configuration to Flash 6. Quit Option ==>
Accessing the menu - VI mode To configure which ports will prompt the menu shell and if it will require authentication to gain access to it, follow the steps bellow: Step 1: If no authentication is required to gain access to the menu. Configure the following parameters in /etc/portslave/pslave.conf for the ports that will use this menu shell. s<x>.protocol telnet conf.telnet /bin/menush s<x>.authtype none
Where <x> is the port number being configured. Step 2: If authentication is required to gain access to the menu The users default shell must be modified to run the /bin/menush. So in /etc/passwd the shell should be changed as follows. There should be something like : user:FrE6QU:505:505:Embedix User,,,:/home/user:/bin/menush
In pslave.conf the port where the serial terminal is attached must be configured for login with authentication local. Configure the following lines: s<x>.protocol login s<x>.authtype local
Where <x> is the port number being configured.
SNMP Proxy
User Guide
317
Page 318
Chapter 3 - Additional Features The SNMP Proxy for Power management feature allows the Cyclades-TS console servers to proxy SNMP requests to the Cyclades Intelligent Power Distribution Units. This allows SNMP clients to query and control the remote IPDU using standard set and get commands.
How to Configure You should ensure that the AlterPath PM is correctly installed and configured by following the procedure outlined in the Power Management Appendix of this user Manual. You must also ensure that SNMP is correctly configured by following the configuration instructions in Chapter 3 - SNMP. The parameters and features that can be controlled in the remote IPDU are as follows:•
The number AlterPath PM units connected to a given console server
•
The number of the outlets connected to a given port
•
The number the AlterPath PM units connected to this port (when a daisy chain configuration is being used).
•
The instantaneous RMS current being drawn from each of the AlterPath PM unit(s) connected to this port.
•
The software version of the AlterPath PM unit(s) connected to this port
•
The temperature of the AlterPath PM unit(s) connected to this port
•
The name of the outlet as configured in the AlterPath PM.
•
The alias of the server that is configured as using this outlet
•
The name of the serial console connection that corresponds to the host which this outlet controls power.
•
The status of the outlet . power status : 0 (off), 1 (on), 3 (unknow) . lock state : 0 (unlock), 1 (lock) , 2 (unknow)
This feature will allow the user to control the AlterPath PM outlets using SNMP set commands. These following actions will be allowed to each outlet by this feature : 1) ON 2) OFF User Guide
318
Page 319
Chapter 3 - Additional Features 3) CYCLE 4) LOCK 5) UNLOCK Important! The Cyclades-TS proxies all SNMP requests to the AlterPath PM unit. Therefore there is a small delay if an outlet cycling is requested by the snmpset command. To sucessfully cycle an outlet, a 4 second or higher timeout must be specified. To run this command for more than one outlet or for units configured as daisy chain, this time should be recalculated.
Examples: This feature allows the user do these following SNMP requests: 1) get the number of Cyclades-TS serial ports that has PM connected to: # snmpget -m all -v 2c -t 4 -c cyclades 10.10.0.1 .cyNumberOfPM <enter> enterprises.cyclades.cyACSMgmt.cyPM.cyNumberOfPM.0 = 2
2) get the number of outlets of the PM connected to serial port 16: # snmpget -m all -v 2c -t 4 -c cyclades 10.10.0.1 .cyPMNumberOutlets.16 <enter> enterprises.cyclades.cyACSMgmt.cyPM.cyPMtable.cyPMEntry.cyPMNumberOutlets.16 = 8
3) get the number of units of the PM connected to serial port 14: # snmpget -m all -v 2c -t 4 -c cyclades 10.10.0.1 .cyPMNumberUnits.14 <enter> enterprises.cyclades.cyACSMgmt.cyPM.cyPMtable.cyPMEntry.cyPMNumberUnits.14 = 2
For more examples and MIB definition please search the online FAQ at: www.cyclades.com/support/faqs.php
User Guide
319
Page 320
Chapter 3 - Additional Features Start and Stop Daemons This feature allows daemons (services) to be enabled or disabled without need of reboot the Cyclades-TS. A simple engine detects configuration changes (file comparison). This feature is implemented with shell scripts. There is one main shell script called daemon.sh and one sourced shell script (included by daemon.sh) for every daemon (service) that runs in the Cyclades-TS. The shell script daemon.sh must be run once by inittab and every time a configuration change is made. The daemon.sh reads a file /etc/daemon_list which contains the names of all sourced shell scripts and performs the start/stop/restart operation needed if any file related to service was changed. The daemon.sh will keep a hidden copy, prefixed with “.” and suffixed with .tmp, of all related files in the directory /var/run. Each sourced shell script has a set of mandatory shell variables handled directly by the shell script daemon.sh. The sourced shell scripts may have other shell variables not handled directly by daemon.sh. Such variables have the sole purpose of facilitating the configuration of command line parameters. The mandatory shell variables define: 1.
If the service is enabled or disabled. (ENABLE=YES/NO)
2.
The pathname to the daemon. (DNAME=<daemon name, DPATH=<daemon path>)
3.
How to restart the daemon: by signal (kill, hup, term, etc) or by command (start, stop. etc). (DTYPE=sig/cmd)
4.
Signal to be sent to the daemon. Default is term. (DSIG=<signal>)
5.
A list of configuration files. The files in this list will be checked for changes. (ConfigFiles=<config file list>)
6.
A initialization shell script that will be run before start the service. (ShellInit=<shell_script_name [command line parameters]>)
7.
Command line parameters to start the daemon. (DPARM=<command line parameters>)
8.
Command Line parameters to stop the daemon. (DSTOP=<command line parameters>)
The daemon.sh may be executed in two ways:
User Guide
320
Page 321
Chapter 3 - Additional Features 1.
Without parameters in the command line, it will check the configuration files of the service and restart or stop it if needed.
2.
It will perform the requested action (stop/restart) in the list of services given in the command line regardless any configuration changes.
The command daemon.sh help will display a list of services available. Currently the following services are handled by daemon.sh. The first column is the service ID, the second is the name of the shell script file. NTP
/etc/ntpclient.conf
// Network Timer client
SNMP
/etc/snmpd.conf
// SNMP
SYSLOG
/etc/syslog.sh
// Syslog daemon
SSH
/etc/sshd.sh
// Secure shell
INETD
/etc/inetd.sh
// Network services daemon
PMD
/etc/pmd.sh
// Power Management daemon
The following example will stop power management, ssh and network timer client services. daemon.sh PMD SSH NTP stop
User Guide
321
Page 322
Chapter 3 - Additional Features How to Configure Them Example of sourced shell script that activates the ntpclient service (type sig). # This file defines the NTP client configuration ENABLE=NO
# Must be "NO" or "YES" (uppercase)
DNAME=ntpclient
# daemon name
DPATH=/bin
# daemon path
ShellInit=
# Performs any required initialization
ConfigFiles=
# configuration files
DTYPE=sig
# must be "sig" or "cmd" (lowercase)
DSIG=kill
# signal to stop/restart the daemon (lowercase) # if it's hup term will be used to stop the daemon
# daemon command line parameters NTPSERVER="-h 129.6.15.28"
# NTP server ip address
NTPINTERVAL="-l 300"
# Time in seconds to ask server
NTPCOUNT="-c 0"
# counter : 0 means forever
DPARM="$NTPCOUNT $NTPSERVER $NTPINTERVAL" DSTOP= Example of sourced shell script that activates the ipsec service (type cmd). # This file defines the ipsec configuration ENABLE=NO
# Must be "NO" or "YES" (uppercase)
DNAME=ipsec
# daemon name
DPATH=/usr/local/sbin
# daemon path
ShellInit=/etc/ipsec.init
# Performs any required initialization
User Guide
322
Page 323
Chapter 3 - Additional Features ConfigFiles=
# configuration files
DTYPE=cmd
# must be "sig" or "cmd"
DSIG=kill
# signal to stop/restart the daemon (lowercase) # if it's hup term will be used to stop the daemon
# daemon command line parameters DPARM="setup --start" DSTOP="setup --stop"
User Guide
323
Page 324
Chapter 3 - Additional Features
This page has been left intentionally blank.
User Guide
324