You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the best way to install agent (add agent) to a newly created VM in the network?
Tried Orion.AgentManagement.Agent.Deploy but not fruitful. Is there any example somewhere?
Failed with:
_Traceback (most recent call last):
File "./add_agent.py", line 53, in
main()
File "./add_agent.py", line 46, in main
"10.201.16.11","7.7", "9","0")
File "/usr/lib/python2.7/site-packages/orionsdk/swisclient.py", line 31, in invoke
"Invoke/{}/{}".format(entity, verb), args).json()
File "/usr/lib/python2.7/site-packages/orionsdk/swisclient.py", line 63, in req
resp.raise_for_status()
File "/usr/lib/python2.7/site-packages/requests/models.py", line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Agent '"<AGENT_NAME>' must be assigned to existing polling engine for url: https://solarwindsEndpint:17778/SolarWinds/InformationService/v3/Json/Invoke/Orion.AgentManagement.Agent/Deploy
The text was updated successfully, but these errors were encountered:
In fact looking at your code it appears you are just trying to populate all the default fields of an agent row in the db. That is not the way the SWIS verbs work at all. They all have pre-defined arguments. You will have a MUCH easier time if you install the Orion SDK on a Windows box to learn to navigate the table relationships verbs, otherwise it is a lot of work to constantly be looking up the syntax for everything in the schema and from the swagger.
What is the best way to install agent (add agent) to a newly created VM in the network?
Tried Orion.AgentManagement.Agent.Deploy but not fruitful. Is there any example somewhere?
Method1:
Failed with:
Traceback (most recent call last):
File "./add_agent.py", line 52, in
main()
File "./add_agent.py", line 45, in main
response = swis.invoke('Orion.AgentManagement.Agent', 'Deploy', **props)
TypeError: invoke() got an unexpected keyword argument 'Name'
Method2:
Failed with:
_Traceback (most recent call last):
File "./add_agent.py", line 53, in
main()
File "./add_agent.py", line 46, in main
"10.201.16.11","7.7", "9","0")
File "/usr/lib/python2.7/site-packages/orionsdk/swisclient.py", line 31, in invoke
"Invoke/{}/{}".format(entity, verb), args).json()
File "/usr/lib/python2.7/site-packages/orionsdk/swisclient.py", line 63, in req
resp.raise_for_status()
File "/usr/lib/python2.7/site-packages/requests/models.py", line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Agent '"<AGENT_NAME>' must be assigned to existing polling engine for url: https://solarwindsEndpint:17778/SolarWinds/InformationService/v3/Json/Invoke/Orion.AgentManagement.Agent/Deploy
The text was updated successfully, but these errors were encountered: