

If either of these are defined no actual inventory object is returned, so it prints the inventory and exits. The show and show_detail flags can be used to help with the forming of filters by displaying what hosts the filtered inventory holds. Values got from _Logical_Locationįirewall, router, dc_switch, switch, wifi_controller

Ios, iosxe, nxos, wlc, asa (includes ftd), checkpoint

Words separate by special characters or whitespace need to be encased in brackets. For example, a 2nd filter will only be run against hosts that have already matched the 1st filter. Filters are sequential so the ordering is of importance. Runtime filters (flags) can be used in any combination to filter the inventory hosts that the tasks will be run against. The npm and device usernames specified in the inventory settings ( inv_settings.yml) can be overridden at runtime. main( "inv_settings.yml", True) Runtime flags The default inventory settings file ( inv_settings.yml) has the following SWQL values and resulting logic.įilter (WHERE): Gather device attributes for Cisco and Checkpoint devices ( Vendor) that are up ( 1).
#Orion solarwinds associate multiple ips to node password#
The preferable password method is to enter them at runtime when prompted, if set manually password prompts are disabled. Optional password for all devices, if not set prompted for at runtime Nornir inventory device usernames, same across all (runtime -du) List of groups and filters that decide the group membership Optional Orion password, if not set is prompted for at runtimeĭisables CA certificate validation warningsĭevice attributes added to the nornir inventory (can be empty list)įilter to define which Orion nodes to gather attributes from Username for orion, can be overridden at runtime using -nu IP or hostname of the Orion NPM server devices are gathered from The inventory settings comprises of three parent dictionaries ( npm, groups, device) holding the Orion and network device credentials as well as the SWQL parameters that filter the database. The string can contain multiple conditional elements, for example "Vendor = 'Cisco' and Nodes.Status = 1" matches all up Cisco devices

SWQL is a proprietary, read-only subset of SQL used by the inventory plugin to query the SolarWinds database for device information.
