Skip to content

Instantly share code, notes, and snippets.


Florian Heigl FlorianHeigl

View GitHub Profile
FlorianHeigl / Dockerfile
Created Jan 6, 2023
meet the man who might have created the biggest race condition in history of network automation?
View Dockerfile
FROM netboxcommunity/netbox
ENV http_proxy http://192.168.xx.xx:3128
ENV https_proxy http://192.168.xx.xx:3128
### deps und build env stuff
RUN apk --no-cache --update-cache add gcc git make musl-dev libffi-dev libxml2-dev libxslt-dev musl-dev python3-dev libffi-dev openssl-dev libjpeg-turbo-dev zlib-dev
### napalm drivers
View log.txt
After this operation, 0 B of additional disk space will be used.
(Reading database ... 219680 files and directories currently installed.)
Preparing to unpack .../grub-pc-bin_2.02-2ubuntu8.25_amd64.deb ...
Unpacking grub-pc-bin (2.02-2ubuntu8.25) over (2.02-2ubuntu8.25) ...
dpkg: error processing archive /var/cache/apt/archives/grub-pc-bin_2.02-2ubuntu8.25_amd64.deb (--unpack):
unable to open '/usr/lib/grub/i386-pc/at_keyboard.mod.dpkg-new': Operation not permitted
Segmentation fault (core dumped)
FlorianHeigl / RB952Ui-5ac2nD.yaml
Created Dec 1, 2022
hAP ac lite netbox device type
View RB952Ui-5ac2nD.yaml
manufacturer: MikroTik
model: hAP ac lite
slug: hap-ac-lite
part_number: RB952Ui-5ac2nD
u_height: 0
is_full_depth: false
subdevice_role: ''
comments: "The [hAP ac lite]( is a Dual-concurrent\
\ Access Point, that provides WiFi coverage for 2.4GHz and 5GHz frequencies at the\
FlorianHeigl / cim-re
Last active Nov 18, 2022
zimbra /opt/zimbra/index space cleanup, automated with throttling
View cim-re
#/bin/bash -eu
# tba
zimbra_users=$( zmprov -l gaa | sort )
FlorianHeigl /
Last active Jun 19, 2022
ESXi Updates via CLI/SSH/ansible
FlorianHeigl / dhcpd.conf
Created Jun 12, 2022
isc dhcp und mikrotik netinstal
View dhcpd.conf
Relevant kea-dhcp4.conf items:
{ "subnet": "",
"pools": [
{ "pool": " -", "client-class": "BOOTP" },
{ "pool": " -", "client-class": "DHCP" }
"option-data": [
{ "name": "domain-name-servers",
"data": "," },
{ "name": "domain-name", "data": "" },
FlorianHeigl / cli_script
Last active Apr 6, 2022
avaya ers ssh config
View cli_script
# 1. dsa host key muss vorhanden sein, sonst startet server nicht
# 2. dsa auth kann man abschalten, ausser firmware ist extra alt. FW <=5.5 kann kein RSA FW >=5.6 kann RSA.
# 3. secure mode disabled alle anderen Protokolle - auch snmp!
# 4. pubkey download ist nur via tftp server (nicht usb)
# 5. RO user fuer backup funktioniert nicht wegen Problem mit `enable` ohne PW in oxidized
# 6. PW muss man manuell eingeben
# 7. telnet bleibt hier so erreichbar! (block via ipmgr)
no ssh
FlorianHeigl /
Last active Apr 4, 2022
textfsm-aos example alcatel
#!/usr/bin/env python3
from textfsm_aos.parser import parse
import re
sample_data = """
Local Chassis ID 1 (Master)
Model Name: OS6860E-24,
Module Type: 0x6062203,
Description: Chassis,
Part Number: 903708-90,
FlorianHeigl /
Created Mar 2, 2022
tag elastiflow from ip list
#!/usr/bin/env python
from elasticsearch import Elasticsearch
from elasticsearch_dsl import Search
from elasticsearch_dsl import query as q
from elasticsearch_dsl import Q
from elasticsearch_dsl.query import MultiMatch, Match
from elasticsearch_dsl import UpdateByQuery
import re, sys
FlorianHeigl / docker-compose.yml
Created Feb 24, 2022
check_mk via compose (clean config)
View docker-compose.yml
version: '3'
image: checkmk/check-mk-raw:2.0.0-latest
- "162:162/udp"
- "514:514/udp"
- "514:514/tcp"
- "6557:6557/tcp"