Quantcast
Channel: THWACK: Popular Discussions - Orion SDK
Viewing all 3719 articles
Browse latest View live

SWIS discover Interface Error

$
0
0

Hi,

We're getting an error when we discover interface with swis.

 

I got this error message, "Exception of type 'SolarWinds.ApiProxyFactory.TransientApiProxyException' was thrown."

 

 

Why got this message?

 

Platform version:

Orion Platform 2017.1, IPAM 4.3.2, NPM 12.1, VIM 7.0.0, NetPath 1.1.0, QoE 2.3, NTA 4.2.2

 

2017-05-23_12-27-58.png


Can devices be added to Solarwinds via Ansible? Is there an ansible module available for this

$
0
0

Hi folks,

I've been tasked with adding a couple thousand network devices to SW. Is there an ansible playbook / module that does that? I didn't find any in the Orion github space. Any help would be greatly appreciated.

 

-JC

Orion SDK 2.5 Released

$
0
0

Orion SDK 2.5 has been released.  This release contains new features and upgrades:

 

  • Added a Find/Replace dialog to SWQL Studio
  • Install SwisPowerShell module from OrionSDK.msi
  • New UI for CRUD tab
  • SWQL Studio updated to .NET Framework 4.5

 

And bugfixes:

 

  • Fixed issue in SWQL studio with disappearing subscriptions
  • Fixed a CRUD UI bug
  • Fixed a few other minor bugs

 

You can download the installer from GitHub: Release v2.5.0.214 · solarwinds/OrionSDK · GitHub

 

You can also install it using Chocolatey (Chocolatey Gallery | SolarWinds Orion SDK 2.5.0.214) using "choco install orionsdk" (or "choco upgrade orionsdk" if you used Chocolatey to install a previous version).

 

The SwisPowerShell package has also been updated on the PowerShell Gallery: PowerShell Gallery | SwisPowerShell 2.5.0.214

 

These tools are compatible with all of the same SolarWinds products that the previous release was, so you should have no fear of upgrading. On the other side, Orion SDK 2.4, 2.3, and several previous releases are compatible with the latest 2019 SolarWinds products, so don't feel like you need to upgrade the Orion SDK just for compatibility.

 

As always, you can ask your Orion SDK questions in this forum. If you see a bug in the SDK tools, feel free to open an issue on the GitHub project: Issues · solarwinds/OrionSDK · GitHub

SWIS discover Interface Error

$
0
0

Hi,

We're getting an error when we discover interface with swis.

 

I got this error message, "Exception of type 'SolarWinds.ApiProxyFactory.TransientApiProxyException' was thrown."

 

 

Why got this message?

 

Platform version:

Orion Platform 2017.1, IPAM 4.3.2, NPM 12.1, VIM 7.0.0, NetPath 1.1.0, QoE 2.3, NTA 4.2.2

 

2017-05-23_12-27-58.png

No snap-ins have been registered for Windows PS v. 5.0

$
0
0

Hi Thwack,

 

As I was trying to unmanage whole groups at a time I stumbled upon OrionSDK and with that, PowerOrion.

I have installed OrionSDK and copied the PowerOrion directory to C:\Windows\System32\WindowsPowerShell\v1.0\Modules\.

Whenever I try to either Import-Module PowerOrion or Add-PSSnapin SwisSnapin I get this:

 

PS C:\Company> Add-PSSnapin SwisSnapin 

Add-PSSnapin : No snap-ins have been registered for Windows PowerShell version 5.

At line:1 char:1

+ Add-PSSnapin SwisSnapin

+ ~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidArgument: (SwisSnapin:String) [Add-PSSnapin], PSArgumentException

    + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand

 

 

 

PS C:\Company> Import-Module PowerOrion

Add-PSSnapin : No snap-ins have been registered for Windows PowerShell version 5.

At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\PowerOrion\PowerOrion.psm1:5 char:1

+ Add-PSSnapin SwisSnapin

+ ~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidArgument: (SwisSnapin:String) [Add-PSSnapin], PSArgumentException

    + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand

 

I've tried running the following without success: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\InstallUtil.exe 'C:\Program Files (x86)\SolarWinds\Orion SDK\SWQL Studio\SwisPowerShell.dll'

 

Any help is greatly appreciated.

 

Glad Regards,

Frederik Bruun

Add/Update Orion node with Powershell Rest API using Json data type

$
0
0

Hello,

 

I would like to add/update the Orion node with PowerShell Rest API using Json data type.  I want to know if any one has any sample code that I can look at.

 

Thank you in advance.

 

CluM09

Error Updating Properties and Custom Properties of Nodes

$
0
0

Greetings,

 

 

I am currently trying to automate the maintenance of the SWQL database using the ORION SDK, SwisSnappin and PowerORION Module for Powershell.

 

I have been successful in deleting and adding nodes based on data imported from a .csv file.

 

I keep getting the following error when trying to update node properties/custom properties using the Set-SwisObject cmdlet.

 

Set-SwisObject : Invalid column name 'SNMPV3Username'.

Invalid column name 'SNMPV3PrivMethod'.

Invalid column name 'SNMPV3PrivKey'.

Invalid column name 'SNMPV3AuthMethod'.

Invalid column name 'SNMPV3AuthKey'.

At C:\Users\welfakir\Documents\Powershell_Scripts\Add-Node\Update-Node.ps1:222 char:102

+ ...  @{IP=$node.IP} | Set-SwisObject -SwisConnection $swis -Properties @{

+                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (:) [Set-SwisObject], FaultException`1

    + FullyQualifiedErrorId : SwisError,SwisPowerShell.SetSwisObject

 

I am running SWQL Studio 2.2.54.0, NPM 12.1, SAM 6.4 (Both Trial as I cannot test on a production server) and PowerShell V5.

 

On another note, when I create nodes I am using the sample found on git hub : OrionSDK/CRUD.AddNode.ps1 at master · solarwinds/OrionSDK · GitHub

 

Are there other properties/pollers that need to be added upon creation for successful monitoring?

 

Thanks,

 

Will.

Node and Interface Status possible field values

$
0
0

Hi,

 

I'd like to get a list of the possible Status field values for both the Node and Interface entities.

 

Does anyone have such a list or could assist on this please?

 

For example I have part of a SWQL query below which is excluding Nodes and Interfaces based on certain numbered status values and I'd like to understand exactly what is happening:

 

T1.Node.Status NOT IN ('11', '9', '12') AND T1.Status NOT IN ('9', '12')

 

Regards,

Andrew


add node using powershell

$
0
0

We are trying to automate the server build process so wanted to know how to add node in solarwinds using powershell for monitoring.

How to enable API in Solarwinds to integrate with other tools?

$
0
0

Hi,

 

We are trying to create a “Central Dashboard for Capacity” related reports for my customer so that whenever needed one can login to this Tool and generate a report.

 

To generate those reports in our Tool, our Tool needs to further integrated with Solarwinds to get the Capacity and Performance related data. And API (Web services) is the only protocol that our Tool support.

 

We need your help to understand whether Solarwinds support API so that we can explore further to get the Capacity and Performance related data from Solarwinds.

 

Also, how we can enable API Integration.

Add/Update Orion node with Powershell Rest API using Json data type

$
0
0

Hello,

 

I would like to add/update the Orion node with PowerShell Rest API using Json data type.  I want to know if any one has any sample code that I can look at.

 

Thank you in advance.

 

CluM09

SWQL any formal linkage between Orion.Nodes and IPAM.IPNode?

$
0
0

I'm attempting to get a list of IPAM entries that need some attention and/or cleanup using the following:

SELECT DISTINCT

  I.IPAddress

, I.DnsBackward

, O.Caption

, O.IP_Address

FROM IPAM.IPNode AS I

LEFT OUTER JOIN Orion.Nodes AS O ON I.IPAddress = O.IP_Address

WHERE I.Status = 1

AND ( I.DnsBackward LIKE '' OR I.DnsBackward IS NULL)

 

What I see is lots of mismatches when I attempt to link using IP Address.  So several questions:

1. Is there any formal linkage (key) between these two tables?

2. If there is no formal linkage, Is there a better one? 

3. Is there some place I can see linkages between Orion and IPAM tables?

 

Thanks in advance.

SWQL Single Character Wildcard / String Parsing

$
0
0

Does SWQL have a single character wildcard?  I've been working with the SDK for a while and find string parsing to be the greatest difficulty.

 

I'm still trying to find a way to work around for the lack of IP Address sorting.  SWQL functions for IP Addresses

https://thwack.solarwinds.com/ideas/10592

 

I generally find I need REGEX pattern matching MySQL :: MySQL 5.7 Reference Manual :: 3.3.4.7 Pattern Matching and a bunch of string functions MySQL :: MySQL 8.0 Reference Manual :: 12.5 String Functions that just don't exist.

 

How do people generally accomplish what is needed using only SubString and CharIndex?

 

Nesting of these functions doesn't appear to work...

    SELECT N.IPAddress AS IP

         , N.DnsBackward

         , SUBSTRING( IP

                    , 1

                    , CHARINDEX('.',IP,1)-1) AS O1

         , SUBSTRING( IP

                    , CHARINDEX('.',IP,1)+1

                    , CHARINDEX('.',IP,CHARINDEX('.',IP,1))-1) AS O2

         , SUBSTRING( IP

                    , CHARINDEX('.',IP,CHARINDEX('.',IP,1))+1

                    , CHARINDEX('.',IP,CHARINDEX('.',IP,CHARINDEX('.',IP,1)))-1) AS O3

         , SUBSTRING( IP

                    , CHARINDEX('.',IP,CHARINDEX('.',IP,CHARINDEX('.',IP,1)))+1

                    , CHARINDEX('.',IP,CHARINDEX('.',IP,CHARINDEX('.',IP,CHARINDEX('.',IP,1))))-1) AS O4

    FROM IPAM.IPNode AS N

How to dynamically/automatically (daily) fill in Node Custom Properties

$
0
0

Hi all

 

We need to run a "discovery job/script" to get plenty of values from roughly 1000 servers,

then update node custom properties with found values

and then use those values as variables in Application Templates for Windows PowerShell Component Monitors.

 

Seems like this topic was already discussed here: Automate custom property fill in more than a year ago.

 

I am wondering if there is any recommended "SolarWinds out-of-the-box way" now except of OrionSDK and/or using Alerts to change the custom property.

 

Thank you in advance, this is the most important step for us when replacing SCOM and implementing SolarWinds Solution.

 

J.

Interface down alerts

$
0
0

Hi,

 

Pleaese help me to get list of interface down alerts through swis query.


Can SolarWinds API accept basic auth via the URL?

$
0
0

My end goal is to ACK a SolarWinds Orion alert via an API call triggered from my incident management tool. However, the tool I am sending the POST from does not support custom headers. Will SolarWinds accept basic auth passed in the URL? If so, what is the SolarWinds endpoint URL and payload needed to ACK an alert in SolarWinds?

 

I have tried the below, but am receiving a 401. Currently my admin account does not have a password and that section in the URL is blank. Maybe this is the cause?

 

Thanks everyone

 

Method: POST

Content-Type: application/JSON

Target URL: http://<username>:<password>@<host>:<port>/api/ActiveAlertsGrid/AcknowledgeActiveAlerts

Payload:

{

{<Alert Number>}, "acked by...."

}

Can devices be added to Solarwinds via Ansible? Is there an ansible module available for this

$
0
0

Hi folks,

I've been tasked with adding a couple thousand network devices to SW. Is there an ansible playbook / module that does that? I didn't find any in the Orion github space. Any help would be greatly appreciated.

 

-JC

how to input 'y' or 'yes' with powershell script to NCM

$
0
0

Hello, Team

is anybody who can give me an idea how to input the 'yes' or 'y' command when waiting for the user input.

want to automate the Nexus 3048 ios upgrade process with powershell script with NCM.

 

Also, powershell script can apply for multiple devices at the same time for example upgrade 100 devices at the same time for 1 powershell script.

 

for example

Images will be upgraded according to following table:

Module             Image         Running-Version             New-Version  Upg-Required

------  ----------------  ----------------------  ----------------------  ------------

     1            system             6.0(2)U1(2)             6.0(2)U3(1)           yes

     1         kickstart             6.0(2)U1(2)             6.0(2)U3(1)           yes

     1              bios      v1.2.0(08/25/2011)      v1.2.0(08/25/2011)            no

     1         power-seq                    v4.4                    v4.4            no

 

 

Switch will be reloaded for disruptive upgrade.

Do you want to continue with the installation (y/n)?  [n] y   <--- here, how to input 'y' command with powershell script ??

 

Install is in progress, please wait.

Performing runtime checks.

[####################] 100% -- SUCCESS

Setting boot variables.

[####################] 100% -- SUCCESS

Performing configuration copy.

[####################] 100% -- SUCCESS

Finishing the upgrade, switch will reboot in 10 seconds.

as20a.w40216b.x460.krccw#

No snap-ins have been registered for Windows PS v. 5.0

$
0
0

Hi Thwack,

 

As I was trying to unmanage whole groups at a time I stumbled upon OrionSDK and with that, PowerOrion.

I have installed OrionSDK and copied the PowerOrion directory to C:\Windows\System32\WindowsPowerShell\v1.0\Modules\.

Whenever I try to either Import-Module PowerOrion or Add-PSSnapin SwisSnapin I get this:

 

PS C:\Company> Add-PSSnapin SwisSnapin 

Add-PSSnapin : No snap-ins have been registered for Windows PowerShell version 5.

At line:1 char:1

+ Add-PSSnapin SwisSnapin

+ ~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidArgument: (SwisSnapin:String) [Add-PSSnapin], PSArgumentException

    + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand

 

 

 

PS C:\Company> Import-Module PowerOrion

Add-PSSnapin : No snap-ins have been registered for Windows PowerShell version 5.

At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\PowerOrion\PowerOrion.psm1:5 char:1

+ Add-PSSnapin SwisSnapin

+ ~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidArgument: (SwisSnapin:String) [Add-PSSnapin], PSArgumentException

    + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand

 

I've tried running the following without success: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\InstallUtil.exe 'C:\Program Files (x86)\SolarWinds\Orion SDK\SWQL Studio\SwisPowerShell.dll'

 

Any help is greatly appreciated.

 

Glad Regards,

Frederik Bruun

Ambiguous Error with Orion SDK and Powershell

$
0
0

I am trying to shut down all ports that are down for my company with a powershell script that uses the Orion SDK. I had a previous error message that was concerned with the data type I was using. It turns out AdministrativeShutdown required an array of integers it's 2nd positional argument.

 

The line of code is as follows:

 

Invoke-SwisVerb $swisOrion.UDT.Port AdministrativeShutdown @($port.NodeID,$portIDArray)

The Rest of the code works. I just can't make sense of this error message.

 

The Error:

Invoke-SwisVerb : 5250

At C:\Users\vollrathco\Documents\Ps1 Script\portConfiguration.ps1:30 char:1

+ Invoke-SwisVerb $swis Orion.UDT.Port AdministrativeShutdown @($port.NodeID $p ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (:) [Invoke-SwisVerb], FaultException`1

    + FullyQualifiedErrorId : SwisError,SwisPowerShell.InvokeSwisVerb

 

My Thoughts:

Access permissions? Maybe the node configuration... but they are all set up with SNMP-RW

Viewing all 3719 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>