Search Configs
search_configsSearch network device configurations for a regex pattern and return matching lines with line numbers. Identify devices with telnet enabled, VLANs, or any config setting across all backups.
Instructions
Search the latest configurations of all nodes for a pattern.
oxidized-web first finds the nodes whose configuration matches, then those configurations are fetched to return the matching lines with line numbers. Use this to answer questions such as "which devices still have telnet enabled" or "where is VLAN 42 configured".
The pattern must be valid in both Ruby (oxidized-web) and Python regular expressions - stick to common syntax. Lines are matched one at a time, so patterns spanning several lines find nodes but no lines.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | No | Only search nodes in this group - exact, case-sensitive name as shown by list_nodes; 'default' selects nodes without a group | |
| literal | No | Treat the pattern as literal text | |
| pattern | Yes | Regular expression (or literal text with literal=true) to search for, e.g. 'snmp-server community' | |
| max_nodes | No | Maximum matching nodes whose configurations are searched (nodes without a stored configuration are skipped and not counted) | |
| max_matches | No | Maximum matching lines to return in total | |
| context_lines | No | Lines of context to include before and after each match | |
| case_sensitive | No | Match case-sensitively |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||