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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...