0

I am trying to configure vCenter 7.0 to send SNMP traps to a VM.

I have followed following procedure:

a. Configurations on vCenter, using CLI

  1. Set engine ID : snmp.set --engineid 123456
  2. Set authentication : snmp.set --authentication SHA1
  3. Set privacy : snmp.set --privacy AES128
  4. Set auth and privacy hash : snmp.hash --auth_hash Abcdefgh --priv_hash Abcdefgh –raw_secret true
  5. Set user : snmp.set --user root/<auth_hash>/<privacy_hash>/priv
  6. Set SNMP target/receiver : snmp.set --v3targets 192.168.100.100@162/root/priv/trap
  7. enable SNMP : snmp.enable

b. configure SNMP v3 receiver on VM

  1. created a snmp config file : /tmp/snmptrapd.config
disableAuthorization no 
createUser -e 0x123456 root SHA Abcdefgh AES
authUser log,execute root
  1. run snmptrapd process : snmptrapd -nLf snmp_traps.log -C -c /tmp/snmptrapd.config

Once the above command is entered, snmptrapd starts monitoring for SNMP notifications, and there is no error in the logs.

But snmptrapd only captures and logs traps/inform which are generated by the snmp.test command entered on vCenter

UDP: [192.168.100.99]:36772->[192.168.100.100]:162 [UDP: [192.168.100.99]:36772->[192.168.100.100]:162]: DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (196478) 0:32:44.78 SNMPv2-MIB::snmpTrapOID.0 = OID: SNMPv2-MIB::warmStart SNMPv2-MIB::snmpTrapEnterprise.0 = OID: SNMPv2-SMI::enterprises.6876.4.6876

Even though the VM receives all other configured traps such as VM power off, etc, which TCPDUMP is able to capture but not snmptrapd

0 Answers0