By default, Asset Inventory polling is automatically enabled for nodes that meet Asset Inventory requirements that are added during Discovery. You can also enable Asset Inventory polling for individual nodes.
To enable Asset Inventory polling for a large group of nodes (for example, after adding required third-party software to nodes), you can either:
- Run Discovery again to "re-import" the nodes. This will not affect anything currently monitored, but Asset Inventory will be enabled on all nodes that meet requirements during the import process. See this article for details.
- Use SWIS verbs to turn Asset Inventory on and off across multiple nodes, as described next.
To avoid overloading polling engines, do not enable Asset Inventory across hundreds of agentless nodes in bulk. For nodes polled by Orion agents, that issue should not occur.
You can also use SolarWinds Information Service (SWIS) verbs to control Asset Inventory polling across multiple nodes:
SWIS is the data access layer that serves as an API for the Orion Platform. You can use the Orion SDK to interface with SWIS, which allows for higher-level operations than would be allowed directly in SQL. The SDK includes a SWQL Studio tool to validate queries and data. SolarWinds Query Language (SWQL —rhymes with "pickle") is a proprietary, read-only subset of SQL that you can use to query your Orion database.
Note the following details about the Orion SDK:
- For documentation, see github.com/solarwinds/OrionSDK/wiki.
New to the Orion SDK? Read Intro to API, SDK, & SWQL on THWACK, or watch Orion SDK 101: Intro to PowerShell and the Orion API.
- Use PowerShell to interact with the Orion SDK; v5.0 or later is recommended; click here for script samples.
- (Recommended) Back up your Orion database frequently.
The Orion SDK is a powerful tool that can impact Orion Platform data. Users should be well-versed in SQL queries with a background in programming. SolarWinds does not provide pre- or post-Sales support on SDK customizations, including code. Post questions in the SDK forum in THWACK instead. Experiment with the Orion SDK in a non-production instance of Orion. Do not run untested PowerShell scripts against a production instance.
To enable or disable Asset Inventory for multiple nodes with SWIS:
- Download the OrionSDK.msi installer from GitHub and run the setup wizard.
- Launch SWQL Studio from its default folder:
C:\Program Files (x86)\SolarWinds\Orion SDK\SWQL Studio
- Generate a list of node IDs, as shown in this example query:
SELECT CONCAT('<int>', NodeID, '</int>') AS col1
Click Ctrl + C to copy the list of node IDs.
In Object explorer tree, navigate to
Right-click the verb (for example,
EnablePollingForNodes) and click Invoke.
- When a new query pane opens, paste the node IDs, as shown here:
- Click Invoke to process the command.
If you receive errors, verify node IDs and make sure your account has permission to perform the action. You can also review the log file for the SWIS service, stored in this default location: