Skip to content

Instantly share code, notes, and snippets.

View remingtonc's full-sized avatar
🦾

Remington Campbell remingtonc

🦾
  • RM4 LLC
  • Seattle, WA
  • 04:30 (UTC -08:00)
View GitHub Profile
@remingtonc
remingtonc / snmp_json.py
Last active November 16, 2019 00:09
Download MIBs from Cisco FTP server and parse into JSON using pysmi
#!/usr/bin/env python3
import re
import os
import sys
import logging
from io import StringIO
from ftplib import FTP
from pysmi.reader import FileReader
from pysmi.searcher import AnyFileSearcher, StubSearcher
from pysmi.writer import FileWriter