Skip to content

Instantly share code, notes, and snippets.

@dot-Sean
Forked from xbb/README
Created August 20, 2018 18:23
Show Gist options
  • Save dot-Sean/a6e16b38298a9b64d064d4a1c053b0a3 to your computer and use it in GitHub Desktop.
Save dot-Sean/a6e16b38298a9b64d064d4a1c053b0a3 to your computer and use it in GitHub Desktop.

Revisions

  1. @xbb xbb revised this gist Dec 23, 2016. 2 changed files with 21 additions and 6 deletions.
    14 changes: 8 additions & 6 deletions README
    Original file line number Diff line number Diff line change
    @@ -1,19 +1,21 @@
    Use this as an example on how to start the virtual console without the need of Java Web Start or accessing it from the web interface.
    You can use the user and password that you use for the web interface.

    You need an old JRE... I used 1.7.0_80 from the Server JRE package.
    You need an old JRE... I used 1.7.0_80 from the Server JRE package, also I have tested successfully 1.7.0_79 with MacOS.
    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.
    Extract the dlls (.so Linux, .jnilib MacOS) from the jar libs.

    Edit the bat file according to your needs.
    If you don't see the MacOS libs in the file make sure you download it from MacOS.

    Edit the bat/sh file according to your needs.

    The file structure should look like this:

    start-virtual-console.bat
    start-virtual-console.bat (.sh if Linux/MacOS)
    avctKVM.jar
    jre/<jre home here>
    lib/avctKVMIO.dll
    lib/avmWinLib.dll
    lib/avctKVMIO.dll (.so if Linux, .jnilib if MacOS)
    lib/avmWinLib.dll (.so if Linux, .jnilib if MacOS)
    13 changes: 13 additions & 0 deletions start-virtual-console.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    #!/bin/bash

    echo -n 'Host: '
    read drachost

    echo -n 'Username: '
    read dracuser

    echo -n 'Password: '
    read -s dracpwd
    echo

    ./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"
  2. @xbb xbb revised this gist Dec 15, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions README
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    Use this as an example on how to start the virtual console without the need of Java Web Start or accessing it from the web interface.
    You can use the user and password that you use for 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.
  3. @xbb xbb revised this gist Dec 15, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Use this to start the virtual console without the need of Java Web Start or accessing it from the web interface.
    Use this as an example on how 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.
  4. @xbb xbb revised this gist Dec 15, 2016. 1 changed file with 18 additions and 0 deletions.
    18 changes: 18 additions & 0 deletions README
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    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
  5. @xbb xbb created this gist Dec 15, 2016.
    10 changes: 10 additions & 0 deletions start-virtual-console.bat
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    @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"