Specifications

VMware, Inc. 229
Chapter 7 Using SNMP with ESX Server
To use the VMware SNMP Daemon with Third Party Management Applications
1Install!your!third!party!management!application.!
Refer!to!your!management!application!documentation!and!the!ESX!Server!release!
notes!at!www.vmware.com/support/pubs/esx_pubs.html.
2Log!into!the!service!console!as!the!root!user.
3Type!the!following!to!run!the!script:
snmpsetup.sh connect
The!connect!option!configures!exporting!ESX!Server!MIB!items!through!your!
third!party!SNMP!daemon.!Use!this!option!to!enable!the!export !of!ESX!Server!MIB!
items!after!installing!the!third!party!management!application.!
The!script!connects!the!third!party!application!snmpd!daemon!with!the!
vmware-snmpd!subagent!daemon.
The!script!starts!
both!daemons.
Starting the SNMP Agents Automatically
You!can!set!the!master!and!subagent!SNMP!daemons!to!start!whenever!ESX!Server!
boots!by!logging!in!as!the!root!user!in!the!service!console!and!running!the!chkconfig!
commands:
chkconfig snmpd on
chkconfig vmware-snmpd on
The!first!command!enables!starting!the!master!SNMP!daemon!(either!the!default!
SNMP!daemon!shipped!with!ESX!Server!or!your!third!party!management!application!
SNMP!daemon)!on!startup.
The!second!command!enables!starting!the!subagent!vmware-snmpd!daemon!on!startup.
Starting the SNMP Agents Manually
To!start!the!SNMP!agents!manually,!log!in!as!root!in!the!service!console!and!run!the!
following!commands:
/etc/rc.d/init.d/snmpd start
/etc/rc.d/init.d/vmware-snmpd start
The!first!command!starts!the!master!SNMP!daemon!(either!the!default!SNMP!daemon!
shipped!with!ESX!Server!or!your!third!party!management!application!SNMP!daemon).
NOTE The!master!snmpd!daemon!can!run!by!itself!or!together!with!the!subagent!
vmware-snmpd!daemon.!However,!the!subagent!daemon!cannot!run!alone.