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

Episode #86 - Orion SDK 101: Intro to PowerShell and Orion API

Community Manager

April 15, 2020

In this 100-level class, Kevin M. Sparenberg, Technical Content Manager for THWACK®, presents a simple introduction to the SolarWinds® Orion® Software Development Kit (SDK). Instructions include how to download the SDK, installing the PowerShell module, and performing basic read operations within the API. No previous PowerShell or Orion API experience is necessary. Kevin discusses when, how, and why to use the API. Be sure to register for the live cast because Kevin will be answering audience questions during the episode.


Additional Resources

PowerShell Basic Cheat Sheet:
http://ramblingcookiemonster.github.io/images/Cheat-Sheets/powershell-basic-cheat-sheet2.pdf

The Curious Case of the "Dead" Nodes
https://thwack.solarwinds.com/t5/Product-Blog/The-Curious-Case-of-the-quot-Dead-quot-Nodes/ba-p/4512...

6 Comments
Level 12

I missed this.

Bookmarking to comeback and listen to when more time allows as I absolutely need to get into this.

Community Manager
Community Manager

As long as you don't judge my loud typing, we'll call it even.

Level 12

Clacky keyboards are the best.

So, I'm running with the native Powershell ISE as we don't really want to install anything more. But we do have the SDK installed, so it has made the connection to SWIS.

So, in trying to understand better, I have just been trying to replicate your example but everytime I try to run the script (within PS) I get:

At line:18 char:1
+ FROM Orion.Nodes
+ ~~~~
The 'from' keyword is not supported in this version of the language.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : ReservedKeywordNotAllowed

 

So presumably I'm missing something?

So I next tried (because I don't think you addressed this for Powershell in the vid) Preempting the query with $SwqlQuery = " insert query " and I get yet more errors.

Clearly I'm missing a step and perhaps I'd be better asking thos over in the OrionSDK forum...

 

Community Manager
Community Manager

Do me a favor and post your complete script in the Orion SDK area with whatever you have for edits.

Level 20

Nice big Microphone you've got there Kevin!

Level 12

Great SolarWinds Lab Kevin.

About the Author
Kevin's first computer was the family TI-99/4A. He's learned computing the best way possible: by fixing his own broken machines. He was a SolarWinds customer for nearly 10 years before joining the company. He's worked the range of IT jobs: from the 3-person consultancy to the international law firm. Along the way, he's become a SolarWinds advocate and evangelist of monitoring glory. His passions include shooting archery, blacksmithing, playing D&D, and helping IT professionals leave at a reasonable time each and every day.