From 172afe2334dc4331f22c4cf5d4f6ecfdd8bbfb69 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 28 Oct 2015 14:48:56 +0000 Subject: [PATCH 1/2] Moving PowerOrion documentation to Wiki --- Samples/PowerShell/PowerOrion/ChangeLog.txt | 24 --------------- .../PowerOrion/Documentation/Install.txt | 29 ------------------ .../PowerOrion/Documentation/PowerOrion.docx | Bin 19379 -> 0 bytes .../PowerOrion/Install-PowerOrion.ps1 | 27 ---------------- Samples/PowerShell/PowerOrion/PowerOrion.psm1 | 2 +- Samples/PowerShell/PowerOrion/todo.txt | 2 -- 6 files changed, 1 insertion(+), 83 deletions(-) delete mode 100644 Samples/PowerShell/PowerOrion/ChangeLog.txt delete mode 100644 Samples/PowerShell/PowerOrion/Documentation/Install.txt delete mode 100644 Samples/PowerShell/PowerOrion/Documentation/PowerOrion.docx delete mode 100644 Samples/PowerShell/PowerOrion/Install-PowerOrion.ps1 delete mode 100644 Samples/PowerShell/PowerOrion/todo.txt diff --git a/Samples/PowerShell/PowerOrion/ChangeLog.txt b/Samples/PowerShell/PowerOrion/ChangeLog.txt deleted file mode 100644 index a67bfa720..000000000 --- a/Samples/PowerShell/PowerOrion/ChangeLog.txt +++ /dev/null @@ -1,24 +0,0 @@ -Version 0.0.4 -26 March 2014 -Add WMI functionality to New-OrionNode -Added Get-OrionWMICredential -Added module unload cleanup code, to prevent random PSSnapin errors after reload -Fixed issue with Module Manifest not loading correctly -Added Install-PowerOrion.ps1 script -Added Module Installation Help to codeplex - -Version 0.0.3 -15 March 2014 -Renamed Get-OrionNodeProperties to Get-OrionNode. This function now returns an object containing all node properties -Added Test-IsValidIP, Get-IPAddressFromHostName and Get-TimeStamp helper functions -Added -WhatIf to Add-OrionNode and Remove-OrionNode functions -Add-OrionDiscoveredInterfaces function, to add interfaces that have been discovered on Orion Nodes -General re-working of functions to standardise on parameter names, and improved error handling - -Version 0.0.2 -8 March 2014 -Updated to use Module Manifest - -Version 0.0.1 -8 March 2014 -First commit, including Add-NewOrionNode, Remove-OrionNode and Get-OrionNodeProperties \ No newline at end of file diff --git a/Samples/PowerShell/PowerOrion/Documentation/Install.txt b/Samples/PowerShell/PowerOrion/Documentation/Install.txt deleted file mode 100644 index 0ada5960c..000000000 --- a/Samples/PowerShell/PowerOrion/Documentation/Install.txt +++ /dev/null @@ -1,29 +0,0 @@ -Installing the Module - -The simplest way to install the module is to create a "PowerOrion" directory in either one of these module folders, one for the system and one for the current user. - -System: $pshome\Modules - (%windir%\System32\WindowsPowerShell\v1.0\Modules) - -Current user: $home\Documents\WindowsPowerShell\Modules - (%UserProfile%\Documents\WindowsPowerShell\Modules) - - - or - - - $home\My Documents\WindowsPowerShell\Modules - (%UserProfile%\My Documents\WindowsPowerShell\Modules) - -Then, in to this folder copy in the PowerOrion.psm1 and PowerOrion.psd1 files. - -Finally, to load the module run - - Import-Module PowerOrion - -To see a list of all commands: - Get-Command -Module PowerOrion - -There is also a script available (Install-PowerOrion.ps1), that when run without arguments (from the same folder as the .psm1 & .psd1 files), will create the PowerOrion (and Modules directory if required), and copy in the relevant files. - -For more information on installing and using modules see - - Get-Help About_Modules \ No newline at end of file diff --git a/Samples/PowerShell/PowerOrion/Documentation/PowerOrion.docx b/Samples/PowerShell/PowerOrion/Documentation/PowerOrion.docx deleted file mode 100644 index 6b3e2b7f1dcf69613ba0ff39185acde8e33ae437..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 19379 zcmeHvWq4evom+@?Dy>d z-S%_3eN^Wy)sa*xl~j_f1Q<9v01^NV002k;dn8a=wjcn&90UM>27m_D_-teCXk_iE zqv&R9=B?|9_wV#U)S^J8a&~h%9s$@cMP4ZeF~JIjBv2SmNvIg;*#ZI zAVUn3l;z7ii%fD0XhYVPc09>hM1eqaG;!vziB?(Mdw5p304LoFd9`x29u*yh{(FXE zKb~86nOF_9&K_<`Bxd{;{@z_0<1<=rYths~vD?M#yn<-awCjUZLPb|uJ(;dlh3M*F zrzS@INZK`KjD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l?|J=J+t!-&lxXs62UpvX zbN|-uMv+&8IZ@f_?b!b9#-W<|Vo>pKY3{?{EQrd0cW9q9Cj`ePPlAdF>{3j&4Q(AG zHE4Y9nkXE3wr0In-|vyxN%UXyDwVzc<4m2AlU8j-~ZO3oYD$6%2E|;o*)ekd;WHsxO7zN?2|k zP>v+C`q}zSTM(rriCuFLCiEjVgrt0&ePePa!&q1f32Zn8GetnOVtpp3E;}?62VLNQxWEOr&kvPdN!~7az%s_Vx*z9(t9R#Ip@^}Wf&J)UTrqi6# z@HSx~Bb*<{U$f(MC!1cfj3KCL%-M`p2#)L$pk#rU+ z3mese1uYnF=jwX+YssK{_-S+bxl$4D-*1W2NX0{R1WAG-f1Y~(l1V5*s=Ik5OsBN5 zNf9+v0i8dan+Tl$$K0SS2086^K|+$9r_22?5y*z?t#{mwgVHkJB3z3q_!ttck=))l zCwN6k#cOmAOG#7RlUeQcJyKA&XiLuP-j59g#6bLl%B2a{|%skM*8OU`VS7wY0xng{PJIo+r48~Tz}S0dAfV%W~7UXFSpj^bLs{!E>NUM ziz{a;mCZWW8_LZ52-8sR0k4DHqN86xA#08~TMKcrCHy>z4HsQuH+cK*0b)r3nkj0Ox_Ipi&PX}Uh zdPfN4v1^wZ#`4Y6usjvn_Arup8nG(%MAS_F`UqU%_B5_YJ+lEHhlYpms07c z2q+=61W3LFGR75)EChWI4j;D3kzeL3t;I6AQE|7mgT?;QTV7W5|vHO4;# z_^*|rzk~nXTm2IX09GRV*H736ZjqfZv&3M n+b&njl_fo diff --git a/Samples/PowerShell/PowerOrion/Install-PowerOrion.ps1 b/Samples/PowerShell/PowerOrion/Install-PowerOrion.ps1 deleted file mode 100644 index 50ed7a637..000000000 --- a/Samples/PowerShell/PowerOrion/Install-PowerOrion.ps1 +++ /dev/null @@ -1,27 +0,0 @@ -<# -.Synopsis - Install PowerOrion module -.DESCRIPTION - Installs PowerOrion module, defaults to the User Module Path -.EXAMPLE - Example of how to use this cmdlet -.EXAMPLE - C:\windows\system32\WindowsPowerShell\v1.0\Modules\ -#> - - -[CmdletBinding()] -[Parameter(Mandatory=$true, - ValueFromPipelineByPropertyName=$true, - Position=0)] -$Path = "$env:userProfile\documents\WindowsPowerShell\Modules\PowerOrion" - -Write-Verbose "Installing PowerOrion to $Path" -$files = "PowerOrion.psm1","PowerOrion.psd1" - -if(-not (Test-Path -Path $Path )){ - Write-Verbose "$Path does not exist, so creating it" - New-Item -type Directory -Path $Path -} - -$files | foreach { Copy-Item -Path $_ -Destination $Path -Force -Verbose} \ No newline at end of file diff --git a/Samples/PowerShell/PowerOrion/PowerOrion.psm1 b/Samples/PowerShell/PowerOrion/PowerOrion.psm1 index 9810ef652..9b6ad86a3 100644 --- a/Samples/PowerShell/PowerOrion/PowerOrion.psm1 +++ b/Samples/PowerShell/PowerOrion/PowerOrion.psm1 @@ -796,7 +796,7 @@ function Remove-OrionNode <# .Synopsis - Gets credentials used by Orion + Gets ALL credentials used by Orion .DESCRIPTION Gets all credentials used by Orion to monitor nodes and applications. These are returned as an object, so standard Cmdlets such as Where-Object & Select-Object can be used to filter the data .EXAMPLE diff --git a/Samples/PowerShell/PowerOrion/todo.txt b/Samples/PowerShell/PowerOrion/todo.txt deleted file mode 100644 index 6987fe8e3..000000000 --- a/Samples/PowerShell/PowerOrion/todo.txt +++ /dev/null @@ -1,2 +0,0 @@ -Add install documentation -change custom properties \ No newline at end of file From 1f0e351734e53296de54ad63103e4d7ef15f4659 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 30 Oct 2015 15:31:09 +0000 Subject: [PATCH 2/2] Changed Get-OrionNode & Remove-OrionNode to build out Orion Server Name from the SWIS connection instead of explicitly passing it --- Samples/PowerShell/PowerOrion/PowerOrion.psd1 | Bin 5268 -> 5304 bytes Samples/PowerShell/PowerOrion/PowerOrion.psm1 | 15 +++++--- .../PowerShell/PowerOrion/Test-PowerOrion.ps1 | 34 ------------------ 3 files changed, 10 insertions(+), 39 deletions(-) delete mode 100644 Samples/PowerShell/PowerOrion/Test-PowerOrion.ps1 diff --git a/Samples/PowerShell/PowerOrion/PowerOrion.psd1 b/Samples/PowerShell/PowerOrion/PowerOrion.psd1 index ab6ea56e223fb742cd555f7a9dbdac97cb780e83..04663dddc786bc2e2b5ed38abcaab31de72dc8a1 100644 GIT binary patch delta 121 zcmbQDxkGb<0~4d^W=E#!jKaYT`3yM>i3~*y;S8A!c?>BG#gm^h7yCK`#S0iJf#R7A y=?obRB@7A-D}fk`dZ1`HP<0W|oD_y~p!yVsR0bWOs1Fc2Gw3lWY;I@a6#xL!BN_4l delta 58 zcmdm?IYo1W0~4dkW=E#!jJ%-?c?{V=oX=3skT>}?b1}aLLo$OVg93vQg8_pfgUQ53 Mc}Bg>t66vj0K1kA&Hw-a diff --git a/Samples/PowerShell/PowerOrion/PowerOrion.psm1 b/Samples/PowerShell/PowerOrion/PowerOrion.psm1 index 9b6ad86a3..a335c28db 100644 --- a/Samples/PowerShell/PowerOrion/PowerOrion.psm1 +++ b/Samples/PowerShell/PowerOrion/PowerOrion.psm1 @@ -483,10 +483,10 @@ function New-OrionPollerType If passed the -custom switch it can return .EXAMPLE - PS C:\Scripts\Modules\Orion> Get-OrionNodeProperties -NodeID $nodeid -SwisConnection $swis -OrionServer $OrionServer + PS C:\Scripts\Modules\Orion> Get-OrionNodeProperties -NodeID $nodeid -SwisConnection $swis .EXAMPLE - PS C:\Scripts\Modules\Orion> Get-OrionNodeProperties -NodeID $nodeid -SwisConnection $swis -OrionServer $OrionServer -custom + PS C:\Scripts\Modules\Orion> Get-OrionNodeProperties -NodeID $nodeid -SwisConnection $swis -custom Key Value --- ----- @@ -519,11 +519,11 @@ function Get-OrionNode Parametersetname="IP")] [String]$IPAddress, - #Orion Server Name + <# #Orion Server Name [parameter(mandatory=$true)] [validatenotnullorempty()] [string] - $OrionServer="localhost", + $OrionServer="localhost", #> #SolarWinds Information Service (SWIS) Connection [parameter(mandatory=$true)] @@ -539,6 +539,8 @@ function Get-OrionNode Begin { + $OrionServer = $SwisConnection.ChannelFactory.Endpoint.Address.Uri.Host + if($IPAddress){ write-debug "$(Get-TimeStamp) The value of "IPAddress" is $IPAddress" write-verbose "$(Get-TimeStamp) IP passed, calling Get-OrionNodeID for $IPAddress" @@ -749,12 +751,13 @@ function Remove-OrionNode [Alias("IP")] [String]$IPAddress, + <# #Orion Server Name [parameter(mandatory=$true)] [validatenotnullorempty()] [string] $OrionServer, - + #> #SolarWinds Information Service (SWIS) Connection [parameter(mandatory=$true)] [validatenotnullorempty()] @@ -764,6 +767,8 @@ function Remove-OrionNode Begin { + $OrionServer = $SwisConnection.ChannelFactory.Endpoint.Address.Uri.Host + write-verbose "$(Get-TimeStamp) Calling Remove-OrionNode..." #First get the node ID, either implicitly, or explicitly if ($NodeName){ diff --git a/Samples/PowerShell/PowerOrion/Test-PowerOrion.ps1 b/Samples/PowerShell/PowerOrion/Test-PowerOrion.ps1 deleted file mode 100644 index 4069e7601..000000000 --- a/Samples/PowerShell/PowerOrion/Test-PowerOrion.ps1 +++ /dev/null @@ -1,34 +0,0 @@ -#Module Name -$modulename = "PowerOrion" -#Display -Verbose by default -#$VerbosePreference ="continue" -$VerbosePreference ="silentlycontinue" - -$TestNode="10.160.5.58" - -$OrionServer ="10.160.5.75" - -cls - -#perform a clean load of the module -if(Get-Module -Name $modulename){ - Remove-Module -Name PowerOrion -Force -} -Import-Module .\PowerOrion.psm1 - -$swis = Connect-Swis -UserName admin -Password "" -Hostname 10.160.5.75 -$cred = get-OrionWMICredential -SwisConnection $swis | where-Object {$_.Name -like "Local Admin 2"} - Get-OrionWMICredential -SwisConnection $swis - -Get-OrionNodeID -all -SwisConnection $swis - Get-OrionNode -NodeID 3 -SwisConnection $swis -OrionServer $OrionServer -Verbose - - -New-OrionNode -SwisConnection $swis -IPAddress $TestNode -ObjectSubType SNMPv2 -Remove-OrionNode 92 -OrionServer $OrionServer -SwisConnection $swis -Verbose - -$nodes | select nodeid | Get-orionNode -SwisConnection $swis -OrionServer $OrionServer - -New-OrionNode -SwisConnection $swis -ObjectSubType WMI -IPAddress $TestNode -CredentialID $cred.id -Verbose - -New-OrionNode -SwisConnection $swis -ObjectSubType \ No newline at end of file