I want to install swiagent through python code. So anyone can provide me the solution.
So please suggest the api to call the swiagent installation script through python.
Thanks in advance
I want to install swiagent through python code. So anyone can provide me the solution.
So please suggest the api to call the swiagent installation script through python.
Thanks in advance
We have a sample for doing this from PowerShell: https://github.com/solarwinds/OrionSDK/blob/master/Samples/PowerShell/DeployAgentViaVerb.ps1
We don't have a Python version of that sample, but here's a Python sample for calling a different verb: https://github.com/solarwinds/orionsdk-python/blob/master/samples/add_alert_note.py
I am adding host to solarwinds through python code. It added successfully, but while adding host, I want to install solarwind agent on that host through python code.
as you have provided the example for adding alert to host...do you have similar kind of python code for installing swiagent on that node.?
I am trying to deploy swiagent through rest api.....
I am using the following api in my python code as --->
Result = swis.invoke("Orion.AgentManagement", "DeployToNode", nodeid)
It gives error like ---->Unable to cast object of type 'System.DBNull' to type 'System.String'....
So please provide me the solution
Thanks in advance.
You may be hitting this bug: https://github.com/solarwinds/OrionSDK/issues/92 . If you can post your code for adding the node, it will be more clear.
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 195,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process.