tdanner ✭✭✭✭✭

Comments

  • Sort of. The parameters to CreateReport (name, description, limitationCategory, title, subtitle, definition, isFavorite, username) match the properties of Orion.Report mostly. "isFavorite" is tracked by the Orion.ReportFavorites entity and "username" corresponds to the "Owner" property. So you can "export" a report by…
  • I just noticed that this question has been sitting unanswered for a long time. Sorry about that. If you are still in need of assistance, could you point me to this code for "swClassLib"? I can't tell just from the exception trace what the underlying error is.
  • Thanks!
  • Answer 1: the DiscoveredInterfaces table is populated when you run a regular Network Sonar discovery in the website, either interactive or scheduled. The DiscoverInterfacesOnNode verb does not populate this table - it just accumulates the interface info in memory and returns it to you. Answer 2: There's no configuration…
  • I added discovery to the java sample: https://github.com/solarwinds/OrionSDK/commit/e370abdf84c46c74457e69ae18cfd0ab48b0475b Don't be intimidated by the size of the diff - most of it is just model classes for various discovery configuration objects. The actual logic involved is small. This is a port of the powershell…
  • Syslog rules are stored in the database. All polling engines (including hot-standby) will get the same set of rules from the database. Trap rules work the same way. Since all polling engines will be accessing the same database, there is no need for you to take any extra steps to replicate this configuration. So I think…
  • After the "print('DONE')" line, add a line like this: print(results) So we can see what that string looks like. It should be a SWIS Uri, but maybe something went wrong.
  • No, the REST API only supports Basic authentication at this time. You can provide a Windows username and password via Basic authentication, but Integrated Windows Authentication is not supported. If you don't want to prompt for a password (understandable), then you have two options: 1. Use PowerShell. You can call into the…
  • I recommend you switch to using the Discovery API. It is more complicated, but you will have an easier time getting child objects like interfaces and volumes monitored correctly. Here's a PowerShell sample: OrionSDK/DiscoverSnmpV3Node.ps1 at master · solarwinds/OrionSDK · GitHub That sample is for SNMPv3 monitoring, but…
  • This query should list all of the recordings on agent #1 and agent #2. (I don't have a WPM environment handy to test it.) SELECT R.RecordingId, R.Name AS RecordingName, R.Transactions.AgentId, R.Transactions.Agent.Name AS AgentName FROM Orion.SEUM.Recording R WHERE R.Transactions.AgentId IN (1, 2)
  • C:\ProgramData\SolarWinds\InformationService\v3.0\Orion.InformationService.log
  • Where are you storing this RoomNumber attribute? UDT does not support custom attributes/properties on Ports.
    in UDT locator Comment by tdanner May 2018
  • According to IPAM 4.6 API · solarwinds/OrionSDK Wiki · GitHub, the valid values for the Status property of IPAM.IPNode are "Used", "Available", "Reserved", "Transient", and "Blocked". It's weird that when you query it you get a number but when you set it you have to use the name of the status, but that's what the docs say.
  • Permissions for the API are not managed separately from other permissions - if you have the right to do it through the UI, then you have the right to do it through the API. The roles for IPAM are described here: Roles and privileges - SolarWinds Worldwide, LLC. Help and Support I'm not an IPAM expert, but I think you need…
  • Here's a curl command line to set a custom property on a node: curl -u myusername:mypassword -k -H "Content-Type: application/json" -d '{"City":"Vienna"}' https://myservername:17778/SolarWinds/InformationService/v3/Json/swis://myservername/Orion/Orion.Nodes/NodeID=11/CustomProperties
  • Looks fine to me. You might want to put a TOP clause or a condition on the EventTime to avoid returning too many events.
  • If you are connecting Netcool directly to the Orion SQL database, then the Orion API is not involved.
  • What version were you upgrading from? The big NCM change in 7.3 is that NCM no longer has a separate database - NCM's data goes into the Orion database now. If you are deleting the Orion.Nodes entry, you shouldn't need to also call RemoveNode - that should be taken care of automatically. Other than that, things should…
  • At this time it is not possible to programmatically customize SAM application monitors, so you wouldn't be able to set the path of the file change monitor from your script. I don't think this will be possible as you describe it.
  • I'll add "more C# examples" to the list, but in general we have the most samples for PowerShell. If you need help translating something from one of those scripts to C#, I can help. When adding a node, you need to set the custom properies using a separate Update call once you have the new node's Uri.
  • The discovery API for Orion does support IP ranges, though not octet ranges for a subnet. I think your best bet will be to include 256 IP ranges in the discovery profile. I'll get the Discovery API documentation (Discovery · solarwinds/OrionSDK Wiki · GitHub​ ) updated to show how to specify IP ranges.
  • The alert becomes active when its trigger condition is met. It goes away when its reset condition is met. Sometimes an alert is defined such that the reset condition is the inverse of the trigger condition, which means that it will go away as soon as the trigger condition is no longer met. But if the reset condition is not…
  • Something like this should get you what you need. I'll give the example in powershell: Add-PSSnapin SwisSnapin $swis = Connect-Swis -Hostname yourorionserver # this will prompt you for credentials Get-SwisData $swis "SELECT n.IP_Address, n.Caption, p.Name, p.Speed, p.PortType FROM Orion.Nodes n JOIN Orion.UDT.Port p ON…
  • A couple of things: 1. There are some more properties that you need to set to make the website happy: set MachineType and VendorIcon to empty string (""). We have a fix for the product that takes care of setting these default values (as well as some other bookkeeping like the IPAddressGUID property), but it hasn't shipped…
  • There shouldn't be any extra steps required to work remotely. You can pull up the wsdl in a browser on the same computer where the java example fails? At this point, I'd probably use Wireshark or Fiddler to see what's actually happening when the java example is failing.
  • I recommend you just generate a new client from the 10.1 WSDL and use the non-generated part of SDK code as a guide. We are hoping to include a basic JDBC driver for SWIS in a future version of the SDK that should simplify this for Java users.
  • POST to https://server-name:17778/SolarWinds/InformationService/v3/Json/Query With this body: { "query": "SELECT Status, IP, MachineType, PercentLoss, CPULoad, MemoryUsed FROM Orion.Nodes WHERE Caption=@name", "parameters": { "name": "krishna123" } } Can you clarify what you mean by "app health, operational state, guest…
  • Custom property values will be null if nothing has ever been entered for that property on a given node. If something was entered and later deleted, they will be empty (''). To catch both cases, you can use the SQL isnull function. If your property called is Notes, then this query should do it: SELECT * FROM Nodes WHERE…
  • Try commenting that line out. Some versions of libwww-perl don't validate hostnames by default anyway. To test this, I used 64-bit ActiveState Perl 5.12 with requisite packages installed. I got the same error you did. After commenting out the ssl_opts line in the script, it worked correctly.
  • Either will work. Using Orion.Groups would make your intention more clear since we may create other kinds of containers in the future.