MyTetra Share
Делитесь знаниями!
Наапетян продажа оружия www.gunsroom.ru.
http://www.lemmens-crane.ru/ общие сведения об устройстве мостовых кранов.
Linux Configuration for SNMP and OMSA
25.04.2013
22:01
Раздел: root - Linux - SNMP

 

Linux Configuration for SNMP and OMSA

 

 

Linux Configuration for SNMP and OMSA

 

Overview

This tutorial will guide you through the steps required to install Dell OpenManage Server Administrator (OMSA) and configure SNMP on Linux servers. These components are required for OpenManage Essentials to properly discover, inventory, and receive alerts from your Linux servers.

 

You will need to complete the following steps for all your Linux servers:

 

1. Install Net-SNMP for your specific version of Linux

2. Install OMSA dependencies

3. Install OMSA

4. Verify OMSA SNMP settings

5. Install Inventory Collector on 64-bit servers

6. Configure the SNMP Community string

7. Configure trap destinations

8. Enable SNMP Access for remote hosts (SUSE Linux only)

9. Configure Linux firewall settings

 

Install Net-SNMP

You must install the Net-SNMP agent that is provided with your Linux distribution prior to installing OMSA. Otherwise, you will need to manually update the snmpd.conf file or reinstall OMSA after the SNMP install.

 

Make sure the SNMP service is started:

/etc/init.d/snmpd <start | status | restart>

 

Install OMSA Dependencies

Note: OMSA is supported only on Red Hat Enterprise Linux and SUSE Linux Enterprise. Please review the latest Dell OpenManage Software Support Matrix for supported Linux operating systems. You can install OMSA on all Linux systems even if the server is not supported, however complete functionality is not guaranteed.

OMSA requires several dependency RPMs for remote enablement support. Ensure these RPMs are installed prior to installing OMSA. The RPMs are available in the following directory:

linux\RPMS\supportRPMS\opensourcecomponents\<OS>\<architecture>

Follow the sequence below to install the required RPMs:

rpm -ivh libcmpiCppImpl0-x.x.x.rpm

rpm –ivh libwsman1-x.x.x.rpm

rpm -ivh sblim-sfcb-x.x.x.rpm

rpm -ivh sblim-sfcb-x.x.x.rpm

NOTE: Install the libwsman and openwsman client RPMs simultaneously as they have cyclic dependency:

rpm -ivh libwsman1-x.x.x.rpm openwsman-clientx.x.x.rpm

rpm -ivh openwsman-server-x.x.x.rpm

NOTE: You might be required to install the following RPM from your Linux distribution media:

rpm –ivh libxslt-1.x.x.x.rpm

 

Install OMSA from the Internet

The following steps require internet access on each Linux server:

 

Yum Setup (RHEL5, RHEL 6)

1. Set up the Dell OpenManage Repository:

wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash

2. Install OpenManage Server Administrator:

yum install srvadmin-all

 

Zypper Setup (SLES 11 or greater)

1. Set up the Dell OpenManage Repository:

wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash

2. Install OpenManage Server Administrator:

zypper install srvadmin-all

 

Rug Setup (SLES 10)

1. Set up the Dell OpenManage Repository:

wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash

2. Install OpenManage Server Administrator:

rug install srvadmin-base

rug install srvadmin-webserver

rug install srvadmin-storageservices

NOTE: If you want to install srvadmin-all, 'setserial' must be installed.

 

After installation, make sure to start the applicable services by running the following command:

sh linux/supportscripts/srvadmin-services.sh start

 

Install OMSA Locally (Alternative)

The following steps require internet access from one server on your network only.

First, download the install package using the following steps:

 

1. Go to support.dell.com.

2. Choose your server model and Linux OS.

3. Scroll down to Systems Management and select OpenManage Server Administrator Managed Node.

4. Click the 'Download Now' link to download the file that is for your specific Linux distribution.

5. Download the file to a directory on your hard drive.

