-
-
Save bvansomeren/1c800532598673a3507abeb7927f6f92 to your computer and use it in GitHub Desktop.
supermicro IMPIView kvm command line
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
#!/bin/sh | |
# Default to ADMIN for user and pass | |
echo usage "kvm IP [USER] [PASSWORD]" | |
echo USER/PASS default to 'ADMIN' | |
USER=${2:-ADMIN} | |
PASS=${3:-ADMIN} | |
JAVA_HOME=${JAVA_HOME:=/lib/jvm/oraclejdk7-64} | |
# Original idea from http://www.mcgill.org.za/stuff/archives/340 | |
# Upstream website http://www.supermicro.com/products/nfo/SMS_IPMI.cfm | |
# Arch package https://aur.archlinux.org/packages/ipmicfg/ | |
# Binary / jars etc ftp://ftp.supermicro.com/utility/IPMIView/ | |
IPMI_HOME=${IPMI_HOME:=/opt/IPMIView} | |
$JAVA_HOME/bin/java -Djava.library.path=$IPMI_HOME -jar $IPMI_HOME/iKVM.jar $1 $USER $PASS null 5900 623 2 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment