The text of a manual · part 24 of 49
Cyclades-TS User Guide: Chapter 3 - Additional Features, pages 227 to 236
Pages 227 to 236 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 227
Chapter 3 - Additional Features If the user has permission to read and write, to add the line : rwuser <username> (ex.: rwuser usersnmp). Step 3: Include the following line in /etc/config_files: /etc/snmp/snmpd.local.conf You can configure the /etc/snmp/snmpd.conf file as indicated later in this section. 1.
Snmp version 1 • RFC1155 - SMI for the official MIB tree • RFC1213 - MIB-II
2.
Snmp version 2 • RFC2578 - Structure of Management Information Version 2 (SMIv2) • RFC2579 - Textual Conventions for SMIv2 • RFC2580 - Conformance Statements for SMIv2
3.
Snmp version 3 • RFC2570 - Introduction to Version 3 of the Internet-standard Network Management Framework • RFC2571 - An Architecture for Describing SNMP Management Frameworks • RFC2572 - Message Processing and Dispatching for the Simple Network Management Protocol (SNMP) • RFC2573 - SNMP Applications • RFC2574 - User-based Security Model (USM) for version 3 of the Simple Network Management Protocol (SNMPv3) • RFC2575 - View-based Access Control Model (VACM) for the Simple Network Management Protocol (SNMP) • RFC2576 - Coexistence between Version 1, Version 2, and Version 3 of the Internet-standard Network Management Framework
User Guide
227
Page 228
SNMP 4.
Private UCD SNMP mib extensions (enterprises.2021) • Information about memory utilization (/proc/meminfo) • Information about system status (vmstat) • Information about net-snmp packet
5.
Private Cyclades Vendor MIB ( enterprises.2925 ) • Cyclades-TSxx Remote Management Object Tree (cyclades.4). This MIB permits you to get informations about the product, to read/write some configuration items and to do some administration commands. (For more details see the cyclades.mib file.)
vi Method Files to be changed: /etc/snmp/snmpd.conf This file has information about configuring for SNMP. Step 1: Map the community name public into a security name. # sec.name source com2sec notConfigUser community default public
Step 2: Map the security name into a group name. # groupName securityModel securityName group notConfigGroup v1 notConfigUser
#group notConfigGroup v2c notConfigUser
Step 3: Create a view to which the group has rights. # name view all incl/excl included subtree mask(optional)
.1
Step 4: Grant the group read-only access to the all view.
228
Cyclades-TS
Page 229
Chapter 3 - Additional Features # group context sec.model sec.level prefix read write notif access notConfigGroup "" any noauth exact all none none
Example: # Here is a commented out example configuration that allows less # restrictive access.
# YOU SHOULD CHANGE THE "COMMUNITY" TOKEN BELOW TO A NEW KEYWORD # ONLY KNOWN AT YOUR SITE.
YOU *MUST* CHANGE THE NETWORK TOKEN
# BELOW TO SOMETHING REFLECTING YOUR LOCAL NETWORK ADDRESS SPACE.
## sec.name source community localhost
COMMUNITY
#com2sec mynetwork NETWORK/24
COMMUNITY
#com2sec local
## group.name sec.model sec.name
#group MyRWGroup any local
#group MyROGroup any mynetwork any otherv3user
# #group MyRWGroup #...
## incl/excl subtree mask
#view all included
80
User Guide
.1
229
Page 230
SNMP
## -or just the mib2 tree-
#view mib2
## included
.iso.org.dod.internet.mgmt.mib-2 fc context sec.model sec.level prefix read write notif
#access MyROGroup "" any noauth
0 all none none
#access MyRWGroup "" any noauth
0 all all all
##################################################################
230
Cyclades-TS
Page 231
Chapter 3 - Additional Features Browser Method To configure SNMP with your browser: Step 1: Point your browser to the Console Server. In the address or location field of your browser type the Console Access Server’s IP address. For example: http://10.0.0.0 Step 2: Log in as root and type the Web root password configured by the Web server. This will take you to the Configuration and Administration page. Step 3: Click on the SNMP link. Select the SNMP link. The SNMP configuration file will appear in text mode. Step 4: Edit the configuration file and click on the Submit button Step 5: Make changes effective. Click on the Administration > Run Configuration link. Check the SNMP box and click on the Activate Configuration button. Step 6: Click on the Administration > Load/Save Configuration and click on the Save to Flash button. This will save the file in the flash.
User Guide
231
Page 232
Syslog Syslog The syslog-ng daemon provides a modern treatment to system messages. Its basic function is to read and log messages to the system console, log files, other machines (remote syslog servers) and/or users as specified by its configuration file. In addition, syslog-ng is able to filter messages based on their content and to perform an action (e.g. to send an e-mail or pager message). In order to access these functions, the syslog-ng.conf file needs some specific configuration. The configuration file (default: syslog-ng.conf) is read at startup and is reread after reception of a hangup (HUP) signal. When reloading the configuration file, all destination files are closed and reopened as appropriate. The syslog-ng reads from sources (files, TCP/UDP connections, syslogd clients), filters the messages and takes an action (writes in files, sends snmptrap, pager, e-mail or syslogs to remote servers). There are five tasks required for configuring syslog-ng: Task 1: Define Global Options. Task 2: Define Sources. Task 3: Define Filters. Task 4: Define Actions (Destinations). Task 5: Connect all of the above.
The five tasks are explained in the following section “Syslog-ng and its Configuration” on page 239.
232
Cyclades-TS
Page 233
Chapter 3 - Additional Features Port Slave Parameters Involved with syslog-ng conf.facility
This value (0-7) is the Local facility sent to the syslog-ng from PortSlave.
conf.DB_facility
This value (0-7) is the Local facility sent to the syslog-ng with data when syslog_buffering and/or alarm is active. When nonzero, the contents of the data buffer are sent to the syslogng every time a quantity of data equal to this parameter is collected. The syslog level for data buffering is hard coded to level five (notice) and facility local[0+ conf.DB_facility]. The file /etc/syslog-ng/syslogng.conf should be set accordingly for the syslog-ng to take some action. Example value: 0.
all.syslog_buffering
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 message is sent to syslog-ng with NOTICE level and LOCAL[0+conf.DB_facility] facility.
Configuration for CAS, TS, and Dial-in Access vi Method To change the PortSlave parameters: edit the /etc/portslave/pslave.conf file. To change the syslog-ng configuration: edit the /etc/syslog-ng/syslog-ng.conf file.
Browser Method To configure the PortSlave parameters, see the Data Buffering section. To configure syslog via your Web browser: Step 1: Point your browser to the Console Server. In the address or location field of your browser type the Console Access Server’s IP address. For example: http://10.0.0.0 Step 2: Log in as root and type the Web root password configured by the Web server. This will take you to the Configuration and Administration page.
User Guide
233
Page 234
Syslog Step 3: Click Syslog on the Configuration section. Select the Syslog link. The following page will appear, giving information for configuring syslog:
Figure 31: Syslog page 1
Step 4: Edit the configuration file and click on the Submit button Step 5: Make changes effective. Click on the Administration > Run Configuration link. Check the Syslog-ng box and click on the Activate Configuration button. Step 6: Click on the Administration > Load/Save Configuration and click on the Save to Flash button. This will save the file in the flash.
Wizard Method Step 1: Bring up the wizard. At the command prompt, type the following to bring up the PortSlave parameters involved with the Syslog custom wizard: wiz --sl
234
Cyclades-TS
Page 235
Chapter 3 - Additional Features Screen 1 will appear. Screen 1: *********************************************************** ********* C O N F I G U R A T I O N W I Z A R D ********* *********************************************************** 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.facility : 7 conf.DB_facility : 0 Set to defaults? (y/n) [n] :
User Guide
235
Page 236
Syslog Screen 3: *********************************************************** ********* C O N F I G U R A T I O N W I Z A R D ********* *********************************************************** CONF.FACILITY - This value (0-7) is the Local facility sent to the syslog. The file /etc/syslog-ng/syslog-ng.conf contains a mapping between the facility number and the action. (Please see the 'Syslog-ng Configuration to use with Syslog Buffering Feature' section under Generating Alarms in Chapter 3 the system's manual for the syslog-ng configuration file.) conf.facility[7] :
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. (Please see the 'Syslog-ng Configuration to use with Syslog Buffering Feature' section under Generating Alarms in Chapter 3 the system's manual for the syslog-ng configuration file.) conf.DB_facility[0] :
Note: all.syslog_buffering is configured under the wiz - - db.
236
Cyclades-TS