How to setup SNMP for ESX4.1

We have several ESX4.1 servers that we would like to monitor remotely and I understand that we can do this through SNMP.   Unfortunatly all I can find is esx4.0 or esxi instructions.
Since this is normal, I am assuming that it is a straight forward config.
The end goal is to have it send alerts to an windows 7 box.
LVL 2
brian_appliedcpuAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

coolsport00Commented:
VMware's KB should provide the assistance you need:
http://kb.vmware.com/kb/1008065

Regards,
~coolsport00
0
brian_appliedcpuAuthor Commented:
We are using VCenter and do not use the CLI.

I have already seen that I need to edit the snmpd.xml
but am unsure about what information goes where.

config><snmpSettings><enable>true</enable>
<communities>public</communities>
<target>public </targets>
<port>167</port>
</snmpSettings></config>

I just don't see any clear instructions.
0
coolsport00Commented:
Ok...well, pg. 129 of the Datacenter Adm Guide I think provides assistance with those using vCenter:
http://www.vmware.com/pdf/vsphere4/r41/vsp_41_dc_admin_guide.pdf

Hope that helps.

~coolsport00
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

brian_appliedcpuAuthor Commented:
Okay...we will give this a try.
Question though:

 From the vSphere CLI, type
vicfg-snmp.pl --server hostname --username username --password password -c com1.
Replace com1 with the community name you wish to set. Each time you specify a community
What host/username/password am i specifying?  the esx server, root, pw or the snmp mgt server receiving the traps?
0
coolsport00Commented:
It should be the ESXi host root/pwd because that is the host you're requiring data/traps from.
0
brian_appliedcpuAuthor Commented:
Did this...where 118.20 is my windows 7 machine setup to capture the traps.

C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>vicfg-snmp.pl --server 192.
168.118.95 --username root --password pasxxxx -t 192.168.118.20@162/public
Changing notification(trap) targets list to: 192.168.118.20@162/public...
Complete.

C:\Program Files (x86)\VMware\VMware vSphere CLI\bin>vicfg-snmp.pl --server 192.
168.118.95 --username root --password pasxxxx --enable
Enabling agent...
Failed : A general system error occurred: Bind socket(af=2) failed, reason: 98,
Address already in use
0
prak_seafarerCommented:
install a vcenter server on any 64bit windows machine and configure vcenter to send the snmp traps.

simple and strait forward
0
coolsport00Commented:
Searched around a while and didn't find anything on that error "brian_appliedcpu". 1 person did in & posted in VMware Communities:
http://communities.vmware.com/thread/263597, but seems didn't really get an answer. There was a SNMP whitepaper reference: http://www.vmware.com/pdf/vsp_4_snmp_config.pdf. Not sure that'll provide much more info. Your best bet is more than likely to use the Datacenter Guide I provided to utilize vCenter to configure your SNMP traps. If I come across an answer (may plug CLI guru Alan Renouf to see if he knows what the error is from), I'll let you know.

Regards,
~coolsport00
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
brian_appliedcpuAuthor Commented:
Any additional informatio would be appreciated
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VMware

From novice to tech pro — start learning today.