All Apps and Add-ons

splunk app for Bigfix

farooqw
New Member

I have installed splunk app for Bigfix from bigfix base, but when I run one of the python script manually to test for example python actions.py, i get the following errors:

Traceback (most recent call last):
File "actions.py", line 8, in
from bigfix import query_runner
File "/opt/splunk/etc/apps/bigfix/bin/../lib/bigfix/query_runner.py", line 26, in
from bigfix import web_reports_config
File "/opt/splunk/etc/apps/bigfix/bin/../lib/bigfix/web_reports_config.py", line 1, in
import splunk.clilib.cli_common
ImportError: No module named splunk.clilib.cli_common

0 Karma

p_gurav
Champion

Please run scripts using Splunk in-build python command as follows:

--- $SPLUK_HOME/bin/splunk cmd python $SPLUNK_HOME/etc/apps/bigfix/bin/<script_name>.py
0 Karma

farooqw
New Member

@p_gurav thanks for getting back, when I used that format, I get these errors

ERROR:root:Encountered Exception in GetRelevanceResult:
Traceback (most recent call last):
File "/opt/splunk/etc/apps/bigfix/bin/../lib/bigfix/soap/bfconnector.py", line 44, in run
self.results = self.client.service.GetRelevanceResult(expr.format(url=self.url, user=self.user), self.user, self.passwd)
File "/opt/splunk/etc/apps/bigfix/bin/../lib/suds/client.py", line 542, in call
return client.invoke(args, kwargs)
File "/opt/splunk/etc/apps/bigfix/bin/../lib/suds/client.py", line 602, in invoke
result = self.send(soapenv)
File "/opt/splunk/etc/apps/bigfix/bin/../lib/suds/client.py", line 637, in send
reply = transport.send(request)
File "/opt/splunk/etc/apps/bigfix/bin/../lib/suds/transport/https.py", line 70, in send
return HttpTransport.send(self, request)
File "/opt/splunk/etc/apps/bigfix/bin/../lib/suds/transport/http.py", line 83, in send
fp = self.u2open(u2request)
File "/opt/splunk/etc/apps/bigfix/bin/../lib/suds/transport/http.py", line 124, in u2open
return url.open(u2request, timeout=tm)
File "/opt/splunk/lib/python2.7/urllib2.py", line 429, in open
response = self._open(req, data)
File "/opt/splunk/lib/python2.7/urllib2.py", line 447, in _open
'_open', req)
File "/opt/splunk/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/opt/splunk/lib/python2.7/urllib2.py", line 1242, in https_open
context=self._context)
File "/opt/splunk/lib/python2.7/urllib2.py", line 1199, in do_open
raise URLError(err)
URLError:

0 Karma

rfjohns1
Observer

Where is BigFix Base located? I have not been able to find 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 ...