- Install the Virtual BMC package in the machine to use as the vBMC server.
Note1: When using OpenStack repos the python3-virtualbmc RPM might be available. These instrucctions do not use that package.
pip3 install virtualbmc
- The vBMC server can be running in any machine. When using a remote libvirt server it is recommended to have passwordless authentication from the vBMC server to the libvirt machines.
- For this document the vBMC Server
export vBMCServerIP=192.168.1.13
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 | |
# dump-project.sh PROJECT_NAME | |
# If you prefer multiple files, you can split it: | |
# zcat *.txt.gz | awk 'BEGIN{f=""} match($0, /^+ ((oc|date).*)$/, a){f=a[1] ".txt"; gsub(/[ \/=]/,"_",f);} {print $0 >> f}' | |
PROJECT=$1 | |
if [ -z $PROJECT ]; then |
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 | |
# | |
# Copyright(C) 2016 Red Hat, Inc. | |
# Author: Satoru SATOH <[email protected]> | |
# License: MIT | |
# | |
# Example: | |
# [root@rhel-7-client-1 ~]# ./yum-repo-size-info-list.sh \ | |
# > -r rhel-7-server-rpms -r rhel-7-server-optional-rpms \ | |
# > -r rhel-7-server-rh-common-rpms -r rhel-7-server-extras-rpms \ |
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
################################################################################# | |
# start and stop the vpn from the command line from now on with these two commands | |
################################################################################# | |
startvpn() { | |
sudo launchctl load -w /Library/LaunchDaemons/net.pulsesecure.AccessService.plist | |
launchctl load -w /Library/LaunchAgents/net.pulsesecure.pulsetray.plist | |
} | |
quitvpn() { | |
launchctl unload -w /Library/LaunchAgents/net.pulsesecure.pulsetray.plist | |
sudo launchctl unload -w /Library/LaunchDaemons/net.pulsesecure.AccessService.plist |
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 | |
set -e | |
ssh='ssh' | |
ec2din="ec2-describe-instances" | |
while [ $# -gt 0 ]; do | |
case $1 in | |
-*) | |
if [ -z "$2" ]; then | |
break |
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 | |
PREFIX="from now" | |
MESSAGE="[${PREFIX}] `date`" | |
if [ $# -eq 0 ] | |
then | |
git add -u | |
printf "${MESSAGE}\n\n%s" "`git diff --cached`" | git commit -F - | |
elif [ $1 != "--rebase" ] |