cisco-log-to-json-parsing

Parse Cisco switch log outputs into structured JSON for inventory and topology.

Updated Feb 12, 2026
One-click install
npx skills add https://github.com/louiechiu137/SKILLS --skill cisco-log-to-json-parsing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cisco-log-to-json-parsing
Source: https://github.com/louiechiu137/SKILLS/tree/main/cisco-log-to-json-parsing
Command: npx skills add https://github.com/louiechiu137/SKILLS --skill cisco-log-to-json-parsing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Cisco switch log data is often verbose and unstructured. This Skill converts terminal outputs into clean, structured JSON representing devices, interfaces, CDP neighbors, and topology to speed up network discovery and documentation.

Core Features & Use Cases

  • Parses common Cisco show outputs (version, inventory, vlan brief, interface status/description, and cdp) into a cohesive data model for devices, interfaces, cdp_neighbors, ip_interfaces, trunks, port_channels, and sfp_modules.
  • Produces ready-to-consume JSON payloads: devices.json and topology.json suitable for network inventory, change planning, and topology mapping.
  • Use cases include network inventory, topology discovery, and migration documentation from raw CLI text across IOS, IOS-XE, NX-OS environments.

Quick Start

Provide a Cisco log file path to parse and run the parser to generate devices.json and topology.json.

Frequently Asked Questions about cisco-log-to-json-parsing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I parse Cisco switch logs into JSON for network inventory and topology mapping?

To parse Cisco switch logs into JSON, you can use a parser that processes terminal outputs from commands like show version, show inventory, and show cdp to generate structured devices.json and topology.json files for network discovery.

Can I convert show cdp and show vlan brief outputs across IOS, IOS-XE, and NX-OS platforms?

Yes, you can convert show cdp and show vlan brief outputs across IOS, IOS-XE, and NX-OS platforms. The parser applies specific rules to extract device data, VLANs, and CDP neighbors from these varied Cisco CLI environments.

What is the best way to extract interface status and CDP neighbor details from raw CLI text?

The best way to extract interface status and CDP neighbor details from raw CLI text is using a parsing tool that structures this data into cohesive JSON payloads, covering interfaces, trunks, port_channels, and sfp_modules.

Do I need external dependencies to parse Cisco terminal outputs into structured data models?

No, you do not need external dependencies to parse Cisco terminal outputs. The parsing logic for extracting device data and topology utilizes Python's standard library, requiring no additional package installations.

What data structures are generated when parsing Cisco show version and show inventory commands?

Parsing Cisco show version and show inventory commands generates ready-to-consume JSON payloads, specifically devices.json and topology.json, which model devices, interfaces, ip_interfaces, and sfp_modules for documentation.