madhavan

Comments

  • Hi, You can use streamed endpoint to fetch huge dataset. Provided below the powershell syntax $Swis = Connect-Swis -Certificate -Streamed Get-SwisData $swis "SELECT NodeID from orion.nodes" Try this and let me know.
  • Hi, Powershell sample :: $swis = Connect-Swis -HostName "localhost" -Username "username" -Password "password"$now =[DateTime ]:: NowInvoke-SwisVerb $swis -EntityName "Orion.Nodes" -Verb "Unmanage" -Arguments @("N:1", $now.AddDays(1), $now.AddDays(2), "false") Rest Sample using Curl :: curl -k -u admin: -X POST -H…
  • Hi, If the time you invoke the unmanage verb falls between the UnmanageFrom and UnmanageUntil time, the Unmanaged flag and status will be set automatically.
  • Hi, Once an application is created, the template assigned to a node cannot be modified via SDK and swis. But it can be accomplished at the time of creation of an application. The powershell script provided in the samples (you will find it in the folder where SDK is installed) has information on creating, deleting…
  • Hi, I used the below provided PS sample. Let me know if this solves your need. $xmlParam = ([xml]" <CorePluginConfigurationContext xmlns:i='http://www.w3.org/2001/XMLSchema-instance' xmlns='http://schemas.solarwinds.com/2012/Orion/Core'> <BulkList /> <IpRanges /> <Subnets>…
  • Hi, In your script, swis.create returns uri of the node created. Use that and perform swis.read. obj = swis.read(uri) swis.read will provide all the properties of the newly added node. Use that to get the nodeid of the node and use below provided code to assign ICMP poller to the node. pollerUri =…
  • Hi, You can query using extended properties. In SWQL, instead of writing a join query, extended properties can be used. Refer to "C:\Program Files (x86)\SolarWinds\Orion SDK\Documentation\Orion SDK.pdf" for details about extended properties. Provided below a sample query to query Orion.Nodes's properties and CPs. select…
  • Hi, TrapRuleVarBindID is randomly created GUID. It is not specific / mapped to Trap Name. If you want to generate the .traprule, generate a GUID. To check this, you can create a rule, export it. Delete the rule, re create it with the same condition and export it. You can see that the GUIDs will be different in both the…
  • Hi, You need to add necessary poller to the node in order to get polled. You can find samples of adding poller to the node @ "C:\Projects\SWIS\M_SWIS\depot\Dev\Main\Orion\SDK\Src\Samples\PowerShell". I see couple of pollers for ICMP. Add what is required for your purpose. N.IPAddress.ICMP.Generic :: IP addresses poller for…
  • Hi, In the below provided link, we have information on how to programmatically list resources and automatically add pollers to the resources. How do we programmatically discover the non-interface properties [in Orion] and enable them We cannot validate SNMP credentials with try catch when adding nodes as polling happens in…
  • Hi, You can find powershell samples for Groups manipulation @"C:\Program Files (x86)\SolarWinds\Orion SDK\Samples\PowerShell\Groups.ps1" (Your SDK installed directory)
  • When caption text contains dtcorp20013 (ex : updtcorp2001340, jkuidtcorp20013ut), use the below mentioned query SELECT NodeID, Caption FROM Orion.Nodes Where Caption like '%dtcorp20013%' When caption text is dtcorp20013, use the equal to sign as provided below. SELECT NodeID, Caption FROM Orion.Nodes Where Caption =…
  • Hi Adding a GROUP BY and MAX(EventTime) should solve your case. Provided the query below. SELECT NodeName AS [Node Name], '/Orion/images/StatusIcons/Small-' + StatusIcon AS [_IconFor_Node Name], DetailsUrl AS [_LinkFor_Node Name], MAX(DOWNEVENT.EVENTTIME) AS [DOWN TIME] FROM ORION.NODES NODES INNER JOIN ORION.EVENTS…
  • Iwri, Provided below the query which gives the devices with their MAC, IP and Host name connected to a Port with Name and caption of the node and the connection type (Direct - 1 or Indirect - 2) SWQL Query in case you are using SWIS Select p2e.endpointid, e.MACAddress, ipc.IPAddress, dns.DNSName, P.Name, N.Caption,…
  • Yes. Your SAM version supports SDK. There are samples to use SDK provided @"C:\Program Files (x86)\SolarWinds\Orion SDK\Samples\PowerShell" (The location where SDK is installed).
    in SDK+SAM? Comment by madhavan August 2014
  • Hi, When powershell is unable to identify type of a variable used, it uses PSObject / PSMethod which causes the issue. Try using explicit type casting to see if that solves the issue. Invoke-SwisVerb $swis -EntityName "Orion.Nodes" -Verb "Unmanage" -Arguments @([String]"N:2", [Datetime]$unmanagefrom, [Datetime]$unmanageto,…
  • Hi, You can assign custom pollers to nodes or interfaces. Sample provided below. New-SwisObject $swis –EntityType 'Orion.NPM.CustomPollerAssignmentOnNode' -Properties @{Description='Test';CustomPollerID='a519ce64-33c3-490c-b0f8-04982911cd3e';NodeID='1';} use Orion.NPM.CustomPollerAssignmentOnInterface for adding custom…
  • Hi, Can you please let me know the OS details of the machine you are trying to install 1.10.
  • c.gura The columns ancestordisplaynames and ancestordetailsurls returns array of display names and details urls, which is not supported in our JSON converter. Removing these columns from your query should solve the issue. Will get back to you on including support for columns that returns array.
  • Hi, Node Create :: 1) using curl : Execute the below mentioned command and provide the node properties in CreateNode.txt file as in the example provided below. Here Guid needs to be unique. curl -k -u admin: -X POST -H "Content-Type: application/json"…
  • Hi, You can find the verb usage @ add node to container powershell. Try as per the thread and let us know if any issues.
  • Hi, For creating the plugin configuration, use CreateCorePluginConfiguration verb. This will solve your issue. Provided below the link which has details on discovery verb usage. How do we programmatically discover the non-interface properties [in Orion] and enable them
  • Hi, We are investigating on this and get back to you asap.
  • Hi, I'm not sure whether you created the node by providing values for all mandatory or required properties. I've provided below the list of properties (sample) which I use to create a node and the polling happens. Try it and let us know if any issues. Also please check if the correct poller is assigned to the node.…
  • Hi, Please try this query and let us know. SELECT TOP 10 F.Application.Name, F.Port, AVG(F.TotalPackets) as Average, MAX(F.TotalPackets) as Peak FROM Orion.NetFlow.flows F WHERE F.IngressInterface.InterfaceID in (295, 294) AND minutediff(F.ObservationTimestamp, GetDate()) < 15 AND F.PORT <> 0 GROUP BY F.Application.Name,…
  • Hello, Adding to Jan To set the credentials for NCM, * For adding credentials for already added node, use “UpdateSelectedNodeColumns”verb and provide values for Username, Password, EnableLevel, EnablePassword,… * You can also create global connection profile using “AddConnectionProfile” and update ConnectionProfile…
  • Hi, Uri of NodesCustomProperties will have "/CustomProperties" (like swis://yourserver/Orion/Orion.Nodes/NodeID=1078/CustomProperties) You are updating on swis://yourserver/Orion/Orion.Nodes/NodeID=1078, which is the node uri. That's the reason update is not working. When you update node custom properties, append the node…
  • Hi, I understand that your request is to use c# for invoking a verb instead of powershell. Correct me if I'm wrong. If that is what you want, you can find the sample for the same in @"C:\Program Files (x86)\SolarWinds\Orion SDK\Samples\CSClient". You can find how to invoke a verb and how to provide the parameters for the…
  • Hi, There is a settings in UDT to limit the ports to be monitored. Settings -> UDT Settings -> Advanced Settings -> Monitored Port Types. If this does not solve your problem, please provide more details on the issue like the products you have installed, whether only UDT import fails or the entire discovery via sdk fails…
  • Hi, I've provided Powershell and REST example to mimic the list resources functionality in the below mentioned thread. Please have a look at it. Only constraint is that we cannot choose the resources that needs to be imported as we do that in the UI as it is not supported via SDK now. How do we programmatically discover…