Quantcast
Channel: THWACK: All Content - Orion SDK
Viewing all 2677 articles
Browse latest View live

Orion SDK Documentation for Change Approval Script Execution


I want to take the interface down and up time in a same report not in seperate rows? What can i do for it. any suggestions

Anyone has has a Phyton Script to add Custom Pollers directly to the Orion.NPM.CustomPollers table?

$
0
0

I'm trying to add a large amount off custom pollers directly to the Orion.NPM.CustomPollers table. The UniqueName, Description, OID etc. has already been defined in a spread sheet I just need to know how to add these to the database table and generate an automatic CustomPollerID.

Difference between SWQL Studio and SWQL in EOC

$
0
0

The new EOC makes heavy use of SWQL to report on multiple Orion instances at once, but I've stumbled over what appears to be a major difference (of which I'm sure the issue is on the EOC side and have posted in their forum:

 

Using just a simple SWQL query, even against a single Orion from the EOC, it appears that there is an error where two values with the same column name cannot be selected, even if they are renamed:

 

select NodeID, v.Node.Caption, VolumeID, v.Caption, VolumeType, VolumeSize   
from Orion.Volumes v 

Any thoughts on what could cause this difference in behavior?

How to use an API call to get free space of all Windows Nodes Volumes

$
0
0

I am currently using Postman and a GET command that successfully returns the "Caption" and "VolumeSpaceAvailable" for all nodes. I use the following statement to do so:

https://localhost:17778/SolarWinds/InformationService/v3/Json/Query?query=SELECT Caption, VolumeSpaceAvailable FROM Orion.Volumes

This is great and works, but I'd like to be able to return only my Windows nodes. I've tried things like:

https://localhost:17778/SolarWinds/InformationService/v3/Json/Query?query=SELECT Caption, VolumeSpaceAvailable FROM Orion.Volumes WHERE Vendor like 'Microsoft'

But this does not work since this info is pulled FROM Orion.Nodes so it can't access the Vendor info. (Reference here: SolarWinds Information Service v3.0 Schema Documentation Index ) So my question is how do I get info from both Orion.Volumes and Orion.Nodes with my API call?

 

Thanks!

Orion.APM: can you update application status via SDK?

$
0
0

This may be a really stupid question, but since I've been banging my head against the wall for a few weeks, I thought I'd ask.

 

Can you update an application's status via the SDK's APIs?

Can you update a component's status via the SDK's APIs?

 

What I'm seeing in my latest failure is this:

# curl -k -u Admin: -H "Content-Type: application/json" -d '{"Status":"0"}' https://<my ip>:<my port>/SolarWinds/InformationService/v3/Json/swis://<my host>/Orion/Orion.Nodes/NodeID=37/Applications/ApplicationID=50/Components/ComponentID=1045

 

{"Message":"Operation not supported on Orion.APM.Component","ErrorCode":20,...........}

 

I don't know if it's a limitation in the SDK or my own incompetence. 

 

The use case here is a locally running Linux script containing sensitive PHI/PII data that cannot be loaded into a script on the SW server.  Based on the outcome of the script, I want to push an application/component status update to the SW server.

 

We currently have a custom SAM Linux log parser doing this, but for some of our other systems (VMS-based), the preference would be to push the status updates.

 

Thanks!

how to add volumes to monitored resources via rest API & curl

$
0
0

whenever i add a node, i currently have to go into the node, click List Resources and add the volumes i want to be monitored. how do i add these volumes automatically via the Rest API and curl in linux?

Permissions required for CRUD operations

$
0
0

So I am trying to use the CRUD operations (New-SwisObject, Set-SwisObject, Remove-SwisObject) to add and modify custom properties for IPNodes.  So far to do this it seems that full Orion Admin is required, in addition to IPAM Admin.

 

Can anyone confirm the permission levels needed for the CRUD operations to work and if there is any way to use them without full Orion Admin access.


Did SWQL subqueries break in npm 12.2?

$
0
0

All,

Did SWQL subqueries change in NPM 12.2?  I recently upgraded and noticed I had some reports not working.  This looks for sites that dont have some devices in them.  But its not returning the List of sites that it should:

 

