I hereby claim:
- I am ingardm on github.
- I am ingard (https://keybase.io/ingard) on keybase.
- I have a public key ASCJfIA7_1lfjP3C8phYnwW8huqanK4SRwqMxehhw2VpBAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python | |
""" | |
Display gluster traffic | |
This tool uses gluster profiling feature, parsing cumulative statistics. | |
To understand correctly the results, you have to divide overall write statistics with number of replicas. | |
Also striped volumes needs to be taken in mind - overall statistics just print sum of all bricks | |
read/written bytes. |
#!/usr/bin/env bash | |
# Retrieves the plaintext JNLP from a SuperMicro IPMI webserver | |
# Usage: supermicro-java-console.sh <hostname> | |
# supermicro-java-console.sh 10.1.2.34 > login.jnlp | |
set -x | |
HOST="$1" | |
IPMI_USER=${IPMI_USER:-ADMIN} |
#!/usr/bin/env bash | |
# Loads and mounts an ISO over SMB via the | |
# SuperMicro IPMI web interface | |
# | |
# usage: supermicro-mount-iso.sh <ipmi-host> <smb-host> <path> | |
# e.g.: supermicro-mount-iso.sh 10.0.0.1 10.0.0.2 '\foo\bar\windows.iso' | |
set -x |
## haproxy.cfg | |
global | |
user haproxy | |
group haproxy | |
daemon | |
maxconn 16384 | |
pidfile /var/run/haproxy.pid | |
defaults |
#(root / default) | |
tmsh modify sys global-settings mgmt-dhcp disabled | |
tmsh create sys management-ip 10.0.0.224/255.255.255.0 | |
tmsh create sys management-route default gateway 10.0.0.1 | |
#(or you can use "config" command - to speed it up) | |
#DNS | |
tmsh modify sys dns name-servers add { 10.0.0.141 10.0.0.142 } | |
tmsh modify sys dns search add { cloud.example.com } |
ls /usr/local/graphite/storage/whisper/carbon/agents/*/metricsReceived.wsp | xargs -I {} whisper-dump.py {} | sed -e "s/,//" | awk '$1 ~ /^[0-9]/ && $3 > 0 {day=strftime("%Y-%m-%d", $2); if ($3 > sizes[day]) {sizes[day]=int($3)}} END {for(day in sizes) {print day " " sizes[day]}}' | sort |
for f in $(find $1 -iname "*.wsp"); do | |
if [ -a $f ]; | |
then /opt/graphite/bin/whisper-set-aggregation-method.py $f max; | |
fi; | |
done |
#!/usr/bin/python | |
# -*- encoding: utf-8; py-indent-offset: 4 -*- | |
# +------------------------------------------------------------------+ | |
# | ____ _ _ __ __ _ __ | | |
# | / ___| |__ ___ ___| | __ | \/ | |/ / | | |
# | | | | '_ \ / _ \/ __| |/ / | |\/| | ' / | | |
# | | |___| | | | __/ (__| < | | | | . \ | | |
# | \____|_| |_|\___|\___|_|\_\___|_| |_|_|\_\ | | |
# | | | |
# | Copyright Mathias Kettner 2012 mk@mathias-kettner.de | |