6. Copy over the file to your Linux server using WinSCP or similar utilty.

7. Browse to the location where you copied the file and unzip the package using the following command:

gunzip xxxx.tar.gz

8. Untar the package using the following command:

tar –xvf xxxx.tar

 

Next Install OMSA using the following steps:

 

1. Change the current directory to the location where the files were extracted.

2. Run the following command to perform an express install:

sh linux/supportscripts/srvadmin-install.sh –express

 

After installation, make sure to start the applicable services by running the following command:

sh linux/supportscripts/srvadmin-services.sh start

 

Verify OMSA SNMP Settings

If OMSA was installed after SNMP, these changes should have already been made by the OMSA installer. The changes setup OMSA communication with the SNMP agent and give read-only access to the entire MIB tree to the public community. This is required for OMSA and OME to work properly.

1. Open the file for editing:

/etc/snmp/snmpd.conf

2. Verify the following 3 lines exist or add/modify them to the below if they do not:

view all included .1

access notConfigGroup "" any noauth exact all none none

smuxpeer .1.3.6.1.4.1.674.10892.1

 

Install Inventory Collector on 64-bit Servers

Inventory Collector is required for systems update on Linux servers. Currently it is available only as a 32-bit version and must be installed separately for 64-bit systems.

For all 64-bit supported Linux operating systems you must complete the following steps:

 

1. Install the 32-bit version of zlib and compat-libstdc++ libraries.

2. Install the srvadmin-cm package from:

/linux/RPMS/supportRPMS/srvadmin

 

Configure the SNMP Community String

The community string is a password which must match for the querying server and all devices which it queries.

 

To modify the community string:

1. Open the file for editing:

/etc/snmp/snmpd.conf

2. Copy the line that reads:

com2sec publicsec default public

or

com2sec notConfigUser default public

3. Edit the copied line to replace ‘public’ with the new community string:

com2sec publicsec default <new_community_name>

or

com2sec notConfigUser default <new_community_name>

4. To enable the changes, restart the SNMP agent:

/etc/init.d/snmpd restart

Note – this step is only needed once after all configuration changes are completed.

 

Configure SNMP Trap Destinations

For OpenManage Essentials to display alerts for a device, you must configure the device to send traps to the OpenManage Essentials server.

 

To configure a trap destination:

1. Open the file for editing:

/etc/snmp/snmpd.conf

2. Add the following line to the file:

Trapsink <OME IP Address> <community name>

3. To enable the changes, restart the SNMP agent:

/etc/init.d/snmpd restart

Note – this step is only needed once after all configuration changes are completed.

 

Enabling SNMP Access for Remote Hosts (SUSE Linux only)

The default SNMP configuration on SUSE Linux versions does not allow remote access. You must enable remote access for the OpenManage Essentials server to manage the system.

 

To enable SNMP access for the OpenManage Essentials server:

1. Open the file for editing:

/etc/snmp/snmpd.conf

2. Copy the line that reads:

rocommunity public 127.0.0.1

3. Edit the copied line to replace the IP address with the OME server’s IP address:

rocommunity public <OME IP Address>

Alternatively, to enable SNMP access for all remote hosts, the new line should read:

rocommunity public

Note – this is not recommended for security purposes.

 

4. To enable the changes, restart the SNMP agent:

/etc/init.d/snmpd restart

Note – this step is only needed once after all configuration changes are completed.

 

Firewall Configuration

If the firewall was enabled during the Linux installation, it will close the SNMP port blocking all external connections by default. Server Administrator will detect this and log a warning message to the system event log.

 

You must open the SNMP port on the server for OpenManage Essentials to communicate with it or else this will block OME from discovering, inventorying, and receiving alerts for the server.

 

Please refer to your specific Linux distribution for configuring firewall settings. You will need to configure your IPTABLES to allow access to UDP Port 161 and 162 for SNMP communication and TCP Port 1311 for OMSA.

← Содержание ...
 
MyTetra Share v.0.35
Яндекс индекс цитирования