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

Discover Interfaces on node (powershell and curl)

$
0
0

I am running into an issue with trying to add interfaces on a node that I was successfully able to add by either powershell or curl.

 

For powershell I am running the command:

$discovered = Invoke-SwisVerb $swis Orion.NPM.Interfaces -verb DiscoverInterfacesOnNode 1647

 

Which returns the error:

Invoke-SwisVerb : The operation has timed out.

At C:\Data\Powershell\solarwinds_insert.ps1:68 char:15

+ ... iscovered = Invoke-SwisVerb $swis Orion.NPM.Interfaces DiscoverInterf ...

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

    + CategoryInfo          : InvalidOperation: (:) [Invoke-SwisVerb], FaultException`1

    + FullyQualifiedErrorId : SwisError,SwisPowerShell.InvokeSwisVerb

 

With CURL I am running the command:

curl -k -u yyyyyyy:xxxxxxx -k --tlsv1.0 -H "Content-Type: application/json" -X POST "https://<server>:17778/SolarWinds/InformationService/v3/Json/Invoke/Orion.NPM.Interfaces/DiscoverInterfacesOnNode" -d "["1647"]"

 

Which returns the error:

{"Message":"The operation has timed out.","ExceptionType":"System.TimeoutException","FullException":"System.TimeoutException: The operation has timed out.\u000d\u000a   at SolarWinds.InformationService.Verb.VerbExecutor.Invoke(Object hostInstance, Object[] parameters)\u000d\u000a   at SolarWinds.InformationService.Verb.VerbExecutorContext.Invoke()\u000d\u000a   at SolarWinds.InformationService.Core.InformationService.Invoke[T](String entity, String verb, Action`1 setupParameters, Func`2 extractReturnValue)"}

 

I have been able to push and pull lots of information, and manually discovering and adding the interfaces through the web GUI works fine.  The timeout occurs around 5 minutes for the curl and powershell commands which hopefully means there is a timeout adjustment which can be made.  Although discovering the interfaces on the web gui does not take nearly this long...

 

Will be very appreciative of any assistance.  Even the logs that I looked at did not show much, although I am not entirely sure I was looking at the correct logs.

 

Message was edited by: Jeff Drouet Fixed the wrong error output for the CURL version.


Viewing all articles
Browse latest Browse all 3719

Trending Articles



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