Hi , I am new to solarwinds
I just download SDK & install it.
I try to connect to server (default name is SWSrv1) from SWQL studio but i dont know which server type i can use?
Btw, may i know this SWSrv1 is your product server or we need setup our own server?
if connect to local, Is it the local server have been setup automatically after installation or we need do it manually?
Server types are just how you are authenticated to connected to Orion Information Service. You can use any type of authentication based on the need and configuration. But provided below the easiest to connect to swql studio.
For connecting to local server (if the product is installed there) :
Server : localhost
Server type : Orion (v3) Certificate
For connecting to a different server :
Server : "Server name"
Server Type : Orion (V3)
i am not able to use SwisSnapin in windows power shell after install the SDK.
How can i manually install it?
Did you add swissnapin to the current session? If not use the below mentioned command.
When I issue that command in widows powershell, I get this error:
PS C:\Program Files (x86)\SolarWinds\Orion SDK\SWQL Studio> Add-PSSnapin swissnapin
Add-PSSnapin : No snap-ins have been registered for Windows PowerShell version 2.
At line:1 char:13
+ Add-PSSnapin <<<< swissnapin
+ CategoryInfo : InvalidArgument: (swissnapin:String) , PSArgumentException
+ FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand
this looks like the issue with registration of the SDK libraries. Typically this might happen when you install th Orion SDK under non-administrative account.
To register the SWIS PowerShell snapin on 32-bit Windows computers:
Run the following command, all on one line. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe 'C:\Program Files\SolarWinds\Orion SDK\SWQL Studio\SwisPowerShell.dll'
To register the SWIS PowerShell snapin on 64-bit Windows computers:
Run the following command, all on one line. C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\InstallUtil.exe 'C:\Program Files\SolarWinds\Orion SDK\SWQL Studio\SwisPowerShell.dll'
I hope this will help.
Thanks for the reply.
I have managed to register the dll.
Now I have another problem when I try the example in SDK API document.
PS H:\> Invoke-SwisVerb $swis Orion.Nodes Unmanage @("N:1",$now,$later,"false")
Invoke-SwisVerb : Account limitations prevent this object from becoming unmanaged.
At line:1 char:16
+ Invoke-SwisVerb <<<< $swis Orion.Nodes Unmanage @("N:1",$now,$later,"false")
+ CategoryInfo : InvalidOperation: ( , FaultException`1
+ FullyQualifiedErrorId : SwisError,SwisPowerShell.InvokeSwisVerb
Btw, I have tried commands Connect-Swis , Get-SwisData successfully.
Most likely cause would be that you do not actually have a node with NodeID=1. The error message does not differentiate between "no node with that ID" and "there is a node with that ID, but you do not have permission to see it."
I had the same problem where the id did not exist and was able to fix accordingly
I saw there is a java client sample for web service using SOAP in SDK document.
Since also support REST/JSON , do you have sample java client code to retrieve XML/JSON format information using RESTful webservice?
No, we don't have a sample for using the REST endpoint from Java. But it's not doing anything weird - HTTP Basic authentication and simple HTTP with simple JSON bodies. Let me know if you have trouble with it.
Hi, After insert the node using API, how can i show the result in visual chart ?
Could you be more specific? After you add a node and pollers, the charts for response time, etc., will be on the website.
For example, I want to show the CPU usage, which node and poller should I add?
After add , how to show them in Pie Chart?
the CPU and Memory pollers are Vendor specific. Use the last chapter of the Orion SDK documentation (Orion SDK.pdf) to find out the correct pollers for your devices. Working with charts is the same as for regularly added/discovered nodes.(How to add Nodes and pollers you can find e.g. in the Orion SDK sample scripts - c:\Program Files (x86)\SolarWinds\Orion SDK\Samples\PowerShell\).
Can we use the SDK in SAM my SAM version is 6.1.1.
If yes how can i implement it with my SAM.
Haven't invested much time in the SDK for SAM however you certainly can get info just like you would using from NPM.
At present we just use it to request info gracefully from the SQL. Status of particular services we monitor as well as health of the SAM application itself for a morning health report for management.
Currently I'm using the SDK to apply templates automatically to nodes in the system based on their naming convention. Haven't done much of the service status with SDK to another app or output, just mainly used SWQL for reports on that stuff. Interesting though!
May i know which tools can monitor the cpu usage?
if my pc is windows 7, which node i should add?
Is there roadmap or "what we working on" to the SDK ?
Sure like to know what is next on 2.0
We don't have a published "what we are working on" for the SDK. What are you interested in?
create, update, delete operations for the IPAM and UDT products
Orthogonality of operations across all Orion objects.
i.e. if I can read an object (e.g. a [UDT] port) then I ought to be able to create, update, or delete it.
The same for an [IPAM] IP address, or subnet.
what you mentioned is implemented on the product side (IPAM/UDT). SDK just provides interface for working with CRUD, Verbs, etc... New SDK versions are mostly about bug fixes, documentation updating and new implementation for product needs (e.g. new types of parameters, connections, ...). As well as the the verbs, also the CRUD operations must be implemented on the product side. In case you're interrested in something special, raise the ticket or thread in the product space.
So, when the next version of sdk release ? Is there any planned date?