How to upgrade Python and install required libraries from HP SA (Server Automation)?
I have an HP SA (Server Automation) agent installed on couple of servers.
The default Python version during installation is 2.7.
How can I upgrade Python and also install Python libraries (considering there is no internet connectivity on the target server) from HP SA Client into the target server?
This is the OO forum, the SA forum is here: https://community.softwaregrp.com/t5/Data-Center-Automation/ct-p/DCA
I'm having trouble parsing your question, two different answers:
1) Don't use the agent python for anything other than the SA agent functionality. It's at 2.7 and will be until at least the end of this year when 3.0 support is available.
2) Package whatever python you want to install on the system VIA the HPSA agent, as either a software policy or a zip file install package, and then use SA to push that package to the remote systems using the SA agent tunnels.
So if I have a separate Python installation on the server apart from agent's version of Python, can I execute Python scripts on that Python version (not the agent one) with SA?
Ahhh, now I see the question better.
It's all about context. If you are loading a python script into SA and then executing that, it will use the SA agent python to execute it.
If you push the script down to the server via SA and then execute it using a wrapper / some other means, it will use the system python (not the SA python).