beankasce.blogg.se

Orion solarwinds associate multiple ips to node
Orion solarwinds associate multiple ips to node








orion solarwinds associate multiple ips to node

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

orion solarwinds associate multiple ips to node

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

orion solarwinds associate multiple ips to node

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

  • WHERE: A mandatory string used to filter the Nodes returned by the query.
  • Can SELECT based any pre-defined schema or custom property (must start with Nodes.CustomProperties) Caption, IPAddress and MachineType are explicit options set in the background with Caption used as the nornir inventory host, IPAddress the hostname and MachineType defining group membership.
  • SELECT: An optional list of the device attributes to pull from Orion and add as host data dictionaries.
  • FROM: Set to 'Orion.Nodes' so SELECT attributes 'Caption', 'IPAddress' and 'MachineType' are always usable.
  • It uses standard SQL query logic of SELECT … FROM … WHERE … with SELECT and WHERE set in the inventory settings ( npm.select and npm.where) and FROM being an arbitrary value.

    orion solarwinds associate multiple ips to node

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

  • The nornir inventory can be filtered at runtime using flags (arguments).
  • Provides customisable SQL query ( WHERE) and device attribute collection ( SELECT).
  • Based on NPM MachineType creates OS-type nornir groups with their associated nornir platform.
  • NPM device attributes ( SELECT) are stored in the nornir data dictionary as host_vars.
  • Gathers NPM devices filtering them based on SQL query logic ( FROM and WHERE).
  • Uses the orionsdk python package to build a nornir inventory from Solarwinds Orion NPM.










    Orion solarwinds associate multiple ips to node