Specifications

Basic System Administration
96 VMware, Inc.
To start the ESX Server 3 SNMP agent automatically
YoucansettheSNMPdaemontostartwheneverESXServer3bootsbylogginginas
therootuserontheserviceconsoleandrunningthechkconfigcommand:
chkconfig snmpd on
To start the ESX Server 3 SNMP agent manually
IfyoumuststarttheSNMPagentmanually,loginasrootintheserviceconsoleandrun
thefollowingcommand:
/etc/rc.d/init.d/snmpd start
Bydefault,theagentstartsandrunsasbackgroundprocesses.
To enable and disable traps on ESX Server 3
1Edittheconfig.xmlfile.
Theconfigurationparametersnmp/generateTrapsinthe
/etc/vmware/hostd/config.xmlfiledetermineswhethertogenerateatrap.By
default,atrapisgenerated.
2Todisabletraps,addthefollowingentrytothefile:
<plugins>
<snmpsvc><generateTraps>false</generateTraps></snmpsvc>
</plugins>
3Toreenabletraps,removetheentryfromthefile.
4Restartvmware_hostdtoseethechangetakeeffect.
Configuring SNMP Trap Destinations for ESX Server 3
VMwaretrapsaregeneratedtothedestinationsspecifiedintheconfigurationfile.
To configure traps
1Logintotheserviceconsoleastherootuser.
2Modifythe/etc/snmp/snmpd.conffile.
3Usingatexteditor,addthefollowingline,replacingmercury.solar.comwiththe
nameofthehostonyournetworkthatwillreceivetraps.
trapsink example.com
Repeatthislinetospecifymorethanonedestination.