Skip to content

Instantly share code, notes, and snippets.

@dot-Sean
Forked from xbb/README
Created August 20, 2018 18:23
Show Gist options
  • Select an option

  • Save dot-Sean/a6e16b38298a9b64d064d4a1c053b0a3 to your computer and use it in GitHub Desktop.

Select an option

Save dot-Sean/a6e16b38298a9b64d064d4a1c053b0a3 to your computer and use it in GitHub Desktop.
IDRAC6 Virtual Console Launcher
Use this to start the virtual console without the need of Java Web Start or accessing it from the web interface.
You need an old JRE... I used 1.7.0_80 from the Server JRE package.
You don't need to install it, just extract it or copy the files in "jre" folder.
Open the viewer.jnlp file that you get by launching the virtual console from the web interface with a text editor.
Note the urls to the jar files. Download the main jar file avctKVM.jar and the libs for your operating system and architecture.
Extract the dlls from the jar libs.
Edit the bat file according to your needs.
The file structure should look like this:
start-virtual-console.bat
avctKVM.jar
jre/<jre home here>
lib/avctKVMIO.dll
lib/avmWinLib.dll
@echo off
set /P drachost="Host: "
set /p dracuser="Username: "
set "psCommand=powershell -Command "$pword = read-host 'Enter Password' -AsSecureString ; ^
$BSTR=[System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($pword); ^
[System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR)""
for /f "usebackq delims=" %%p in (`%psCommand%`) do set dracpwd=%%p
.\jre\bin\java -cp avctKVM.jar -Djava.library.path=.\lib com.avocent.idrac.kvm.Main ip=%drachost% kmport=5900 vport=5900 user=%dracuser% passwd=%dracpwd% apcp=1 version=2 vmprivilege=true "helpurl=https://%drachost%:443/help/contents.html"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment