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

How does one create a custom SDK query to show UDT device info and connections?

$
0
0

For starters, I have UDT, and it's working fine.  I can open it up and see which devices are attached to any given switch and switch port--that's great!

 

Next I want a pre-built SDK query to show which computers were attached to which ports on which switches, but I couldn't find one pre-built.

 

These separate canned queries seem to each contain parts of what I want--how do I combine them in SDK?

 

 

This one shows end devices, but not their switch ports:

SELECT IPAddress, HostName, VendorIcon, MACVendor, MACAddress, ConnectedTo, VLAN, NodeID, Description

FROM Orion.UDT.VLANDevice

 

This one’s interesting in that it shows device DNS entries and IP addresses:

SELECT FirstSeen, IPAddress, DNSName, ID, IPAddressID, DNSNameID, DetailsUrl

FROM Orion.UDT.DNSNameCurrent

 

I like this one for showing the switch/blade/port ID, and the MAC address of the device attached—it just needs the device name and switch name to be what we need, I think:

SELECT DetailsUrl, ConnectedTo, ConnectionType, ConnectionTypeName, HostName, IPAddress, MACAddress, MACVendor, MACVendorIcon, PortNumber, PortName, PortID, NodeID, VLAN

FROM Orion.UDT.AllEndpoints

 

Do you know how I can select items from the three queries above, and put them into a single query?

 

Or is there a pre-built SWQL query in SDK that already does what I want?

 

Yours,

 

Rick Schroeder


SDK verb to unmonitor aws cloud instance?

$
0
0

We have an issue where cloud instances are reverting to an unknown state instead of terminating- looking for a swis verb to call to accomplish the same result as going into the Choose Instances/VM's under cloud setting and choosing do not monitor for some nodes.

Node Resource Discovery Via JSON API

$
0
0

So the configuration seems to be properly set.

 

The community is being properly set and I get a completed discovery profile status but the polling and interface discovery isnt automatically working using the JSON api.

 

It will only work if I manually click in the UI to poll and list resources, then it will find everything.

 

CONFIG DATA

 

[{"Name": "app1.phx1",

   "EngineID": 1,

   "JobTimeoutSeconds": 3600,

   "SearchTimeoutMiliseconds": 2000,

   "SnmpTimeoutMiliseconds": 2000,

   "SnmpRetries": 3,

   "RepeatIntervalMiliseconds": 1500,

   "SnmpPort": 161,

   "HopCount": 0,

   "PreferredSnmpVersion": "SNMP2c",

   "DisableIcmp": "false",

   "AllowDuplicateNodes": "false",

   "IsAutoImport": "true",

   "IsHidden": "true",

   "PluginConfigurations": [  

       {"PluginConfigurationItem":"<?xml version='1.0' encoding='utf-16'?><PluginItems><knownTypes><ArrayOfstring xmlns:i='http://www.w3.org/2001/XMLSchema-instance' xmlns='http://schemas.microsoft.com/2003/10/Serialization/Arrays'><string>SolarWinds.Orion.Core.Models.Discovery.CoreDiscoveryPluginConfiguration,SolarWinds.Orion.Core.Models</string></ArrayOfstring></knownTypes><pluginItem><ArrayOfDiscoveryPluginConfigurationBase xmlns:i='http://www.w3.org/2001/XMLSchema-instance' xmlns='http://schemas.datacontract.org/2004/07/SolarWinds.Orion.Core.Models.Discovery'><DiscoveryPluginConfigurationBase xmlns:d2p1='http://schemas.solarwinds.com/2008/Orion' i:type='d2p1:CoreDiscoveryPluginConfiguration'><d2p1:ActiveDirectoryList /><d2p1:AddressRange /><d2p1:AgentsAddresses xmlns:d3p1='http://schemas.microsoft.com/2003/10/Serialization/Arrays' /><d2p1:AutoImportVolumeTypes xmlns:d3p1='http://schemas.datacontract.org/2004/07/SolarWinds.Common.Snmp' i:nil='true' /><d2p1:BulkList xmlns:d3p1='http://schemas.microsoft.com/2003/10/Serialization/Arrays'><d3p1:string>IP_HIDDEN</d3p1:string></d2p1:BulkList><d2p1:Credentials><d2p1:credentials><knownTypes><ArrayOfstring xmlns:i='http://www.w3.org/2001/XMLSchema-instance' xmlns='http://schemas.microsoft.com/2003/10/Serialization/Arrays' /></knownTypes><pluginItem><d2p1:ArrayOfCredential xmlns:i='http://www.w3.org/2001/XMLSchema-instance' /></pluginItem></d2p1:credentials></d2p1:Credentials><d2p1:DiscoverAgentNodes>false</d2p1:DiscoverAgentNodes><d2p1:PreferredPollingMethod>SNMP</d2p1:PreferredPollingMethod><d2p1:SharedCredentials xmlns:d3p1='http://schemas.microsoft.com/2003/10/Serialization/Arrays'><d3p1:KeyValueOfintint><d3p1:Key>1</d3p1:Key><d3p1:Value>3</d3p1:Value></d3p1:KeyValueOfintint></d2p1:SharedCredentials><d2p1:SubnetList /><d2p1:WMICredentials /><d2p1:WmiRetries>2</d2p1:WmiRetries><d2p1:WmiRetryInterval>PT1S</d2p1:WmiRetryInterval></DiscoveryPluginConfigurationBase></ArrayOfDiscoveryPluginConfigurationBase></pluginItem></PluginItems>"},

       {"PluginConfigurationItem":"<?xml version='1.0' encoding='utf-16'?><PluginItems><knownTypes><ArrayOfstring xmlns:i='http://www.w3.org/2001/XMLSchema-instance' xmlns='http://schemas.microsoft.com/2003/10/Serialization/Arrays'><string>SolarWinds.Interfaces.Common.Models.Discovery.InterfacesDiscoveryPluginConfiguration,SolarWinds.Interfaces.Common</string></ArrayOfstring></knownTypes><pluginItem><ArrayOfDiscoveryPluginConfigurationBase xmlns:i='http://www.w3.org/2001/XMLSchema-instance' xmlns='http://schemas.datacontract.org/2004/07/SolarWinds.Orion.Core.Models.Discovery'><DiscoveryPluginConfigurationBase xmlns:d2p1='http://schemas.solarwinds.com/2008/Interfaces' i:type='d2p1:InterfacesDiscoveryPluginConfiguration'><d2p1:AutoImportExpressionFilter xmlns:d3p1='http://schemas.datacontract.org/2004/07/' i:nil='true' /><d2p1:AutoImportStatus xmlns:d3p1='http://schemas.datacontract.org/2004/07/SolarWinds.Interfaces.Common.Enums'><d3p1:IfAutoImportStatus>Up</d3p1:IfAutoImportStatus><d3p1:IfAutoImportStatus>Down</d3p1:IfAutoImportStatus><d3p1:IfAutoImportStatus>Shutdown</d3p1:IfAutoImportStatus></d2p1:AutoImportStatus><d2p1:AutoImportVirtualTypes xmlns:d3p1='http://schemas.datacontract.org/2004/07/System'><d3p1:boolean>true</d3p1:boolean><d3p1:boolean>false</d3p1:boolean></d2p1:AutoImportVirtualTypes><d2p1:AutoImportVlanPortTypes xmlns:d3p1='http://schemas.datacontract.org/2004/07/SolarWinds.Orion.Core.Models.Enums'><d3p1:VlanPortType>Trunk</d3p1:VlanPortType><d3p1:VlanPortType>Access</d3p1:VlanPortType><d3p1:VlanPortType>Unknown</d3p1:VlanPortType></d2p1:AutoImportVlanPortTypes><d2p1:DiscoverVLANs>false</d2p1:DiscoverVLANs></DiscoveryPluginConfigurationBase></ArrayOfDiscoveryPluginConfigurationBase></pluginItem></PluginItems>"}    

   ]

  }]

 

This works fine.

 

This is the details of the Node after creation.

 

NODE DATA

 

Array

(

    [NodeID] => ID_HIDDEN

    [ObjectSubType] => SNMP

    [SNMPVersion] => 2

    [Community] => publ1c15

    [IP] => IP_HIDDEN

    [IPAddressType] => IPv4

    [Caption] => UT_app1.phx1_11-14_07:42

    [NodeDescription] => app1.phx1

    [Description] =>

    [Status] => 1

    [SystemUpTime] =>

    [PercentMemoryAvailable] =>

    [MemoryAvailable] =>

    [MemoryUsed] => -2

    [TotalMemory] =>

    [CPULoad] => -2

    [EngineID] => 1

    [UnManaged] =>

    [UnManageFrom] => 1899-12-30T00:00:00.0000000Z

    [UnManageUntil] => 1899-12-30T00:00:00.0000000Z

    [Uri] => NODE_URL

    [Division] => PremierWest

    [Delimiter] => |

    [VIP] => No

    [SystemsGrouping] => SystemsGrouping

    [NetcoolNotify] => Yes

    [SmartWan] => Yes

    [CustomerName] => TELE : PHX1

    [CustomerID] => 30848

)

 

It just simply wont poll and detect resources automatically only manually. Can you let me know what I need to do.

 

It wont detect the machine type, memory, all those things automatically.

 

Thank you.

Can't query Status from Orion.F5.VirtualServers

$
0
0

I'm trying to get an F5 virtualserver status through API. NPM 12.1

 

Here is the query I'm passing

GET /SolarWinds/InformationService/v3/Json/Query?query=SELECT+NodeID+,+Name+,+EnabledState+,+Description+,+Status+,+DisplayName+FROM+orion.f5.virtualservers+where+name+like+'%257001' HTTP/1.1

 

Here's the error

