cn7322:/usr/lib/check_mk_agent/plugins# ls -l /sys/class/hwmon/hwmon0/
total 0
-r--r--r-- 1 root root 4096 Mar 21 15:07 alarms
lrwxrwxrwx 1 root root 0 Mar 21 15:07 device -> ../../../0-004c
-r--r--r-- 1 root root 4096 Mar 21 15:07 name
lrwxrwxrwx 1 root root 0 Mar 21 15:07 of_node -> ../../../../../../../../firmware/devicetree/base/soc@0/i2c@1180000001000/tmp@4c
drwxr-xr-x 2 root root 0 Mar 21 15:07 power
lrwxrwxrwx 1 root root 0 Mar 21 15:07 subsystem -> ../../../../../../../../class/hwmon
-rw-r--r-- 1 root root 4096 Mar 21 15:07 temp1_crit
This file contains hidden or 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
From 06cb8310a54a222437f5a84bbbe61111435a08bf Mon Sep 17 00:00:00 2001 | |
From: Yanfei Guo <yanf.guo@gmail.com> | |
Date: Fri, 18 Apr 2025 19:48:19 +0000 | |
Subject: [PATCH] qat: wait for in-flight req to complete before remove session | |
reqs in session may be still in-flight after callback returns. | |
This results in session remove fail with message "There are %lu | |
requests pending". Adding a small loop to wait for the completion | |
of in-flight requests. | |
--- |
This file contains hidden or 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/perl | |
use strict; | |
use warnings; | |
use List::Util qw[min max]; | |
# IBM x3650 Port notes: This port was made in an attempt to quiet down an IBM system x3650 M4. | |
# The porting involved changing the raw commands, removing the get GetFanRPM as it was | |
# useless in my scenario and IBM lists their fans as 1A 1B 2A 2B. | |
# Also the imm2 mantains a partial control over the fans actual speed, for example setting | |
# the fans at 30% result in an actual fan speed of roughly 24%, sometimes the script |
This file contains hidden or 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
upload fehlt | |
braucht eh ewig viele auffrischungen |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
NewerOlder