Regarding vCenter Server's built in SNMP Agent Test & periodic trap (Enterprise 6876, trap number 202 or vpxdDiagnostic):
This feature is not presently configurable by the GUI or by the VIM API. The GUI only provides a means to configure targets.
The VIM API provides a trap on demand method, shares the same SnmpSystem managed entity as does ESXi.
One must first first obtain the HostConfigManager, then the HostSnmpSystem property and
call the method SendTestNotification() which will generate the vpxdDiagnostic to each configured target.
To generate repeated vpxdDiagnostics, there is no VIM API or CLI/GUI support for this.
It requires an operator to modify vpxd's config file, add the following:
Edit the vpxd config file (vpxd.cfg) and restart vpxd to setup recurrent test traps.
If no period element is defined then it default to 5 minutes (300 seconds).
<config>
...
<snmp>
<testTrap>
<periodic>
<enable>true</enable>
<period>300</period>
</periodic>
</testTrap>
</snmp>
...
</config>
Location of vpxd.cfg file by platform:
VCVA: /etc/vmware-vpx/vpxd.cfg
Windows 2008: C:\ProgramData\VMware\VMware VirtualCenter\vpxd.cfg
Windows 2003: C:\Documents and Settings\All Users\Application Data\VMware\VMware VirtualCenter\vpxd.cfg
I verified this feature works in version 5.1/VCVA, here's the periodic test notification as a SNMPv1
trap over UDP/IPv4.
edit vpxd.conf above, set the timeout to 60 seconds, verify receipt and interval:
1) coldStart trap indicates app/agent has booted up
2012-10-22 13:36:29 localhost.localdomain [127.0.0.1] (via UDP: [10.20.103.167]:57831) TRAP, SNMP v1, community witriew-vcva-prom-eng-vmware-com
VMWARE-PRODUCTS-MIB::vmwVC Cold Start Trap (202) Uptime: 95 days, 21:49:26.42
2) first test notification
2012-10-22 13:36:29 localhost.localdomain [127.0.0.1] (via UDP: [10.20.103.167]:57831) TRAP, SNMP v1, community witriew-vcva-prom-eng-vmware-com
VMWARE-PRODUCTS-MIB::vmwVC Cold Start Trap (202) Uptime: 95 days, 21:49:26.42
3) second test notification
2012-10-22 13:37:29 localhost.localdomain [127.0.0.1] (via UDP: [10.20.103.167]:39074) TRAP, SNMP v1, community witriew-vcva-prom-eng-vmware-com
VMWARE-PRODUCTS-MIB::vmwVC Enterprise Specific Trap (VMWARE-VC-EVENT-MIB::vpxdDiagnostic) Uptime: 95 days, 21:50:26.43
....
Even on an unloaded vcenter server/network there was noticable jitter.
I would recommend using a "dead timer" of 4 times the period ("hello") duration for single hop ethernet LAN.