This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
set -eu | |
. ../netbox-docker/env/postgres.env | |
_date=$(date +%Y%m%d%H%M) | |
backupdir=/backup/netbox | |
umask 177 | |
# iirc this should be done by a sidecar container or something |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Identifier : 0x03 (SFP) | |
Extended identifier : 0x04 (GBIC/SFP defined by 2-wire interface ID) | |
Connector : 0x21 (Copper pigtail) | |
Transceiver codes : 0x00 0x00 0x00 0x00 0x00 0x04 0x00 0x00 0x00 | |
Transceiver type : Passive Cable | |
Encoding : 0x00 (unspecified) | |
BR, Nominal : 10300MBd | |
Rate identifier : 0x00 (unspecified) | |
Length (SMF,km) : 0km | |
Length (SMF) : 0m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# one-context hat hier bugs und bringt das netzwerk nie online | |
set -u | |
test_network(){ | |
#good case | |
ip addr list dev eth0 | | |
grep -qE "inet.*((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)" && return 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# dont execute hook if dhcp req failed | |
if [ $1 != 0 ]; then | |
return 0 | |
fi | |
# get bayernwlan interface name | |
interface=$( ifconfig | grep -B1 "BAYERNWLAN" | grep -v description: | awk -F: '{print $1}' ) | |
# some validation might be [a-z]+[0-9] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1476 mkdir /mnt/imgback | |
1477 mount -t cifs -o domain=xxxx,vers=3.1.1,multichannel,user=xxxxx,password=xxxx,max_channels=2 // | |
nas84/imgback /mnt/imgback | |
1515 dd if=/dev/sda bs=1024k | mbuffer -m2G --direct -d -o /mnt/imgback/file1 | pigz -1 /mnt/foo/file2.img.gz | |
1579 echo 2048 > /sys/block/sde/queue/read_ahead_kb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
modules=loop,squashfs,sd-mod,usb-storage quiet console=tty1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
import sys, os, getopt, re, subprocess | |
from pypjlink import Projector | |
############################################################################# | |
def usage(): | |
############################################################################# | |
sys.stderr.write("""Check_MK PJ-Link Agent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ 2.100137] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.06 | |
[ 2.100147] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 | |
[ 2.100152] usb usb1: Product: xHCI Host Controller | |
[ 2.100156] usb usb1: Manufacturer: Linux 6.6.39-0-lts xhci-hcd | |
[ 2.100160] usb usb1: SerialNumber: 0000:00:14.0 | |
[ 2.100579] hub 1-0:1.0: USB hub found | |
[ 2.100735] hub 1-0:1.0: 6 ports detected | |
[ 2.102772] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.06 | |
[ 2.102785] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 | |
[ 2.102791] usb usb2: Product: xHCI Host Controller |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ipmitool -I lanplus -H 192.168.xx-U admin -P $ABC chassis bootparam get 5 | |
Boot parameter version: 1 | |
Boot parameter 5 is valid/unlocked | |
Boot parameter data: e018000000 | |
Boot Flags : | |
- Boot Flag Valid | |
- Options apply to all future boots | |
- BIOS EFI boot | |
- Boot Device Selector : Force Boot into BIOS Setup | |
- BIOS verbosity : System Default |
NewerOlder