Skip to content

Infoblox NetMRI Executor

Category: Asset Inventory and Network Management Script: infoblox_netmri.py Integration: REST API Faraday Plugin: Raw JSON Website: https://www.infoblox.com/products/netmri/

Description

Imports the managed network devices and the configuration/compliance issues of an Infoblox NetMRI appliance into Faraday. Each device becomes a host, and each NetMRI issue becomes a vulnerability prefixed with [NETWORK] NetMRI issue.

Prerequisites

  • An Infoblox NetMRI appliance reachable from the agent
  • A NetMRI user with API access to read devices and issues
  • A certificate trusted by the agent. For self-signed appliances, point REQUESTS_CA_BUNDLE to the appliance CA bundle.

Configuration

Environment Variables (Setup)

Variable Required Description
NETMRI_HOST Yes NetMRI hostname or URL (e.g., netmri.example.com). https:// is added when missing.
NETMRI_USER Yes NetMRI user name
NETMRI_PAGES No Maximum number of pages (100 records each) to read per kind, from 1 to 50 (default: 5)
NETMRI_PASSWORD Yes NetMRI password

These variables are also accepted as execution arguments, so a single run can override them.

Execution Arguments

Parameter Type Mandatory Description
NETMRI_GROUP_ID string No ID of a NetMRI device group to import (default: all devices and issues)

YAML Configuration Example

executors:
  infoblox_netmri:
    repo_executor: infoblox_netmri.py
    max_size: 65536
    varenvs:
      NETMRI_HOST: "netmri.example.com"
      NETMRI_USER: "<netmri_user>"
      NETMRI_PASSWORD: "<netmri_password>"
    params:
      NETMRI_GROUP_ID:
        mandatory: false
        type: string
        base: string

How It Works

  1. Authenticates with HTTP Basic using NETMRI_USER and NETMRI_PASSWORD
  2. Reads the managed devices from /api/3/devices, 100 per page, restricted to NETMRI_GROUP_ID when set
  3. Reads the issues from /api/3/issues with the same paging and group filter
  4. Creates one host per device, using its management IP, name, MAC address and vendor/model/version as OS, plus an informational [NETWORK] vulnerability describing the device
  5. Creates one host with IP 0.0.0.0 per issue, with one vulnerability. NetMRI severity Error becomes high, Warning becomes medium and Info becomes info.

Notes

  • Issues are placed on hosts with IP 0.0.0.0 because NetMRI ties them to a device ID rather than an IP address. The device ID and the issue score are in the description.
  • Device vulnerabilities always have severity info, and all vulnerabilities are imported as open.
  • Reads at most NETMRI_PAGES pages of devices and of issues.
  • The shared agent parameters (AGENT_CONFIG_* tags and severity filters) are not applied by this executor.