All Apps and Add-ons

Enable debugging on Splunk_TA_vmware

pasito
Explorer

Hi all,

I'm getting the following errors in the latest version of the TA (3.3.1). How can I debug this further to provide more information on which host/vm has missing inventory data?

[ta_vmware_collection_worker://zeta:21606] ObjectContent instance has no attribute 'propSet'
Traceback (most recent call last):
  File "/var/lib/splunk/etc/apps/Splunk_TA_vmware/bin/inventory_handlers.py", line 376, in run
    last_version, is_first_version_seen = self.send_inv_data(hierarchyCollector, last_version, session[0], "vmware:inv:vm", sourcename, tempus, dest_index, config, target_config_object)
  File "/var/lib/splunk/etc/apps/Splunk_TA_vmware/bin/inventory_handlers.py", line 132, in send_inv_data
    vm_dict['hypervisor_os_version'] = str(host_mo.getCurrentProperty("config.product.version"))
  File "/var/lib/splunk/etc/apps/Splunk_TA_vmware/bin/vim25/mo.py", line 66, in getCurrentProperty
    dynaProps = objContent.propSet
AttributeError: ObjectContent instance has no attribute 'propSet'


[ta_vmware_collection_worker://delta:21705] ObjectContent instance has no attribute 'propSet'
Traceback (most recent call last):
  File "/var/lib/splunk/etc/apps/Splunk_TA_vmware/bin/inventory_handlers.py", line 435, in run
    last_version, is_first_version_seen = self.send_inv_data(hierarchyCollector, last_version, session[0], "vmware:inv:hostsystem", sourcename, tempus, dest_index, config, target_config_object)
  File "/var/lib/splunk/etc/apps/Splunk_TA_vmware/bin/inventory_handlers.py", line 152, in send_inv_data
    vnic = host_mo.getCurrentProperty("config.network.vnic")
  File "/var/lib/splunk/etc/apps/Splunk_TA_vmware/bin/vim25/mo.py", line 66, in getCurrentProperty
    dynaProps = objContent.propSet
AttributeError: ObjectContent instance has no attribute 'propSet'
0 Karma

hardikJsheth
Motivator

You can enable this by changing logging level of the respective worker process in Splunk_TA_vmware/default/inputs.conf. Each worker process has log level defined as follows:

[ta_vmware_collection_worker://alpha]
capabilities = hostvmperf,otherperf,hierarchyinv,hostinv,vminv,clusterinv,datastoreinv,rpinv,task,event
log_level = INFO
disabled = 1
interval = 15
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...