{"Message":"Cannot resolve property Status","ExceptionType":"SolarWinds.Data.Query.ParserException","FullException":"SolarWinds.Data.Query.ParserException: Cannot resolve property Status\u000d\u000a   at SolarWinds.Data.Query.Processor.SemanticChecker.HandleNonQualifiedPropertyName(EntityExpression entityExpression)\u000d\u000a   at SolarWinds.Data.Query.Swql.ParseTreeDuplicator.Visit(ColumnExpression column)\u000d\u000a   at SolarWinds.Data.Query.Processor.SemanticChecker.Visit(ColumnExpression column)\u000d\u000a   at SolarWinds.Data.Query.Swql.ParseTreeDuplicatorNoState.Visit(SelectClause select)\u000d\u000a   at SolarWinds.Data.Query.Processor.SemanticChecker.Visit(SelectStatement statement)\u000d\u000a   at SolarWinds.Data.Query.Processor.SemanticChecker.Process(SelectStatement statement, PreProcessorState state, String replaceStatementTagWith)\u000d\u000a   at SolarWinds.Data.Query.Processor.SemanticChecker.Process(SelectStatement statement, PreProcessorState state)\u000d\u000a   at SolarWinds.Data.Quer* Connection #0 to host [blank] left intact

* Closing connection #0

y.Processor.PreProcessor.Process(SelectStatement selectStatement, PreProcessorState& preProcessorState)\u000d\u000a   at SolarWinds.Data.Query.Engine.QueryProcessor.ProcessInternal(String query, IQueryExecutionContext context)\u000d\u000a   at SolarWinds.InformationService.Core.QueryPlanCache.GetQueryPlan(String query, String username, Boolean federationEnabled, Func`1 buildQueryPlan)\u000d\u000a   at SolarWinds.InformationService.Core.InformationService.RunQuery(String query, IDictionary`2 parameters, IDataSerializer serializer)"}

 

If I take out Status, I get the good query result.

It seems like the schema doesn't match from SolarWinds Information Service v3.0 Schema Documentation Index

The Orion.F5.Pools table throws an error at me and I can't query anything from it. The Orion.F5.VirtualServers has partial, as well as Orion.F5.Device

 

I don't have access to the database directly to analyze.

Custom SWQL resource

403 with rest api call

$
0
0

I;ve seen a few other people with this issue, and some where resolved, but nowhere is a solution to be found.

 

The code:

 

$VLANNAAM = "Somevlan"

$cred = get-credential

$invoked = Invoke-RestMethod -Uri ("https://"+$Hostname+":17778/SolarWinds/InformationService/v3/Json/Query?query=SELECT GroupId,VLAN_Naam FROM IPAM.GroupNodeAttr WHERE (VLAN_Naam='$VLANNAAM')") -method Get -credential $cred

 

For the credentials I've used a windows account, local account, database user.

Nothing works, Always the 403 error.

 

2015-08-27 07_33_58-Pool 06 - ICT Services Windows 8 Werkplek.png

Node Resource Discovery Via JSON API

$
0
0

So the configuration seems to be properly set.

 

The community is being properly set and I get a completed discovery profile status but the polling and interface discovery isnt automatically working using the JSON api.

 

It will only work if I manually click in the UI to poll and list resources, then it will find everything.

 

CONFIG DATA

 

[{"Name": "app1.phx1",

   "EngineID": 1,

   "JobTimeoutSeconds": 3600,

   "SearchTimeoutMiliseconds": 2000,

   "SnmpTimeoutMiliseconds": 2000,

   "SnmpRetries": 3,

   "RepeatIntervalMiliseconds": 1500,

   "SnmpPort": 161,

   "HopCount": 0,

   "PreferredSnmpVersion": "SNMP2c",

   "DisableIcmp": "false",

   "AllowDuplicateNodes": "false",

   "IsAutoImport": "true",

   "IsHidden": "true",

   "PluginConfigurations": [  

       {"PluginConfigurationItem":"<?xml version='1.0' encoding='utf-16'?><PluginItems><knownTypes><ArrayOfstring xmlns:i='http://www.w3.org/2001/XMLSchema-instance' xmlns='http://schemas.microsoft.com/2003/10/Serialization/Arrays'><string>SolarWinds.Orion.Core.Models.Discovery.CoreDiscoveryPluginConfiguration,SolarWinds.Orion.Core.Models</string></ArrayOfstring></knownTypes><pluginItem><ArrayOfDiscoveryPluginConfigurationBase xmlns:i='http://www.w3.org/2001/XMLSchema-instance' xmlns='http://schemas.datacontract.org/2004/07/SolarWinds.Orion.Core.Models.Discovery'><DiscoveryPluginConfigurationBase xmlns:d2p1='http://schemas.solarwinds.com/2008/Orion' i:type='d2p1:CoreDiscoveryPluginConfiguration'><d2p1:ActiveDirectoryList /><d2p1:AddressRange /><d2p1:AgentsAddresses xmlns:d3p1='http://schemas.microsoft.com/2003/10/Serialization/Arrays' /><d2p1:AutoImportVolumeTypes xmlns:d3p1='http://schemas.datacontract.org/2004/07/SolarWinds.Common.Snmp' i:nil='true' /><d2p1:BulkList xmlns:d3p1='http://schemas.microsoft.com/2003/10/Serialization/Arrays'><d3p1:string>IP_HIDDEN</d3p1:string></d2p1:BulkList><d2p1:Credentials><d2p1:credentials><knownTypes><ArrayOfstring xmlns:i='http://www.w3.org/2001/XMLSchema-instance' xmlns='http://schemas.microsoft.com/2003/10/Serialization/Arrays' /></knownTypes><pluginItem><d2p1:ArrayOfCredential xmlns:i='http://www.w3.org/2001/XMLSchema-instance' /></pluginItem></d2p1:credentials></d2p1:Credentials><d2p1:DiscoverAgentNodes>false</d2p1:DiscoverAgentNodes><d2p1:PreferredPollingMethod>SNMP</d2p1:PreferredPollingMethod><d2p1:SharedCredentials xmlns:d3p1='http://schemas.microsoft.com/2003/10/Serialization/Arrays'><d3p1:KeyValueOfintint><d3p1:Key>1</d3p1:Key><d3p1:Value>3</d3p1:Value></d3p1:KeyValueOfintint></d2p1:SharedCredentials><d2p1:SubnetList /><d2p1:WMICredentials /><d2p1:WmiRetries>2</d2p1:WmiRetries><d2p1:WmiRetryInterval>PT1S</d2p1:WmiRetryInterval></DiscoveryPluginConfigurationBase></ArrayOfDiscoveryPluginConfigurationBase></pluginItem></PluginItems>"},

       {"PluginConfigurationItem":"<?xml version='1.0' encoding='utf-16'?><PluginItems><knownTypes><ArrayOfstring xmlns:i='http://www.w3.org/2001/XMLSchema-instance' xmlns='http://schemas.microsoft.com/2003/10/Serialization/Arrays'><string>SolarWinds.Interfaces.Common.Models.Discovery.InterfacesDiscoveryPluginConfiguration,SolarWinds.Interfaces.Common</string></ArrayOfstring></knownTypes><pluginItem><ArrayOfDiscoveryPluginConfigurationBase xmlns:i='http://www.w3.org/2001/XMLSchema-instance' xmlns='http://schemas.datacontract.org/2004/07/SolarWinds.Orion.Core.Models.Discovery'><DiscoveryPluginConfigurationBase xmlns:d2p1='http://schemas.solarwinds.com/2008/Interfaces' i:type='d2p1:InterfacesDiscoveryPluginConfiguration'><d2p1:AutoImportExpressionFilter xmlns:d3p1='http://schemas.datacontract.org/2004/07/' i:nil='true' /><d2p1:AutoImportStatus xmlns:d3p1='http://schemas.datacontract.org/2004/07/SolarWinds.Interfaces.Common.Enums'><d3p1:IfAutoImportStatus>Up</d3p1:IfAutoImportStatus><d3p1:IfAutoImportStatus>Down</d3p1:IfAutoImportStatus><d3p1:IfAutoImportStatus>Shutdown</d3p1:IfAutoImportStatus></d2p1:AutoImportStatus><d2p1:AutoImportVirtualTypes xmlns:d3p1='http://schemas.datacontract.org/2004/07/System'><d3p1:boolean>true</d3p1:boolean><d3p1:boolean>false</d3p1:boolean></d2p1:AutoImportVirtualTypes><d2p1:AutoImportVlanPortTypes xmlns:d3p1='http://schemas.datacontract.org/2004/07/SolarWinds.Orion.Core.Models.Enums'><d3p1:VlanPortType>Trunk</d3p1:VlanPortType><d3p1:VlanPortType>Access</d3p1:VlanPortType><d3p1:VlanPortType>Unknown</d3p1:VlanPortType></d2p1:AutoImportVlanPortTypes><d2p1:DiscoverVLANs>false</d2p1:DiscoverVLANs></DiscoveryPluginConfigurationBase></ArrayOfDiscoveryPluginConfigurationBase></pluginItem></PluginItems>"}    

   ]

  }]

 

This works fine.

 

This is the details of the Node after creation.

 

NODE DATA

 

Array

(

    [NodeID] => ID_HIDDEN

    [ObjectSubType] => SNMP

    [SNMPVersion] => 2

    [Community] => publ1c15

    [IP] => IP_HIDDEN

    [IPAddressType] => IPv4

    [Caption] => UT_app1.phx1_11-14_07:42

    [NodeDescription] => app1.phx1

    [Description] =>

    [Status] => 1

    [SystemUpTime] =>

    [PercentMemoryAvailable] =>

    [MemoryAvailable] =>

    [MemoryUsed] => -2

    [TotalMemory] =>

    [CPULoad] => -2

    [EngineID] => 1

    [UnManaged] =>

    [UnManageFrom] => 1899-12-30T00:00:00.0000000Z

    [UnManageUntil] => 1899-12-30T00:00:00.0000000Z

    [Uri] => NODE_URL

    [Division] => PremierWest

    [Delimiter] => |

    [VIP] => No

    [SystemsGrouping] => SystemsGrouping

    [NetcoolNotify] => Yes

    [SmartWan] => Yes

    [CustomerName] => TELE : PHX1

    [CustomerID] => 30848

)

 

It just simply wont poll and detect resources automatically only manually. Can you let me know what I need to do.

 

It wont detect the machine type, memory, all those things automatically.

 

Thank you.

Queries regarding Orion SDK

$
0
0

Hi,

 

I am a newbie to Orion SDK . we actually want to implement/deploy SDK in our production environment. I had some queries..maybe some one can help me out..:

- we are running NPM v10.3 and soon gonna be using Orion FoE(Failover engine),I hope SDK's latest version is compatible with it.

- we have a inhouse developed CMDB, can SDK connect to that ?

- also can you please redirect me to some release note or installation guide, to better understand Orion SDK

 

Many thanks in advance.

 

Regards,

mohit


Receiving 403 Forbidden When Using REST API In C#

$
0
0

Receiving 403 Forbidden When Using REST API In C#

 

I was referred to the following C# example of using REST APIs Sample code: OrionSDK/Program.cs at master · solarwinds/OrionSDK · GitHub

 

This looked very promising and I have attempted to implement it for my process. However, all requests are failing with a 403 Forbidden error.

 

I have verified if I used invalid credentials I get a 401 unauthorized error so it appears to be authenticating my request, but I can't get results for a simple query operation.

 

I am basically using the code from the example but I am only calling the query action with the following simple query string and no arguments:

conststring query = @"SELECT nodeid, caption FROM Orion.Nodes";

 

I have output the JSON string created before it is passed to the request and it looks like this:

{"parameters":null,"query":"SELECT nodeid, caption FROM Orion.Nodes"}

 

Is there something wrong with the JSON or my query request?

Continual Data retrieval through the API

$
0
0

I currently am at a company that is standing up EM7 for non-physical layer devices (Servers, OSes, some applications).  They use SolarWinds for the physical layer items (routers, switches, ect).  There are no current plans to retire SolarWinds. 

 

What I have been tasked to do is to create a bridge between the two to essentially copy all of the polled data from solarwinds into em7 without having em7 poll those devices.   My question here begins with where might I start to begin tackling this?

Can't query Status from Orion.F5.VirtualServers

$
0
0

I'm trying to get an F5 virtualserver status through API. NPM 12.1

 

Here is the query I'm passing

GET /SolarWinds/InformationService/v3/Json/Query?query=SELECT+NodeID+,+Name+,+EnabledState+,+Description+,+Status+,+DisplayName+FROM+orion.f5.virtualservers+where+name+like+'%257001' HTTP/1.1

 

Here's the error

{"Message":"Cannot resolve property Status","ExceptionType":"SolarWinds.Data.Query.ParserException","FullException":"SolarWinds.Data.Query.ParserException: Cannot resolve property Status\u000d\u000a   at SolarWinds.Data.Query.Processor.SemanticChecker.HandleNonQualifiedPropertyName(EntityExpression entityExpression)\u000d\u000a   at SolarWinds.Data.Query.Swql.ParseTreeDuplicator.Visit(ColumnExpression column)\u000d\u000a   at SolarWinds.Data.Query.Processor.SemanticChecker.Visit(ColumnExpression column)\u000d\u000a   at SolarWinds.Data.Query.Swql.ParseTreeDuplicatorNoState.Visit(SelectClause select)\u000d\u000a   at SolarWinds.Data.Query.Processor.SemanticChecker.Visit(SelectStatement statement)\u000d\u000a   at SolarWinds.Data.Query.Processor.SemanticChecker.Process(SelectStatement statement, PreProcessorState state, String replaceStatementTagWith)\u000d\u000a   at SolarWinds.Data.Query.Processor.SemanticChecker.Process(SelectStatement statement, PreProcessorState state)\u000d\u000a   at SolarWinds.Data.Quer* Connection #0 to host [blank] left intact

* Closing connection #0

y.Processor.PreProcessor.Process(SelectStatement selectStatement, PreProcessorState& preProcessorState)\u000d\u000a   at SolarWinds.Data.Query.Engine.QueryProcessor.ProcessInternal(String query, IQueryExecutionContext context)\u000d\u000a   at SolarWinds.InformationService.Core.QueryPlanCache.GetQueryPlan(String query, String username, Boolean federationEnabled, Func`1 buildQueryPlan)\u000d\u000a   at SolarWinds.InformationService.Core.InformationService.RunQuery(String query, IDictionary`2 parameters, IDataSerializer serializer)"}

 

If I take out Status, I get the good query result.

It seems like the schema doesn't match from SolarWinds Information Service v3.0 Schema Documentation Index

The Orion.F5.Pools table throws an error at me and I can't query anything from it. The Orion.F5.VirtualServers has partial, as well as Orion.F5.Device

 

I don't have access to the database directly to analyze.

Unable to query node for NCM properties

$
0
0

I'm able to query the SWIS API for NPM properties, but not for NCM.  This works to pull the custom properties for a node:

 

https://orion:17778/SolarWinds/InformationService/v3/Json/swis://orion/Orion/Orion.Nodes/NodeID=1/CustomProperties

 

Based on the SWIS schema, I think I should be able to pull NCM node properties with this method:

 

https://orion:17778/SolarWinds/InformationService/v3/Json/swis://orion/Orion/Orion.Nodes/NodeID=1/NodeProperties

 

But I'm getting this error in return:

 

{

  "Message": "Invalid key properties specified for entity NCM.NodeProperties.\r\nParameter name: filter",

  "ExceptionType": "System.ArgumentException",

  "FullException": "System.ArgumentException: Invalid key properties specified for entity NCM.NodeProperties.\r\nParameter name: filter\r\n   at SolarWinds.InformationService.Core.SwisUriResolver.ValidateAndResolveFilter(IEntityType entity, SwisUriFilter filter, Boolean isHosted)\r\n   at SolarWinds.InformationService.Core.SwisUriResolver.ValidateAndResolveUri(SwisUri uri, IQueryExecutionContext context)\r\n   at SolarWinds.InformationService.Core.CrudProcessor.Read[T](IServiceHost serviceHost, SwisUri uri, IQueryExecutionContext context)\r\n   at SolarWinds.InformationService.Core.InformationService.Read(String uri)"

}

 

Any ideas?  Thanks!

Queries regarding Orion SDK

$
0
0

Hi,

 

I am a newbie to Orion SDK . we actually want to implement/deploy SDK in our production environment. I had some queries..maybe some one can help me out..:

- we are running NPM v10.3 and soon gonna be using Orion FoE(Failover engine),I hope SDK's latest version is compatible with it.

- we have a inhouse developed CMDB, can SDK connect to that ?

- also can you please redirect me to some release note or installation guide, to better understand Orion SDK

 

Many thanks in advance.

 

Regards,

mohit

SolarWinds Orion API & SDK: Authenticating with the application API key

$
0
0

Is there a way to authenticate a call with an  ApiKey or UserName/ApiKey method?

PowerShell or Python ?

$
0
0

Ive taken a few python classes at school a while back and while I enjoyed it I never used it too much in the real world. From doing research and reading various posts I seem to have this feeling that knowing powershell vs python would put me in a much better position to excel as a SolarWinds admin.  Curious on Tdanners and others thoughts. 


How to add only UP interfaces using Python/Orion sdk

$
0
0

I can add the nodes and interfaces using the Python script. I used the DiscoverInterfaceOnNode to add the new interfaces and specify the specific interfaces as well. Up to this point everything is good.

 

The issue is it will add that type of interfaces(E.G Gig,eth etc) either that is UP or Down. My goal is to add only UP interfaces. Can someone please put me in a right direction or share any example to help me fix this.

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#

IPAM Database

$
0
0

Hello everyone,

 

I am an intern helping my network engineering team to automate things in SolarWinds using Python scripts. My last project concerns extracting/updating information for every subnet. We use different servers for testing and production. I created a script extracting information from the database using the tables IPAM.GroupReport and IPAM.GroupNodeAttr. Afterwards, I run the same script in the Orion webserver. Unfortunately, it failed. I realised that I am not able to access the table IPAM.GroupNodeAttr. So, I opened the database manager to look ta the tables, and I noticed that the manager displays different names for the same tables.
Here are my questions.
Do you know why there are different table names between these servers?

Even though the database manager displays different table names, I am able to access some tables that are not being shown. I know these table names from the script I created for the testing server (database manager in testing server displays different table names).

Even though I can extract information using the database manager, I am not able to extract these information using a Python script. It is like the tables are not there. Has anyone faced it before?

 

Thank you in advance,

Invoke-SwisVerb - Access Denied

$
0
0

I was advised by SolarWinds support to post a question on the community forms.  I am trying to run the below command and receive access is denied errors.  The account is a full admin on the server and in the IPAM application.  Any help would be greatly appreciated.

 

'Invoke-SwisVerb $swis IPAM.SubnetManagement GetFirstAvailableIp @("10.99.99.0", "24")'. 

 

PowerShell or Python ?

$
0
0

Ive taken a few python classes at school a while back and while I enjoyed it I never used it too much in the real world. From doing research and reading various posts I seem to have this feeling that knowing powershell vs python would put me in a much better position to excel as a SolarWinds admin.  Curious on Tdanners and others thoughts. 

Viewing all 3719 articles
Browse latest View live


Latest Images

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