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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...