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_BUNDLEto 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¶
- Authenticates with HTTP Basic using
NETMRI_USERandNETMRI_PASSWORD - Reads the managed devices from
/api/3/devices, 100 per page, restricted toNETMRI_GROUP_IDwhen set - Reads the issues from
/api/3/issueswith the same paging and group filter - 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 - Creates one host with IP
0.0.0.0per issue, with one vulnerability. NetMRI severityErrorbecomes high,Warningbecomes medium andInfobecomes info.
Notes¶
- Issues are placed on hosts with IP
0.0.0.0because 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_PAGESpages of devices and of issues. - The shared agent parameters (
AGENT_CONFIG_*tags and severity filters) are not applied by this executor.