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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...