Skip to content

Instantly share code, notes, and snippets.

View christianchristensen's full-sized avatar

Chris Christensen christianchristensen

View GitHub Profile
#!/usr/bin/env python
# Parser for ATT Humax BGW320-500 Network Status page
# ATTHumaxBGW320500.py <tablename> <rowname> '' <rowindex=1> <tableindex=1>
# Specity tablename and rowname to return the value by index
# ATTHumaxBGW320500.py <tablename> <colname> <macid or 'LLD'>
# Specify the tablename to return all available values (Zabbix LLD format)
# Data based on Model: BGW320-500, Version: 4.25.4
import json
#!/usr/bin/env python2.7
# TODO: Python 2 EOL -> 3
# Parser for Motorola SB6183 Signal page
# Motorola_SB6183_RgCRgConnectt.py <tablename> <column>
# Specify the tablename to return all available (Zabbix LLD format) Bonding Channel Values
# Specity tablename and column to return a specific value for the table and channel
# Data based on Model Name: SB6183, Firmware Name: D30CM-OSPREY-1.5.2.5-GA-00-NOSH
# Downstream Bonded Channels: Channel Lock Status Modulation Channel ID Frequency Power SNR Corrected Uncorrectables
# Upstream Bonded Channels: Channel Lock Status US Channel Type Channel ID Symbol Rate Frequency Power
import json
import sqlite3
import zlib
# ~/Library/Safari/CloudTabs.db
# Ref: https://www.reddit.com/r/mac/comments/89qx5n/iphone_safari_tabs_into_text_list_via_icloud/
db = sqlite3.connect('CloudTabs.db')
tabs = []
http://ampl.com/try-ampl/download-a-free-demo/#linux -> http://ampl.com/demo/ampl.linux64.tgz
https://www.freebsd.org/doc/handbook/linuxemu-lbc-install.html ->
$ uname -a
FreeBSD d630 11.1-RELEASE FreeBSD 11.1-RELEASE #0 r321309: Fri Jul 21 02:08:28 UTC 2017 root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
# pkg install linux_base-c7
# kldload linux64
# kldstat
Id Refs Address Size Name
1 8 0xffffffff80200000 1f67a88 kernel
2 1 0xffffffff82221000 3c93f linux64.ko

Configuration

NOTE: ultimately configuring the device directly caused instability; I had to use the UniFi controller to provision with the option of SNMP enabled to actually get this to work...

BZ.v3.7.58# grep -i snmp /tmp/system.cfg
snmp.community=public
snmp.status=enabled
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>3.2</version>
<date>2017-02-26T04:08:53Z</date>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<templates>

Model: GFLT100 HW: 2.0 Date: Dec. 8th 2013

UART / Serial connection (pinouts next to fiber I/O, C45, C46, J5):

WG
RB
#!/usr/bin/env python
# Parser for Motorola SB6141 Signal page
# Motorola_SB6141_cmSignalData.py <tablename> <column>
# Specify the tablename to return all available (Zabbix LLD format) Bonding Channel Values
# Specity tablename and column to return a specific value for the table and channel
# Data based on Model Name: SB6141, Firmware Name: SB_KOMODO-1.0.6.16-SCM00-NOSH
# Downstream: Frequency, Signal to Noise Ratio, Downstream Modulation, Power Level
# Upstream: Frequency, Ranging Service ID, Symbol Rate, Power Level, Upstream Modulation, Ranging Status
# Signal Stats (Codewords): Total Unerrored Codewords, Total Correctable Codewords, Total Uncorrectable Codewords