The attached Python script copies an existing Solarwinds node to one or more new nodes. The script copies the polling method (ICMP, SNMP, Agent) and custom properties from the source node. The script assigns the new node to the polling engine with the smallest load (as measured by the number of monitored nodes).
-S|--server (Optional, default = localhost): The FQDN or IP address of the Solarwinds server. If omitted, defaults to "localhost"
-s|--sourceNodeIP (Required): The IP address of the Solarwinds managed node you want to copy. I've specified that this must be an IP address because my users not infrequently create multiple nodes with the same caption but different IPs for load balancer nodes, cluster members, etc.
-t|--targetNodeName (Required, can specify 1 or more): The FQDN of the node(s) to create. The FQDN must be resolvable by the device where the Python script is running.
-w|--wait (Optional): The number of seconds to pause between creating the target node and populating its custom properties from the source node. If your installation needs time to perform actions when a new node is added, you may need to wait between creating the node and updating any properties on it.
--help (Optional): Print help/syntax info
TCP port 17778 open on your Solarwinds server
Copy the configuration of the managed server with IP address 10.10.10.100 to create new managed servers server1, server2, and server3
Copy the configuration of the managed server with IP address 10.10.10.100 to create new managed servers server1, but force the script to wait 60 seconds between creating server1 and populating its custom properties. If your installation needs time to perform actions when a new node is added, you may need to wait between creating the node and updating any properties on it.
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community.
More than 150,000 members are here to solve problems, share technology and best practices, and directly
contribute to our product development process.
Learn more today by joining now.