cancel
Showing results for 
Search instead for 
Did you mean: 
Create Post

Copy Application Monitors from one Solarwinds node to another (Python)

DESCRIPTION

The attached Python script copies application monitors from one Solarwinds node to one or more Solarwinds nodes. The script creates new application monitors on the target node(s). If the application monitors on the source node have overridden any template values, those overrides will be copied to the new application monitors.

SYNTAX

copy-solarwinds-apps.py [-S|--server solarwinds_server] -s|--sourceNodeIP source_node_IP -t|--targetNodeName target_node_FQDN [-t|--targetNodeName target_nodeN_FQDN]* [--help]

COMMAND LINE PARAMETERS

-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.

--help (Optional): Print help/syntax info

DEPENDENCIES

Python modules:

requests

socket

argparse

ipaddress

re

getpass

orionsdk

TCP port 17778 open on your Solarwinds server

EXAMPLES

Example 1

Copy the application monitors assigned to the managed server with IP address 10.10.10.100 to the managed servers server1, server2, and server3

python.exe copy-solarwinds-apps.py -S solarwinds.mycompany.com -s 10.10.10.100 -t server1.mycompany.com -t server2.mycompany.com -t server3.mycompany.com

Attachments
Version history
Revision #:
1 of 1
Last update:
‎08-14-2019 01:49 PM
Updated by: