[root@sidewinder-fe1 ~]# rocks list roll
NAME VERSION ARCH ENABLED
kernel: 6.2 x86_64 yes
web-server: 6.2 x86_64 yes
base: 6.2 x86_64 yes
CentOS: 6.6 x86_64 yes
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 python | |
# Replace locahost with the hostname of your graphite server | |
import os | |
import socket | |
import sys | |
CARBON_SERVER = 'localhost' | |
CARBON_PORT = 2003 |
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
#!/bin/bash | |
function summarize_for_pattern() { | |
LOG_PATTERN=$1 | |
#echo "128K IO - Streaming Write Bandwidth - 16 Initial Writers" | |
echo -e " Child" | |
echo -e " Min Max Avg Aggr Units" | |
echo -n "initial writers (bw): " | |
for val in Min Max Avg Children; | |
do |
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
#!/bin/bash | |
# Original from: http://apple.stackexchange.com/a/146851 | |
# If you want to disable auto-imported functions, uncomment the following | |
#export ADD_IMPORT_FUNCTIONS_PATCH=YES | |
mkdir ~/bash-fix | |
cd ~/bash-fix | |
curl https://opensource.apple.com/tarballs/bash/bash-92.tar.gz | tar zxf - | |
cd bash-92/bash-3.2 |
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
#!/bin/sh | |
EXPECTED_ARGS=2 | |
E_BADARGS=65 | |
if [ $# -ne $EXPECTED_ARGS ] | |
then | |
echo "Usage: `basename $0` {reservationname} {nodelist}" | |
exit $E_BADARGS | |
fi |
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
#!/bin/sh | |
# Usage : Show queue utilization for running & pending jobs | |
E_INVALID_OPT=1 | |
usage() { echo "Usage: $0" 1>&2; exit 1; } | |
cleanup () { /bin/rm $_squeue_tmp; } | |
while getopts ":h" opt; do | |
case $opt in |
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
#!/bin/bash | |
AWK=$(which awk) | |
CURL=$(which curl) | |
ECHO=$(which echo) | |
GREP=$(which grep) | |
SORT=$(which sort) | |
BASE="http://beta7.rocksclusters.org/isos" | |
ROLLS=$(${CURL} -s ${BASE}/ | ${AWK} -F\" '/iso\"/ {print $8}' | ${SORT} -u) |
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
Bootstrap: docker | |
From: python:2.7.13 | |
%help | |
This container creates internal directories to bind HPC system locations to as | |
follows... | |
/pfs_data - The location of your high performance parallel file system data | |
/pfs_scratch - The location of your high performance parallel file system scratch |
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
#!/bin/sh | |
ROLL_VERS="$(rocks list roll | awk '/ yes/{print $1,$2}' | sed 's/://g')" | |
printf " roll ; version ; release ; date\n" | |
while IFS= read | |
do | |
roll=$(echo $REPLY | awk '{print $1}') | |
vers=$(echo $REPLY | awk '{print $2}') | |
printf "%14s ; " $roll; | |
roll_info=$(grep release /export/rocks/install/rolls/$roll/$vers/x86_64/roll-$roll.xml | sed 's,\t<info ,,g;s,/>,,g;s,",,g;s,version=,,g;s,release=,,g;s,arch=,,g;s,os=,,g' | awk '{print $1" "$2}') |
Screen capture demonstrating running a Rocky 8 container running httpd in systemd via podman on a Rocky 8 VirtualBox virtual machine