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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...