Select NC.City

FROM Orion.NodesCustomProperties NC

WHERE City NOT IN (

SELECT

NC.City

FROM Orion.Nodes 

INNER JOIN Orion.NodesCustomProperties NC ON (Nodes.NodeID = NC.NodeID)

WHERE (Nodes.MachineType LIKE '%36%')

AND (Nodes.Status <> '2')

)

Device Reachability Information from the Orion Schema

$
0
0

Hi Team,

 

I am interested to know how can I measure the device reachability using the SWIS API. Basically I am looking for a specific table and corresponding attribute which can directly help me calculate the device reachability .

 

My initial thinking was to use Percent Loss value from Orion.ResponseTime table. But this does not seem to be give me the reachability value directly. Any help is appreciable?

 

Existing SWIS Query:

https://localhost:17778/SolarWinds/InformationService/v3/Json/Query?query=SELECT+NodeID,PercentLoss,DateTime+FROM+Orion.ResponseTime+WHERE+NodeID=8+AND+

 

NameTypeNotes
NodeIDSystem.Int32
DateTimeSystem.DateTime
ArchiveSystem.Byte
AvgResponseTimeSystem.Int16
MinResponseTimeSystem.Int16
MaxResponseTimeSystem.Int16
PercentLossSystem.Int16
PercentDownSystem.Double
AvailabilitySystem.Double
ObservationTimestampSystem.DateTime
ObservationFrequencySystem.DateTime
WeightSystem.Double          Default='1.0'.        
DisplayNameSystem.String
DescriptionSystem.String
InstanceTypeSystem.Type
UriSystem.String
InstanceSiteIdSystem.Int32          Default='0'.        
NodeOrion.Nodes                 Defined by relationship Orion.NodesHostsResponseTime (System.Hosting

Server count KPIs group by

$
0
0

Hi, can someone assist please.


I am trying to create custom SWQL report that will count all my current OS and group them by the BusinessUnit.  Both fields are custom properties.

However, when I group by the BusinessUnit custom properties, only the 'Windows OS Count' is group, whereas, the others show the total count.

 

Header 1

select  cp.os_cbu as [Customer Business Unit], count(cp.MachineType_Pool) as [Windows OS Count],

 

 

(select Count(cp.MachineType_Pool) as [Linux OS Count]

from orion.nodes n

left join orion.NodesCustomProperties cp on n.NodeID = cp.NodeID

where cp.Asset_Type = 'server' and cp.MachineType_Pool = 'Linux' ) as [Linux OS Count],

 

 

(select Count(cp.MachineType_Pool) as [Solaris OS Count]

from orion.nodes n

left join orion.NodesCustomProperties cp on n.NodeID = cp.NodeID

where cp.Asset_Type = 'server' and cp.MachineType_Pool = 'Solaris' ) as [Solaris OS Count]

 

 

from orion.nodes N

left join orion.NodesCustomProperties cp on n.NodeID = cp.NodeID

where cp.asset_type = 'server' and cp.MachineType_Pool = 'windows'

 

 

group by cp.OS_CBU

 

Results

 

 

Can you help in getting all of the OS Count to sort by the Customer Business Unit.  Applying the same 'Windows OS Count' to the 'Linux and Solaris OS Count', and not displaying the full total.


Thanks much!

Custom SWQL resource

Get Volume Custom property using SDK

$
0
0

We are using SolarWids SDK to get Nodes, Volumes, Applications information. We need Custom property Values for one of the Custom property in orion. Below is the Query we are using, Do any one know how to get this information.

Custom Property Name is "Vol_Owner". We need one more column to show the values of "Vol_Owner" values along with other information in below query.

 

https://IP:17778/SolarWinds/InformationService/v3/Json/Query?query=SELECT+NODEID,+VolumeID,+Caption,+Type,+VolumeSize,+Vol_Owner+FROM+Orion.Volumes

Difference between SWQL Studio and SWQL in EOC

$
0
0

The new EOC makes heavy use of SWQL to report on multiple Orion instances at once, but I've stumbled over what appears to be a major difference (of which I'm sure the issue is on the EOC side and have posted in their forum:

 

Using just a simple SWQL query, even against a single Orion from the EOC, it appears that there is an error where two values with the same column name cannot be selected, even if they are renamed:

 

select NodeID, v.Node.Caption, VolumeID, v.Caption, VolumeType, VolumeSize   
from Orion.Volumes v 

Any thoughts on what could cause this difference in behavior?

Invoking Orion.Views - AddViewToGroup

$
0
0

Hello Orion SDK Community,

 

I'm Invoking the following verb as an attempt to join two pages together into a viewgroup with a tabbed interface (the same as if you customized a view, enabled the tabbed interface option, and added a new tab)

I'm not sure why this isn't working, as I believe I am setting the properties correctly.

 

As a test, I create two separate views, and then use SWQL studio to invoke the AddViewToGroup verb setting the parameters as follows:

 

viewID: (viewID of the first resource)

targetViewID: (viewID of the second resource)

viewIcon: Overview.png

viewCondition: (not a required property, I've tried leaving this empty or setting to true)

 

The result is that when this is submitted, and you browse to the targetViewID, two pages are not seen, only one.

Customizing the page reveals the tabbed interface is enabled and the pages are both seen grouped together in the customize view, yet they only one page appears.

Reviewing the database, values all seem correct (ViewGroupID is the same, ViewGroupPostions are 1 and 2) yet the page does not display the tabbed interface.

 

Is there something I am missing here? Perhaps I'm setting values incorrectly?

Any help is greatly appreciated.

 

Thank you,

 

=swql


Modify Network Sonar Discovery attributes

$
0
0

Is there a way to modify the network sonar discovery scope (add ip addresses for instance) leveraging the api?  directly via sql?

Possible to Update Orion.APM.ComponentSetting

$
0
0

I'm trying to update about 100 different component settings and would like to automate this with a script. In the script I try to run this set command and get an error:

 

Set-SwisObject $swis -Uri 'swis://orionhost.local/Orion/Orion.APM.ComponentSetting/ComponentID=33381,Key="PortNumber"'  -Properties @{ PortNumber = '$port' }

 

Set-SwisObject : Operation not supported on Orion.APM.ComponentSetting

At line:1 char:1

+ Set-SwisObject $swis -Uri 'swis://orionhost.local/Orion/Orion.APM.ComponentSetti ...

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

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

    + FullyQualifiedErrorId : SwisError,SwisPowerShell.SetSwisObject

 

Does anyone know if there is a way to update APM Components using the API (or any work-arounds to make it scriptable?)

 

Thanks

Solarwinds Orion.Accounts

$
0
0

How can i pass values to Orion.Accounts to Create an Account using powershell?

 

$groupId = (Invoke-SwisVerb $swis "Orion.Accounts" "CreateAccount"  @(

   ([xml]@(   

          "<AccountType>System</AccountType>","<dictionary></dictionary>"),([xml]@( 

   "<dictionary xmlns='http://schemas.solarwinds.com/2007/08/informationservice/propertybag'>$newNodeProps</dictionary>")).DocumentElement).InnerText 

 

Also, How to pass property parameter to dictionary element?

SWIS v3 Rest API calls not working as domain user

$
0
0

I have this powershell script:

 

      $server = "server"

      $credential = Get-Credential

      $query = "https://"+$server+":17778/SolarWinds/InformationService/v3/Json/Query?query=SELECT nodeid FROM orion.nodes"

      $results = Invoke-RestMethod -method Get -Uri $query -Credential $credential -DisableKeepAlive

 

If I use an orion account with NCM privileges it works fine.  If I use a domain account, I get a 403 forbidden.  I've tested in both production and development and it's occurring.  I've changed the account the service runs under to a domain service account, but I still get the same error.

 

Any thoughts?

Change SysLog Colours on Orion?

$
0
0

Hello,

 

Would anyone know how to change the SysLog Colours on Orion?

Viewing all 2677 articles
Browse latest View live


Latest Images

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