Skip to content

Instantly share code, notes, and snippets.

@hh
Last active November 11, 2022 16:46
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hh/0db375f0778958d28370 to your computer and use it in GitHub Desktop.
Save hh/0db375f0778958d28370 to your computer and use it in GitHub Desktop.
supermicro IMPIView kvm command line
#!/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
@bvansomeren
Copy link

Thanks. that was an absolute lifesaver :)

@prolane
Copy link

prolane commented Feb 19, 2018

Awesome! This helped me to finally get the virtual console working. Thanks!

@PesekLasy
Copy link

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

@vajonam
Copy link

vajonam commented Oct 19, 2022

woot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment