-
Notifications
You must be signed in to change notification settings - Fork 89
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
Unable to get resources list of a node #49
Comments
Got same error any help would be much appreciated
Got the below error:
|
Also tried this
Output:
|
Did something break in the discovery API? I'm having problems with it now with a script that has worked for years, ever since moving to 2019.4. Solarwinds is giving me a really bad attitude via support, "I'm not going to troubleshoot your script" Where are you seeing this error log output? |
It seems to me that adding of discovered interfaces through the APIs node discovery is broken at least. import json
import requests
from requests.auth import HTTPBasicAuth
orion = 'your.orion.installation'
username = 'your_api_username'
password = 'your_api_password'
body = {'nodeId': 1234}
response = requests.post(
f'https://{orion}:17778/SolarWinds/InformationService/v3/Json/Invoke/Orion.NPM.Interfaces/DiscoverInterfacesOnNode',
auth=HTTPBasicAuth(username, password),
data=json.dumps(body),
headers={'Accept': 'application/json'},
verify=False).json()
{
'ifIndex': 0,
'Caption': 'string',
'ifType': 0,
'ifSubType': 0,
'InterfaceID': 0,
'Manageable': True,
'ifSpeed': 0,
'ifAdminStatus': 0,
'ifOperStatus': 0
} These interfaces can then be added to the node with a post call to f'https://{orion}:17778/SolarWinds/InformationService/v3/Json/Invoke/Orion.NPM.Interfaces/AddInterfacesOnNode' with the body body = {'nodeId': node_id, 'interfacesToAdd': interface_list, 'pollers': 'AddDefaultPollers'} |
Hello we have opened case with SLW about 2 months ago and they confirmed it's broken in 2019.4. apparently no hotfix planned for this issue and need to wait for next release |
@markatdxb any update from them? when I brought it up in a case they were pretty non-helpful like "Oh we don't support YOUR script that YOU wrote" and didn't admit that anything was wrong. meanwhile, this has turned this into a manual process to discover nodes. How is this supposed to be an enterprise level app when you have to manually add nodes with the gui? |
Hello ,apparently this issue should be fixed in the latest Orion version
but i haven't had a chance to test it yet.
…On Fri, 10 Jul 2020, 05:08 davidlowie, ***@***.***> wrote:
@markatdxb <https://github.com/markatdxb> any update from them? when I
brought it up in a case they were pretty non-helpful like "Oh we don't
support YOUR script that YOU wrote" and didn't admit that anything was
wrong.
meanwhile, this has turned this into a manual process to discover nodes.
How is this supposed to be an enterprise level app when you have to
manually add nodes with the gui?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#49 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKPVXJPDFJKZZOMQ5OYXQ5LR2Y5VFANCNFSM4LSAGEMA>
.
|
I installed 2020.2 on my test system but that system wasn’t having any issue with 2019.4
The difference is that it has only one polling engine.
Sent from my iPhone
On Jul 9, 2020, at 9:02 PM, markatdxb <[email protected]> wrote:
Hello ,apparently this issue should be fixed in the latest Orion version
but i haven't had a chance to test it yet.
On Fri, 10 Jul 2020, 05:08 davidlowie, ***@***.***> wrote:
@markatdxb <https://github.com/markatdxb> any update from them? when I
brought it up in a case they were pretty non-helpful like "Oh we don't
support YOUR script that YOU wrote" and didn't admit that anything was
wrong.
meanwhile, this has turned this into a manual process to discover nodes.
How is this supposed to be an enterprise level app when you have to
manually add nodes with the gui?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#49 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKPVXJPDFJKZZOMQ5OYXQ5LR2Y5VFANCNFSM4LSAGEMA>
.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https://github.com/solarwinds/orionsdk-python/issues/49*issuecomment-656469638__;Iw!!FRfS_D4!OjDUEK-RWyI4cP6gwAvLwGY6V8FO4Uf3aZzuAnIFgnhrRkQ_lvXkj9hXYk2V5CoaxmoH9w$>, or unsubscribe<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/APOMQJNGB52FULMUJMVJSZDR22HCFANCNFSM4LSAGEMA__;!!FRfS_D4!OjDUEK-RWyI4cP6gwAvLwGY6V8FO4Uf3aZzuAnIFgnhrRkQ_lvXkj9hXYk2V5Cqphy6Veg$>.
This email message and any attachments are confidential and intended for use by the addressee(s) only. If you are not the intended recipient, please notify me immediately by replying to this message, and destroy all copies of this message and any attachments. Thank you.
|
Hi all, Any update on this? Getting this error if the action is performed via SWQL studio: -<![CDATA[ Server stack trace: Exception rethrown at [0]: ]]> |
Hey @amat3ur85, what I've been seeing on THWACK is that this verb is losing popularity because it only works on SNMP and the discovery verbs are solid for all the protocols. |
Below is the script that I tried to get resources list of a node:
Error:
requests.exceptions.HTTPError: 400 Client Error: 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. for url: https://solarwinds_url:17778/SolarWinds/InformationService/v3/Json/Invoke/Orion.Nodes/ImportListResourcesResult
The text was updated successfully, but these errors were encountered: