Chinaunix首页 | 论坛 | 博客
  • 博客访问: 942939
  • 博文数量: 276
  • 博客积分: 4182
  • 博客等级: 上校
  • 技术积分: 4486
  • 用 户 组: 普通用户
  • 注册时间: 2012-04-17 21:14
文章分类

全部博文(276)

文章存档

2014年(9)

2013年(132)

2012年(135)

分类: 系统运维

2013-12-05 13:52:36

我已经安装了一个公平一些戴尔开放式管理客户我们的ESX主机给大家带来戴尔开放管理软件很好的硬件监控我刚才发现这里安装戴尔技术中心一个更简单的方法

这个脚本将安装和在 ESX3.x的配置OMSA代理它还将配置SNMP设置在防火墙中打开的默认端口,允许通信

如果你从来没有在ESX安装OMSA使用此脚本开始!阅读这片文档第一个VMware ESX Server软件环境中安装的Dell OpenManage

然后,一旦你有一个必要步骤的把握可以使用此脚本作为一个独立的或将它集成作为你的标准安装过程的一部分

复制下面

 

#!/bin/sh

#
# scott_hanson@dell.com –
#
# Script to install OMSA on ESX 3.x, configure firewall, and snmp settings
#
# PreReq : OMSA tar from support.dell.com, as of 5-19-2008 the latest is the
# one listed below in the OMSA_TAR variable.
#
# Create a working directory (WD) and copy this script and
# the tarball there, then execute the script.
#
# WARNING : If you’ve never installed OMSA on ESX, DON’T start with
# this script. Walk before you run, read the “Installing
# Dell OpenManage in a VMware ESX Server Software Environment”
# Available on dell.com/vmware under “Support Documents”
#

# Some variables you might like to change
WD=/root/omsa_script
OMSA_TAR=OM_5.4.0_ManNode_A01.tar.gz
COMMUNITY_NAME=public
SNMP_TRAP_DEST=192.168.50.117

# Creating working directory and untar OMSA
mkdir $WD/working
cd $WD/working
tar -zxvf $WD/$OMSA_TAR

# Installing and starting OMSA
# b = base code
# w = web interface
# r = DRAC services
# s = storage management
echo ‘*** Installing and starting OMSA Agent ***’
$WD/working/linux/supportscripts/srvadmin-install.sh -b -w -r -s
$WD/working/linux/supportscripts/srvadmin-services.sh restart

# Open port in firewall for OMSA web interface
echo ‘*** Opening port 1311 for OMSA web interface ***’
esxcfg-firewall -o 1311,tcp,in,OpenManageRequest

# Configuration of snmp settings
echo ‘*** Configuring snmp and restarting snmp service ***’
cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.BACKUP
sed -i “s/rocommunity.*/rocommunity $COMMUNITY_NAME/g” /etc/snmp/snmpd.conf
sed -i “s/trapcommunity.*/trapcommunity $COMMUNITY_NAME/g” /etc/snmp/snmpd.conf
sed -i “s/trapsink.*/trapsink $SNMP_TRAP_DEST/g” /etc/snmp/snmpd.conf
service snmpd restart

# Configuration of firewall for snmp
echo ‘*** Configuring firewall to allow snmp traffic ***’
esxcfg-firewall -e snmpd

# Cleanup
echo ‘*** Removing working files and directory ***’
rm -rf $WD/working
echo ‘*** OMSA installation and configuration complete ***’

 
   
阅读(5087) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~