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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...