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!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...