Specifications
VMware, Inc. 97
Chapter 5 System Configuration
4Addthefollowingline,replacingpublicwithacommunitynameofyourchoice:
trapcommunity public.
Onlyoneinstanceofthislineisallowed.
5 Saveyourchanges.
Using SNMP with ESX Server 3i
ESXServer3ishipswithanSNMPmanagementagentdifferentfromthatwhichruns
intheserviceconsoleofESXServer3.Currently,this SNMPagentsupportsonlySNMP
traps,notGETS.Thisagentisoffbydefault.Tousethisagent,youmustenablethe
SNMPservice,specifyatleast
onecommunity,andconfigureatrapdestinationusing
theremotecommand‐linecommandvicfg-snmp.
Table 5‐10liststhecommandoptionsandsyntaxforthevicfg-snmpcommand.You
musttargetthevicfg-snmpcommanddirectlytotheESXServer3ihost.Youcannot
usethiscommandwithaVirtualCenterServer.Formore
informationoninstallingand
usingtheremotecommand‐lineinterface,seetheESXServer3iConfigurationGuide.
Table 5-10. vicfg-snmp Command Options
Option Description
--communities <comm1>[, ...]
-c <comm1>[, ...]
Specifiescommunitiesseparatedbycommas.Thesettings
specifiedusingthisflagoverwriteanyprevioussettings.
--disable
-D
StopstheSNMPservice.
--enable
-E
StartstheSNMPservice.
--port <port-number>
-p <port-number>
SetstheportusedbytheSNMPagent.Thedefaultisudp/162.
--reset
-r
Clearsallpreviouslyspecifiedcommunitiesandtargets.
--show
-s
DisplaysthecurrentSNMP
configuration.
--targets <hostname[@port]>
</community>[, ...]
-t <hostname[@port]>
</community>[, ...]
Setsthedestinationfor(notifications)traps.Thesettings
specifiedusingthisflagoverwriteanyprevioussettings.
--test
-T
SendsatestnotificationthatcanbeusedtovalidatetheSNMP
configuration.