Comments
-
Is the module installed system-wide or just for your user? This is easy to check: (Get-Module SwisPowerShell).Path
-
SwisInvoke.exe is an older tool that can be used to invoke verbs, but that's it. The Orion.NodesCustomProperties.ModifyCustomProperty verb is used for changing the definition of a custom property - like setting a maximum length for its values. To set custom property values, you need use the SWIS "update" operation. One way…
-
The REST endpoint accepts AD accounts using HTTP Basic authentication. It does not support NTLM/Kerberos on that port.
-
You are very close! The format for an application custom properties uri is this: swis://$hostname/Orion/Orion.Nodes/NodeID=$nodeID/Applications/ApplicationID=$appID/CustomProperties
-
Check your configuration for Views By Device Type. When you upgraded to 9.1 it should have set this so that your ESX nodes used the new ESX Details view. It sounds like maybe that didn't work in your case.
-
If you want to run the same script on multiple nodes as a single NCM job, just change how the node list is built: $nodeIdList = New-Object -TypeName "System.Guid[]" 2 $nodeIdList[0] = $nodeId $nodeIdList[1] = $anotherNodeId And so on for however many nodes you have.
-
First thing to check would be clock synchronization. Are server and client clocks matching? Next place to look would be the SWISv3 log on the server: C:\ProgramData\SolarWinds\InformationService\v3.0\Orion.InformationService.log
-
Please post a query that yields this error.
-
Without the Import and Export verbs, you won't be able to do this through the API. Depending on what kind of edits you are trying to make, you might get away with editing the data in the database directly. If you want to go that route, keep in mind: * This is not a supported operation * Back up your database first * Make…
-
stibi, can you help here?
-
If you want to add a node from PowerShell, I recommend following one of these two samples: https://github.com/solarwinds/OrionSDK/blob/master/Samples/PowerShell/CRUD.AddNode.ps1 https://github.com/solarwinds/OrionSDK/blob/master/Samples/PowerShell/DiscoverSnmpV3Node.ps1 If you want to use JSON, I would recommend switching…
-
An EngineID value identifies a specific polling engine in your Orion deployment. To see the available EngineID values in your deployment, run this query in SWQL Studio: SELECT EngineID, ServerName, IP, ServerType FROM Orion.Engines
-
1. I would use SAM script monitors to get this data into Orion. This will make it available for alerts, reports, dashboards, etc. 2. You can use the SWIS API to set node names and custom properties. 3. I don't know enough about what data your script needs to understand this part. Ideally you could run the same script…
-
I think the piece you are missing is using the "Import-Csv" powershell cmdlet to load a csv file into a collection of objects. You can loop over the files (as you are doing) and call Import-Csv on each one. Then loop over those results and process them. Using the Import-Csv Cmdlet
-
Please see this thread: Active Alerts - Creating a duplicated view
-
Could you post the query you used to get that data?
-
Mark, The current API does not support creating or modifying maps programmatically, but I'll pass your request on to the product manager. Tim
-
Change templates are not currently available through the SDK, but you can execute a script. I don't have a C# sample for that handy, but here's one in PowerShell that shows how to make the relevant Query and Invoke calls. Let me know if you need help translating it. # This sample script demonstrates how to execute a script…
-
See this wiki page: https://github.com/solarwinds/OrionSDK/wiki/Alerts#verb-unacknowledge This verb expects a single argument: a list of AlertObjectID values. To unacknowledge a single alert, the post body would look like this: [ [ 12345 ] ] You might be interested in a .NET library to help with making Orion API calls:…
-
I wouldn't expect any issues from that. Moving the databases, doing the upgrade, then specifying the new db server when the 9.1 config wizard asks should work fine.
-
This approach - query and then update - cannot be made concurrency-safe without transaction support. Since the Orion API does not have general purpose transactions, a different approach is needed. Fortunately, the IPAM includes an API for this specific purpose: the StartIpReservation/FinishIpReservation/CancelIpReservation…
-
Many of the statistics that Orion collects (most notably interface traffic) are reported by devices as counters like "total bytes transferred". To get from "total bytes transferred" to "bytes/second" we need to gather the value of the counter once, wait a little while, then collect it again. It's like calculating your…
-
Receive percent utilization is a property of interfaces, not nodes.The relevant property is Orion.NPM.Interfaces.InPercentUtil. You can get the percent utilization numbers for all of the interfaces on a node with a query like this: SELECT InPercentUtil AS RecvPctUtil FROM Orion.NPM.Interfaces WHERE NodeID=103 If you just…
-
Yes, in general you can have a radial gauge display a value from a custom poller. I would also note that if you're doing anything with custom pollers, you would benefit from upgrading to the newly available Orion NPM 9.0 - the new Universal Device Poller system is a significant improvement over the 8.x custom poller system.
-
For some reason, that code path isn't implemented for groups. I'll open a bug, because it should have been. Instead, there is a verb. This should work: $swis = Connect-Swis ... # connection details here $containerId = 42 # get ContainerID from somewhere Invoke-SwisVerb $swis Orion.Container DeleteContainer @( $containerId )
-
We just need to make a few changes to turn this into a SWQL query: 1. Change "FROM Events" to "FROM Orion.Events" 2. Change "INNER JOIN Nodes" to "INNER JOIN Orion.Nodes" 3. Change "Nodes.Owner" to "Nodes.CustomProperties.Owner" 4. Change "DATEDIFF(hh, T1.DownTime, CURRENT_TIMESTAMP)" to "HOURDIFF(T1.DownTime, GetDate())"
-
A few questions: * What version of NCM are you on now? * What are the values for other properties of Cirrus.TransferQueue at the time Log is null? * Does Log stay null indefinitely? Or does a value show up after some amount of time? * What happens if you execute the same password change script through the web console…
-
I would look at C:\ProgramData\SolarWinds\InformationService\v2.0\Orion.InformationService.log to see if there are any errors. Usually when there's a problem processing a query the error is propagated back to powershell so you can see what went wrong, but some issues that occur very early or very late in the request…
-
To convert a unix timestamp to a local time in SWQL, you can use this: ToLocal(AddSecond(1437422294, DateTime('1970-01-01 00:00:00'))) To convert a string to a number so you can use it with AddSecond or ORDER BY, just add 0. So the complete query would look like this: SELECT Status, RowID, ToLocal(AddSecond(Status+0,…
-
This is the right place to look for SDK assistance. I don't have experience with Service-Now specifically, but I can help you with programmatically acknowledging alerts. The relevant log file on the SolarWinds side is C:\ProgramData\Solarwinds\InformationService\v3.0\Orion.InformationService.log (or v2.0 if you are…