Comments
-
I solved this for myself. I thought I would share the code I used: #!/usr/bin/env python2 from __future__ import print_function import re import requests from orionsdk import SwisClient import sys import argparse parser = argparse.ArgumentParser(description='Add a host to SolarWinds') parser.add_argument('ipaddress',…
-
HI, I am trying to do a similar thing: def update_props(hostid, prop, value): npm_server = REDACTED username = REDACTED password = REDACTED swis = SwisClient(npm_server, username, password) print("Custom Property Update Test:") results = swis.query( "SELECT Uri FROM Orion.Nodes WHERE NodeID=@id", id=1073) # set valid…