Skip to content

Instantly share code, notes, and snippets.

Avatar

Florian Heigl FlorianHeigl

View GitHub Profile
@FlorianHeigl
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
ENV CRYPTOGRAPHY_DONT_BUILD_RUST=1
### 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
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](https://mikrotik.com/product/RB952Ui-5ac2nD) is a Dual-concurrent\
\ Access Point, that provides WiFi coverage for 2.4GHz and 5GHz frequencies at the\
@FlorianHeigl
FlorianHeigl / cim-re
Last active Nov 18, 2022
zimbra /opt/zimbra/index space cleanup, automated with throttling
View cim-re
#/bin/bash -eu
PHASE=init
# tba
PHASE=prep
zimbra_users=$( zmprov -l gaa | sort )
PHASE=run
@FlorianHeigl
FlorianHeigl / esxi-patching.md
Last active Jun 19, 2022
ESXi Updates via CLI/SSH/ansible
View esxi-patching.md
@FlorianHeigl
FlorianHeigl / dhcpd.conf
Created Jun 12, 2022
isc dhcp und mikrotik netinstal
View dhcpd.conf
Relevant kea-dhcp4.conf items:
{ "subnet": "172.30.248.0/22",
"pools": [
{ "pool": "172.30.248.16 - 172.30.248.31", "client-class": "BOOTP" },
{ "pool": "172.30.248.32 - 172.30.248.63", "client-class": "DHCP" }
],
"option-data": [
{ "name": "domain-name-servers",
"data": "172.16.1.15, 172.16.1.20" },
{ "name": "domain-name", "data": "company.com" },
@FlorianHeigl
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
FlorianHeigl / alcatel-test.py
Last active Apr 4, 2022
textfsm-aos example alcatel
View alcatel-test.py
#!/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
FlorianHeigl / elastiflow-tagging.py
Created Mar 2, 2022
tag elastiflow from ip list
View elastiflow-tagging.py
#!/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
FlorianHeigl / docker-compose.yml
Created Feb 24, 2022
check_mk via compose (clean config)
View docker-compose.yml
---
version: '3'
services:
checkmk:
image: checkmk/check-mk-raw:2.0.0-latest
ports:
- "162:162/udp"
- "514:514/udp"
- "514:514/tcp"
- "6557:6557/tcp"