Skip to content

Instantly share code, notes, and snippets.

@freewood
freewood / sas2ircu_json.py
Last active December 7, 2021 11:54 — forked from nijave/sas_devices.py
Convert sas2ircu output to json for easier use in other tools
#!/usr/bin/env python3
"""
Usage:
./sas_devices.py - json output
./sas_devices.py --summary - human output with locations and serial
Warning: sas2ircu invocations have occassionally caused kernel
panics on previous FreeBSD installations
Related https://redmine.ixsystems.com/issues/14859