The instructions for this app indicate that you should install the python eggs for the Cisco SDK using easy_install. However Splunk's python installation does include easy_install or other common Python installation utilities. Using a standalone python27 would mean that the collect.py script would be unable to leverage the Splunk python modules.
I've attempted two separate approaches to overcome this problem. I first tried installing a standalone python27 with easy install. I was able to extract the acicobra and acimodel eggs and copy them to Splunks python library, but I ran into issues with the script erroring on dependencies required by the script, (or perhaps by Splunk itself). I also tried installing easy_install using Splunk's python interpreter, but it failed, indicating that it was unable to bring down the dependencies. I'm stuck on both approaches. Has anyone encountered and overcome these issues?
Thank you
You mentioned you copied the egg directory into splunk python library.
You need to copy them (acicobra, acimodel, requests) into app's bin directory..
e.g /$SPLUNK_HOME/etc/apps/TA_cisco-ACI/bin/ where $SPLUNK_HOME is splunk installation directory (ie /opt/splunk).
( Note: remove previous .egg directories if they exists in the same location before copying)
After copying you can test by running below commands:
ACI Error: Did not receive a session key from splunkd. Please enable passAuth in inputs.conf for this script
It should solve import errors.
Can you also mention version of APIC you are using?
Thanks,
You mentioned you copied the egg directory into splunk python library.
You need to copy them (acicobra, acimodel, requests) into app's bin directory..
e.g /$SPLUNK_HOME/etc/apps/TA_cisco-ACI/bin/ where $SPLUNK_HOME is splunk installation directory (ie /opt/splunk).
( Note: remove previous .egg directories if they exists in the same location before copying)
After copying you can test by running below commands:
ACI Error: Did not receive a session key from splunkd. Please enable passAuth in inputs.conf for this script
It should solve import errors.
Can you also mention version of APIC you are using?
Thanks,
Thanks savithamr, that did it!
Because the Splunk python install does not include easy_install, I had to install a separate python27 with easy_install, extract the cobra eggs and copy them over to the TA's bin directory along with the request modules from Splunk's python library.
Note, our APIC host would not accept HTTPS connection so it was necessary for me to update the apicURL variable in the _connectACI definition in the collect.py script in order for it to connect. Before that I was seeing auth errors.
Thanks again!
Is the APIC certificates are already in safe certificate list