Pardon my density (destiny?), the Wiki mentions PowerOrion, but I cannot seem to find the files PowerOrion.psm1 and PowerOrion.psd1 files on GitHub. Where can I download them?
There is a "releases" link in the middle of the bar area that is above the green button labeled "Clone or download"
It is part of the sources on github located here
Thanks, that was sorta more helpful.
Being a GitN00b, I could find no way to download them. Right clicking the link, and doing a save as saves the HTML, which produces colorful red errors like:
PS C:\Windows\System32\WindowsPowerShell\v1.0\Modules> Import-Module .\PowerOrion.psd1
Import-Module : The module manifest 'C:\Windows\System32\WindowsPowerShell\v1.0\Modules\PowerOrion.psd1'
could not be processed because it is not a valid Windows PowerShell restricted language file. Remove the elements that are not permitted by the restricted language:
So I had to screen scrape it.
Is there a better way?
It would be nice if they were distributed with the rest of the SDK, or if the Wiki would mention how it's done by the Big Guys.
You install the OrionSDK and go to the Samples/Powershell directory
You can download the sdk by from the OrionSDK releases page
Nope. Not there. Maybe it used to be on earlier versions?
It's interesting that if I browse to
GitHub - solarwinds/OrionSDK: SDK for the SolarWinds Orion platform, including tools, documentation, and samples in Powe…
there's no link to:
Releases · solarwinds/OrionSDK · GitHub
Is it my GitN00biness? Is everyone supposed to know to tag on /Releases to the main URL?
=seymour=
Hi folks,
sorry, I missed this. Simply create a PowerOrion folder in one of your profile paths, and then do an "import-module PowerOrion", that's all that should be required.
PowerOrion A Module for PowerShell · solarwinds/OrionSDK Wiki · GitHub
But making it easier to deploy/install is definitely something I'm looking at!
How is the PowerOrion module doing ? Still worth investigating ?
Nick -
I'm having a jolly good time scripting. It was just a matter of the right link and button for the download plus my n00bility.
I do think a wiki sentence or two could prevent my feelings of shame and inadequacy. But I've hired a therapist.
I added a couple of sentences to PowerOrion A Module for PowerShell · solarwinds/OrionSDK Wiki · GitHub about how to get the files. Hopefully that will give the next user a slightly smoother experience getting started.
tdanner -
Instead of saying:
"You can get the PowerOrion files by cloning the SDK repo (<span>git clone </span><a class="jive-link-external-small" href="https://github.com/solarwinds/OrionSDK.git" rel="nofollow">https://github.com/solarwinds/OrionSDK.git</a>)."
<span>git clone </span><a class="jive-link-external-small" href="https://github.com/solarwinds/OrionSDK.git" rel="nofollow">https://github.com/solarwinds/OrionSDK.git</a>
I think it's better to say:
"You can get the PowerOrion files by surfing to https://github.com/solarwinds/OrionSDK.git. Click the green button labeled "Clone or download", and then the Blue Download ZIP button.
Extract the ZIP files to a temporary directory."
Then, further down in the wiki, change the following:
"Then, in to this folder copy in the PowerOrion.psm1 and PowerOrion.psd1 files."
to
"Then copy the files from the OrionSDK-master\Samples\PowerShell directory that you unpacked from the ZIP to the PowerOrion" directory that you created above."
i.e. don't assume we know about GIT commands or GIT Desktop in order to clone - help the blind find the Clone button. Also recapitulate the names of things for clarity instead of using "this folder", which is sorta ambiguous.
=Foonly=
Good suggestion - updated.