This script will register a passive agent, then scan for resources, and automatically import the resources.
You'll need the following information for registering an agent (outlined within the script as well):
- Agent Name
- Agent Hostname
- Agent IP Address
- Agent Port
- Polling Engine ID
- Shared Secret
- Proxy ID
- Auto Update Enabled
Tested with SolarWinds Platform 2022.2.0 and agent 2022.2.0.1952. Currently only tested on a Windows agent as a target, but there's no reason it should not work for a Linux target.
Comments abound, but you are welcome to try it yourself.