solarwinds/orionsdk-python

Solarwinds Class File

oniram22 opened this issue · 6 comments

I'm about to submit a pull request for a solarwinds class file I've been working on. It basically let's you supply the IP, username and password for your SolarWinds NPM instance and then has an array of methods you can call to make updates to your system. However the real power of the class is that all of the method calls are done using nothing more than the human readable names that are used throughout the GUI. All of the ID's, URI's, and SQL calls are abstracted out and done behind the scenes. The thought process is that this creates a lower bar for entry into Solarwinds programmability. You are able to get started updating your system programmatically without having to have a detailed knowledge of the inner workings of Solarwinds. What I'm uploading is an initial draft based on some activities we're doing in house. The hope would be to grow the class file over time as additional needs surfaced form the community. Also, given the file is a python class file it's call init.py but should really be placed in a directory called 'solarwinds'. I wasn't sure how to make that happen within the github repository and the rights I have. Feel free to rearrange that.

This is so exciting! Tagging @tdanner about the repository details. We had to do something similar with the SwisClient to so it could be loaded via pip.

Yeah, you read my mind. We'd somehow have to make it a pip package that could be installed and imported. I haven't had to do that yet but if you need me to research how that works, just let me know. Thanks.

I merged the pull request, but then I noticed that this is in the samples folder. I'm thinking we should move this over to the orionsdk folder as solarwinds.py and import it in init.py like we're doing for the SwisClient class. The orionsdk namespace makes more sense. We could also put it in a SolarWinds namespace as suggested above, but I think a single namespace with two classes makes more sense.

v0.3.0 has now been released with the new SolarWinds class in the orionsdk namespace.