Skip to content

Commit

Permalink
Merge pull request #13 from solarwinds/PowerOrion
Browse files Browse the repository at this point in the history
Power orion
  • Loading branch information
micheal100 committed Oct 30, 2015
2 parents 140b9b6 + 1f0e351 commit ca9da3f
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 122 deletions.
24 changes: 0 additions & 24 deletions Samples/PowerShell/PowerOrion/ChangeLog.txt

This file was deleted.

29 changes: 0 additions & 29 deletions Samples/PowerShell/PowerOrion/Documentation/Install.txt

This file was deleted.

Binary file not shown.
27 changes: 0 additions & 27 deletions Samples/PowerShell/PowerOrion/Install-PowerOrion.ps1

This file was deleted.

Binary file modified Samples/PowerShell/PowerOrion/PowerOrion.psd1
Binary file not shown.
17 changes: 11 additions & 6 deletions Samples/PowerShell/PowerOrion/PowerOrion.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -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
--- -----
Expand Down Expand Up @@ -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)]
Expand All @@ -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"
Expand Down Expand Up @@ -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()]
Expand All @@ -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){
Expand Down Expand Up @@ -796,7 +801,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
Expand Down
34 changes: 0 additions & 34 deletions Samples/PowerShell/PowerOrion/Test-PowerOrion.ps1

This file was deleted.

2 changes: 0 additions & 2 deletions Samples/PowerShell/PowerOrion/todo.txt

This file was deleted.

0 comments on commit ca9da3f

Please sign in to comment.