New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Listresource.ps1 Swis function is not working in SAM 2019.4 #223
Comments
Do you have multiple polling engines? The exact build number of that file is not particularly important, but you may be hitting a problem where the polling engine running that operation is just missing that file. |
We executed it from Standalone SAM instance,, No polling engine was installed |
Can you run the script and then retrieve the most recent entries from the SWIS log file on the Orion server? It should be at the following location in a default Orion installation: C:\ProgramData\SolarWinds\InformationService\v3.0\Orion.InformationService.log |
See also https://thwack.solarwinds.com/t5/Discussions/How-do-we-programmatically-discover-the-non-interface-properties/m-p/588742#M10352 for the related thread on Thwack. |
See also https://thwack.solarwinds.com/t5/Discussions/List-resources-volumes-for-agent-managed-nodes-via-SWIS-API/m-p/588745#M10354 for a separate discussion on Thwack of the same issue. |
Hi @danjagnow We checked it today, the error was different,: PS C:\SAMAgent\OrionSDK-master\Samples\PowerShell> $swis = Connect-Swis -Hostname IP -UserName Admin -Password **** .\ImportListResources.ps1 $swis 3 300
SWIS log information:2020-05-04 07:06:41,346 [11] ERROR SolarWinds.Orion.Core.Models.Discovery.TypeResolverProxy - SwisPowerShell (null) Cannot load type SolarWinds.APM.BlackBox.IIS.Common.Models.Discovery.IISDiscoveredInstance,SolarWinds.APM.BlackBox.IIS.Common Server stack trace: Exception rethrown at [0]: |
was this ever resolved? |
I have installed Orion.SDK and imported powerOrion,SwisPowerShell modules, But facing below issue, while executing.. "
.\ImportListResources.ps1 $swis 2 600
Creating schedule list resources job...
Waiting until job status will be 'ReadyForImport'...
Importing list resources...
Invoke-SwisVerb : Could not load file or assembly 'SolarWinds.Interfaces.Discovery.Strings, Version=3.5.0.638,
Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
At C:\SAM\New folder\OrionSDK-master\Samples\PowerShell\ImportListResources.ps1:72 char:17
Import of ListResources result for NodeId:2 finished with errors.
At C:\SAM\New folder\OrionSDK-master\Samples\PowerShell\ImportListResources.ps1:76 char:5
Problem is exactly at below function;
$importResult = Invoke-SwisVerb $swis "orion.nodes" "ImportListResourcesResult" @($jobId, $nodeId)
In SAM 2019.4.1 , Noticed that in Swis ,it is looking for version '3.5.0.638' ,while actually we have a updated version '3.5.0.652' in Orion application files
Application file: SolarWinds.Interfaces.Discovery.Strings.dll
Path :C:\Program Files (x86)\SolarWinds\Orion\Interfaces.Discovery
Current Version : 3.5.0.652
My environment have only SAM ,, Kindly requesting some help to overcome this
The text was updated successfully, but these errors were encountered: