Install and Configure OMSA on ESXThis is a featured page

Here's a script that will install and configure the Dell™ OpenManage Server Administrator (OMSA) agent on VMware ESX 4. It will also configure the SNMP settings and open the default ports in the firewall to allow communication.

The current version as of 7/2010 is 6.3 - Download from here. You can also search ftp.dell.com/sysman for the latest

If you've never installed OMSA on ESX, don't start with this script! Read the documentation first: "Installing Dell OpenManage in a VMware ESX Server Software Environment. After you have a grasp of the steps necessary, you can use this script as a stand-alone, or integrate it as part of your standard installation procedures.

Script to Install OMSA on ESX

# scott_hanson@dell.com - www.delltechcenter.com
#
# Script to install OMSA on ESX 4.x, configure firewall, and snmp settings
#
# PreReq : OMSA tar from support.dell.com, as of 8-6-2009 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 DOCS
#


# Some variables you might like to change
WD=/root/OM61
OMSA_TAR=OM_6.1.0_ManNode_A00.tar.gz
COMMUNITY_NAME=public
SNMP_TRAP_DEST=192.168.50.118


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

# Installing and starting OMSA
# NOTE: With ver 6.1 the "b" option changed to the "d" option
#
# x = express - Install all components
# d = Dell Agent
# w = web interface
# r = DRAC services
# s = storage management

echo '*** Installing and starting OMSA Agent ***'
$WD/working/linux/supportscripts/srvadmin-install.sh -x
$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 ***'


scott_hanson
scott_hanson
Latest page update: made by scott_hanson , Jul 19 2010, 3:10 PM EDT (about this update About This Update scott_hanson Edited by scott_hanson

3 words added
3 words deleted

view changes

- complete history)
Keyword tags: None
More Info: links to this page
Started By Thread Subject Replies Last Post
alanrenouf vSphere change 0 Nov 25 2009, 10:05 AM EST by alanrenouf
Thread started: Nov 25 2009, 10:05 AM EST  Watch
I had to alter the SED lines as the snmpd.conf has changed in this version, the following worked for me...

sed -i "s/default[[:space:]]*public.*/default $SNMP_TRAP_DEST/g" /etc/snmp/snmpd.conf
2  out of 2 found this valuable. Do you?    
Keyword tags: None
monahancj Is there any troubleshooting or uninstall documentation? 2 Oct 29 2009, 5:38 PM EDT by scott_hanson
Thread started: Oct 26 2009, 4:42 PM EDT  Watch
Firstly, Scott, thanks for the install script. It came in handy for a mostly Windows SysAdmin and worked like a charm on 14 of 16 ESX hosts. (Note for all, copying/pasting into Notepad++ messed up the carriage returns. After ftp'ing the file onto the ESX host I had to open/save the file with Nano.)

On two servers the install had problems with some of the scriptlets. Rerunning in the install doesn't do anything because it seems to thin it's already installed. I'd like to uninstall all the agent completely and resinstall. Is there any documentation for this or general troubleshooting?

Thank you,
Chris

Do you find this valuable?    
Keyword tags: OMSA install uninstall
Show Last Reply
@ceri snmpd config doesn't work on ESX4 2 Oct 22 2009, 10:09 AM EDT by Pionir
Thread started: Sep 9 2009, 4:21 AM EDT  Watch
Seems that VMware have changed the snmpd daemon between 3.5 and 4 and the commands above no longer work to configure snmpd as snmpd.conf doesn't contain any of the relevant strings.
Do you find this valuable?    
Keyword tags: problem
Show Last Reply
Showing 3 of 9 threads for this page - view all
Browse by Keywords
Loading...