Last active
November 11, 2022 16:46
-
-
Save hh/0db375f0778958d28370 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 |
Awesome! This helped me to finally get the virtual console working. Thanks!
Thanks you. My life is a nice again :)
I am append ssh forwarding:
ssh -L 623:10.10.10.10:623 -L 5900:10.10.10.10:5900 fw.company.org
kvm.sh 127.0.0.1 ADMIN SecretPassword
woot!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks. that was an absolute lifesaver :)