All Apps and Add-ons

No error handling in te_asset.py

addproniklas
Engager

When we tried to run the script te_asset.py we expected an error where it said that no data was retrived from the "make" field.

When looking in to the XML from Tripwire we noticed that we hade some nodes that was setup with a SSH connection and the "make" field in the XML was empty. This caused the script to fail since there is no error handling in the script.

By altering the script with an try and except field the script ran without any issues.

You might want to update the script so it has a better error handling.

0 Karma

JimWachhaus
Path Finder

Could you share the corrected script so we can include it?

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.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 ...