SSH Server Version Example
This example demonstrates how to create a dynamic attribute based on an SSH server configuration. The rule will extract if the SSH version and set a dynamic attribute.
SSH Server Version Configuration
---
ipfabric:
base_url: null # Recommended to use Environment Variables
auth: null
timeout: 5
verify: true
snapshot_id: $last
dry_run: true
overwrite: true
update_snapshot: true
inventory:
filters:
- value: NL # Example Site Filter
operator: eq
column: siteName
report_columns:
- loginIp
rules:
- name: SSH Version
attribute: SSH_VERSION
value:
regex:
pattern: ip ssh version (\d)
group: 1
null_value: Unsupported
config: current
no_config_value: IPF Unsupported