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, 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 (.so Linux, .jnilib MacOS) from the jar libs. | |
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 (.sh if Linux/MacOS) | |
avctKVM.jar | |
jre/<jre home here> | |
lib/avctKVMIO.dll (.so if Linux, .jnilib if MacOS) | |
lib/avmWinLib.dll (.so if Linux, .jnilib if MacOS) |
@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" |
#!/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" |
This comment has been minimized.
This comment has been minimized.
Handy script, thanks! I modified the bat version slightly to automatically download avctKVM.jar: @echo off set /P drachost="Host: " ECHO Grabbing avctKVM.jar from host... .\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" |
This comment has been minimized.
This comment has been minimized.
Awesome, thank you |
This comment has been minimized.
This comment has been minimized.
Thank you so much for this! I'm running into some issues running the script on Mac, however. When running the .sh file, everything goes fine until I receive the error: "Could not find or load main class com.avocent.idrac.kvm.Main". Any idea as to how I would remedy this? |
This comment has been minimized.
This comment has been minimized.
Great stuff! Thanks! What about getting this working for iDRAC 7 and 8? I tried using the script with Java 8 but always get error: "Login failed with an access denied error." It almost works... |
This comment has been minimized.
This comment has been minimized.
Hey I keep getting a connection failed error message, any advice?
|
This comment has been minimized.
This comment has been minimized.
@ptmorris1 I'm stuck with iDRAC6, but you should be able to use VNC with iDRAC7 or iDRAC8. http://en.community.dell.com/cfs-file/__key/telligent-evolution-components-attachments/13-4491-00-00-20-44-10-34/AccessingRemoteDesktop_5F00_using_5F00_VNC_5F00_on_5F00_iDRAC.pdf |
This comment has been minimized.
This comment has been minimized.
Fist off - thanks for the snippet and work-around. It was very useful to get an idea how it works behind the scenes - and that we don't actually need a web browser to kick-start console (our iDRAC6 does not even have a link for console, I had to hack it through I have managed to make it work - well, sort of "work". The thing is damn iDRAC6 in it's express` version simply does not support KVM. Oh how I hate you Dell. Even more than I hate HP(E) and Intel together! I'll stick with SuperMicro for good - they have HTML5 KVM which works from any device/browser! As a normal feature! |
This comment has been minimized.
This comment has been minimized.
@stamster Did you actually get the console to work with iDRAC6 express? If yes, how? |
This comment has been minimized.
This comment has been minimized.
Great thanks! It was very useful. But i have one big question with it - how can i include a virtual media library into this snippet? |
This comment has been minimized.
This comment has been minimized.
@nizrael I spent some time getting the virtual media console to work. On windows, you need to open up avctKVMIOWin64.jar and avctVMWin64.jar, extract the .dlls contained therein and throw them in a lib folder in the folder you have the start-virtual-console.bat. I've confirmed this works with both the 64bit and 32bit dlls extracted from the jars. |
This comment has been minimized.
This comment has been minimized.
@colomb001 thank you so much for the keyboard tip |
This comment has been minimized.
This comment has been minimized.
Hi, How can I get avctKVMIO.dll and a vmWinLib.dll?? I downloaded from google avctKVMIO.dll and get vmWinLib.dll from my java ultimate version installed in appdata\LocalLow\Sun\Java\Deployment... but I get a error message: "The native library for keyboard and mouse support failed to load. Pass all keys to server and single cursor support will not be available", and not run, I´m under win10 x64, thanks |
This comment has been minimized.
This comment has been minimized.
I got this to work (on enterprise), but I'm having problems getting keyboard input to work. It does not register any keypress. I'm on latest macOS, if that helps any. |
This comment has been minimized.
This comment has been minimized.
I get the error message Thanks for advice, regards |
This comment has been minimized.
This comment has been minimized.
Great script. Nice |
This comment has been minimized.
This comment has been minimized.
Again Thankz for the script it was a great start and gave a goog understanding of how stuff works under the hood. I have made few updates and now it works for iDrac 6/7/8, think it'll help someone As .Net < 4 throws errors when creating Tls12 connections and sometimes it's so hard to change registry to enable those if you are in a common environment. As a work around I used this https://eternallybored.org/misc/wget/ to download avctKVM.jar from the server. finally, add " del avctKVM.jar " at the end of the bat. As wget.exe won't replace (maybe im missing a switch ), then you are good to go :) Also working on a shell script to use x11 forwarding to pop out as most of the time jump hosts are Linux. |
This comment has been minimized.
This comment has been minimized.
Thank you for the script, so much easier to get the console to connect. Couple of questions though, is there any way to get the Virtual Media Feature working with this script? Also, is this script compatible with the DRAC 5 card? Thanks |
This comment has been minimized.
This comment has been minimized.
I'm with @duckdave1, having the same issue with iDRAC6, NoClassDefFound when running both 1.7 and 1.6.
Edit2: I can get this to run on Windows 10 with no modifications using 7u80 by changing the install location to the folder where everything is to be housed. So in my case, \Users\username\iDRAC\jre. Ran the start script, and it fires right up. This does not work taking the same installer and simply unpacking the files via 7zip and dumping them in like @xbb stated in his readme. You can unpack the files cleanly as discussed here: https://stackoverflow.com/questions/11808829/jre-1-7-java-version-returns-java-lang-noclassdeffounderror-java-lang-obje/24242476 |
This comment has been minimized.
This comment has been minimized.
With JDK (Server JRE package) 7u80 I found here I could run the console even with encryption enabled using the .sh script (using cygwin here). But I can't get the virtual media to work at all. From iDRAC 6 interfce, I see it is Enterprise, so it /should/ work. I've downloaded all .jar files pointed by Other than that, all seems to work, I can walk thru bios, type, reboot, and so on. EDIT: to have virtual media working, just follow the steps into extracting the DLL (.so or .jnilib depending on OS). The In my case, windows 10 64-bit, it was |
This comment has been minimized.
This comment has been minimized.
Hi, I follow every step as mentioned even i extracted / un compressed the components of the jar file in "lib" folder however i am still getting this error Thanks, |
This comment has been minimized.
This comment has been minimized.
@sirtcp Do you have the avctKVM.jar file in the same folder as the script? |
This comment has been minimized.
This comment has been minimized.
I tried this out and it worked great on my mac.
`
|
This comment has been minimized.
This comment has been minimized.
Brilliant!!! This saves so much time. Thank you, |
This comment has been minimized.
This comment has been minimized.
Was finally able to get this script running. A couple of things that I had to go through a few times, 1. Don't hard code the IP of the idrac. I had put into my script Host: https://A.B.C.D and then put my username and it wasn't working. Maybe if I had just put the IP and not the https: it would have worked. 2. I had to create a folder on my computer to hold the jre folder I downloaded and extracted as well as a .lib folder I created to house the .dll's that you have to extract and download from the links in the "viewer.jnlp". In the viewer.jnlp there are multiple lines, I am running 64 bit so I used the nativelib lines. I also extracted the avctKVM.jar and copied the com directory out into the lib folder. So my folder structure looks like: Console (main folder)
Once this was all set, I just ran the script using Powershell and it worked. |
This comment has been minimized.
This comment has been minimized.
@joedel94 I know its been a while since you posted, but I got the same error. I found out that it was because I missunderstood what the set /P drachost="Host: "
set /p dracuser="Username: " lines did: I thought that the text in the quotes were just a place holder and you would need to modify the script to change the variables. They actually set the given variable name to the user input after prompting with the text in the string. So, when the script ran with your string set to, say, Try running the original script as is, then do the following in the console:
Assuming there aren't any other problems (see below), you have your jre in the jre folder, and correct lib files in the lib folder alongside the script, that should run and connect the console. Worst case, ignore the .\jre\bin\java -cp avctKVM.jar -Djava.library.path=.\lib com.avocent.idrac.kvm.Main ip=192.168.0.0 kmport=5900 vport=5900 user="myUserName" passwd="SuperSecurePassword1" apcp=1 version=2 vmprivilege=true "helpurl=https://192.168.0.0:443/help/contents.html" If that fails, you might be trying to access the wrong port (check the port number the console runs on in the web gui) or there might be a firewall between you and the DRAC blocking that port (5900 by default). |
This comment has been minimized.
This comment has been minimized.
hard coding the password into the .bat file got it to work. I was having all sorts of authentication issues.
|
This comment has been minimized.
This comment has been minimized.
Thanks, this works a treat. Running great on MacOS High Sierra using jre1.7.0_80 For the Mac users make sure to get both of the Mac jars from the .jnlp file and extract the libs from both of them (and put them into ./lib or whatever path you are going to use for that). Both viewer and Virtual media bits working as expected. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Here is a version that makes assumptions about your paths (so fix them if they don't match) and also uses 7-Zip to extract the required DLL file. It gives you an option to use a port other than 5900 since some of our hosts use different ports.
|
This comment has been minimized.
This comment has been minimized.
This works great, finally a workaround for the broken iDRAC! A few notes on Ubuntu:
|
This comment has been minimized.
This comment has been minimized.
I had to enable SSLv3 in java, I always got the error "connection failed" Comment out "jdk.tls.disabledAlgorithms=SSLv3 in /lib/security/java.security |
This comment has been minimized.
This comment has been minimized.
Thanks for that great script! I used Java 1.8 (64-bit in my case). Changed "java.security", as @krubottom advised (and BIG THANKS for that!) - withou it I got an Error. In Idrac 8 Dell have changed DLLs, and now the DLLs in \lib folder is: With original script Console launched just fine, but I got "access denied" message. .\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 reconnect=2 version=2 vm=1 "helpurl=https://%drachost%:443/help/contents.html" |
This comment has been minimized.
This comment has been minimized.
I'm experiencing the same issue as well. |
This comment has been minimized.
This comment has been minimized.
Hello everyone, I have the remote console working on a dell R710 with the enterprise idrac. I am running the latest java version as of 10/01/2018. Go to here or wherever you installed java. Comment out this line in java.security with a # I don't know what security implications this has but it works. |
This comment has been minimized.
This comment has been minimized.
I have fixed it on ubuntu 16.04 with openjdk-8-jre:amd64 8u181-b13-0ubuntu0.16.04.1 the following way. This is an original statement in java.security:
You have to delete SSLv3 and 3DES_EDE_CBC for iDrac console to be functional again. So it will look like this:
Enjoy! |
This comment has been minimized.
This comment has been minimized.
In case you, or anyone hasn't figured this issue out yet, I had to download the avctKVM.jar file separately, the same way as the files listed in the .jnlp file (ipaddress/software/avctKVM.jar) and put it in the same directory as the .bat/.sh file. |
This comment has been minimized.
This comment has been minimized.
I have it working on Linux with iDRAC7. Issue for me was that the keyboard wouldn't work with the 64bit libraries and the virtual media wouldn't work with the 32bit libraries. Mixing the two worked. I downloaded both sets to
|
This comment has been minimized.
This comment has been minimized.
I updated the Linux script to take arguments on the command line: #!/bin/bash
# https://gist.github.com/xbb/4fd651c2493ad9284dbcb827dc8886d6
show_help () {
echo "Usage: `basename $0` <options>";
echo;
echo "Options:";
echo " -h | --help = Help, show this message.";
echo " -r | --host=<NAME> = iDRAC IP Address (Mandatory).";
echo " -u | --user=<USER> = iDRAC user name (Mandatory";
echo " -p | --pass=<PASS> = iDRAC password (Mandatory)";
}
OPTS=`getopt -o hr:u:p: --long help,host:,user:,pass: -n 'help' -- "$@"`
#if [ $? != 0 ] ; then echo "Failed parsing options." >&2 ; show_help; exit 1 ; fi
# echo "$OPTS"
eval set -- "$OPTS"
while true; do
case "$1" in
-h | --help ) show_help; exit 0; shift ;;
-r | --host ) host="$2"; shift 2 ;;
-u | --user ) user="$2"; shift 2 ;;
-p | --pass ) pass="$2"; shift 2 ;;
-- ) shift; break ;;
* ) echo "Invalid arguments!"; show_help; exit 1 ;;
esac
done
if [ ! "$host" ] || [ ! "$user" ] || [ ! "$pass" ]; then
show_help
exit 1
fi
./jre/bin/java -cp avctKVM.jar -Djava.library.path=./lib com.avocent.idrac.kvm.Main ip=$host kmport=5900 vport=5900 user=$user passwd=$pass apcp=1 version=2 vmprivilege=true "helpurl=https://$host:443/help/contents.html" |
This comment has been minimized.
This comment has been minimized.
Hi! |
This comment has been minimized.
This comment has been minimized.
For DRAC5 I have only 1 dll - avctKVMIO.dll. |
This comment has been minimized.
This comment has been minimized.
This is my connection error: |
This comment has been minimized.
This comment has been minimized.
With java jre1.8.0_51 32 bit for windows, of course. |
This comment has been minimized.
This comment has been minimized.
Dude, you're a hero Would you believe it even works with the proper Java 8 on MacOS High Sierra? |
This comment has been minimized.
This comment has been minimized.
FYI, in a modern Linux operating system, you'll have to also edit this file by removing all SSLv3 / RC4 / RC4_* : [root@knox back-ends]# pwd as well as : |
This comment has been minimized.
This comment has been minimized.
commenting out |
This comment has been minimized.
This comment has been minimized.
This fixed it for me. too with latest java. Nice to have it in its own folder as a "portable" |
This comment has been minimized.
This comment has been minimized.
same for allowing unsecure algos. |
This comment has been minimized.
This comment has been minimized.
The original post worked for me, thanks for this! |
This comment has been minimized.
This comment has been minimized.
Another option - All in Powershell this time, which can be used on any system that has PSCore installed :) function Connect-iDrac {
[CmdletBinding()]
param (
[IPAddress]$dracHost,
$dracUser
)
try {
$cred = Get-Credential -UserName $dracUser -Message "Please enter iDrac credentials.." -Title "Connect-iDrac"
$jrePath = "C:\bin\jre1.7.0_80" #set to your jre binaries root folder.
$kvmJar = "$jrePath\avctKVM.jar"
if (!(Test-Path $kvmJar)) {
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}
$WebClient = New-Object System.Net.WebClient
$WebClient.DownloadFile("http://$dracHost/software/avctKVM.jar", "$kvmJar")
}
$proc = Start-Process -FilePath cmd -ArgumentList "/c `"$jrePath\bin\java.exe -cp avctKVM.jar -Djava.library.path=.\lib com.avocent.idrac.kvm.Main ip=$dracHost kmport=5900 vport=5900 user=$dracUser passwd=$($cred.GetNetworkCredential().Password) apcp=1 version=2 vmprivilege=true 'helpurl=https://%drachost%:443/help/contents.html'`"" -WorkingDirectory $jrePath -PassThru
return $proc
}
catch {
Write-Warning $_.Exception.Message
}
} |
This comment has been minimized.
This comment has been minimized.
I stumbled over this posting while searching for a solution to connect to my Lenovo RD530 via KVM, so i gave it a shot - and it worked flawless. So thank you for that. Difference to the original posting is, i just got the avctKVMIO.dll out of the jar and i had to change 'com.avocent.idrac.kvm.Main' to 'com.avocent.kvm.client.Main'. |
This comment has been minimized.
This comment has been minimized.
Thank you very much - this works great! |
This comment has been minimized.
This comment has been minimized.
wow thank you! this is the only way I got the iDrac 6 console to open. |
This comment has been minimized.
This comment has been minimized.
Thanks, great solution. |
This comment has been minimized.
This comment has been minimized.
Thank you for the great script. I have it running on iDRAC6 and iDRAC7. I using JRE 1.7 for iDRAC6 and JRE 1.8 for IDRAC7. It works out well. The only issue I have is Virtual Media is not showing (working) for iDRAC7. If anyone have a solution for Virtual Media on iDRAC 7, please share. Virtual Media works fine in iDRAC6 with "avmWinLib.dll" in the .\lib directory. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@NoLooseEnds iDRAC6 Express simply does not support KVM. You will need to buy the iDRAC6 Enterprise add-on. There is no work around since iDRAC6 Express simply does not contains the Hardware required to support this. The add-on can easily be purchase from many providers for less then 20$USD. So very cheap. If you want the feature simply by the required hardware. |
This comment has been minimized.
This comment has been minimized.
@LouisOuellet Yes, and I did. :) |
This comment has been minimized.
This comment has been minimized.
Thanks for the great script. I did added some functionalities to it such as Arguments support for HOST, USER and PASSWORD to make it a little faster to used. But nice find. |
This comment has been minimized.
This comment has been minimized.
This works great, thank you! |
This comment has been minimized.
This comment has been minimized.
I keep getting *** Edit ***
|
This comment has been minimized.
This comment has been minimized.
thanks, works here!!! |
This comment has been minimized.
This comment has been minimized.
I solve my problem using this tutorial. https://antoniocampos.net/2018/01/12/java-erro-ao-utilizar-md5withrsa/ |
This comment has been minimized.
This comment has been minimized.
Proving there are many ways to skin a cat, how about a method which utilises your Java installation's 'javaws' binary and templates out a JNLP file, written in Perl. idrac-console.pl: #!/usr/bin/perl
use strict;
use warnings;
use Getopt::Long;
use Text::Template;
use File::Spec;
use FindBin;
use File::Temp qw/tempfile/;
my $java_dir = File::Spec->catfile($FindBin::Bin, 'jre7');
my $drac_host;
my $drac_user;
my $drac_password;
GetOptions('host=s' => \$drac_host,
'user=s' => \$drac_user,
'password=s' => \$drac_password,
'java-dir=s' => \$java_dir) or
die "Invalid options\n";
if (!$drac_host or !$drac_user or !$drac_password)
{
die "You must specify --host, --user and --password\n";
}
my $template = Text::Template->new(TYPE => 'FILE', SOURCE => File::Spec->catfile($FindBin::Bin, 'viewer.jnlp.tmpl'));
my %hash =
(
'drac_host' => $drac_host,
'drac_user' => $drac_user,
'drac_password' => $drac_password
);
my $text = $template->fill_in(HASH => \%hash);
my $tmp_file = File::Temp->new(SUFFIX => '.jnlp');
print $tmp_file $text;
close $tmp_file;
print "Launching $tmp_file...\n";
system(
File::Spec->catfile($java_dir, 'bin', 'javaws'),
$tmp_file
); viewer.jnlp.tmpl:
|
This comment has been minimized.
This comment has been minimized.
Thank you very much! I made the mistake of editing the script and filling in the host IP and user, don't do that, just fill in when prompted :) |
This comment has been minimized.
This comment has been minimized.
thanks for the script. successfully implemented for an R710 with idrac enterprise 6 on a windows 10 64 bit machine. |
This comment has been minimized.
This comment has been minimized.
You don't NEED an old Java, you just need to disable all the SSL/TLS restrictions in ($javadir)/lib/security/java.security - specifically, set You probably also want to disable TLS1.3 in Java Settings -> Advanced, as that can cause problems with HP ILOs, too. |
This comment has been minimized.
This comment has been minimized.
Worked great on my R810 with iDrac6 Enterprise. |
This comment has been minimized.
This comment has been minimized.
Just a note for anyone else that might have this problem... I was getting an SSL socket exception in Java. The only thing I changed was the password I was using for the user. Turns out I had a few special characters in the password. That was the issue. Once I removed the special characters everything worked perfectly. |
This comment has been minimized.
This comment has been minimized.
iDrac5 Success:
|
This comment has been minimized.
This comment has been minimized.
Thank you. It works for me |
This comment has been minimized.
This comment has been minimized.
Thank you very much it works! |
This comment has been minimized.
This comment has been minimized.
Yes it works for me too. Thanks. |
This comment has been minimized.
This comment has been minimized.
Thanks for sharing. I used procexp (from sysinternals) to determine I needed a VMAPI_DLL but did not know what to pull from the server. Is it a safe bet to assume that the path to the I'm hoping that when I get a server that has a newer iDRAC version it will be this simple. |
This comment has been minimized.
This comment has been minimized.
Thank you, this worked on linux mint w/ default java 8. Fwiw instead of editing the system-wide security policy (eg. /usr/lib/.../security/java.security) you can copy the file into the local directory and tell the script to use it by adding "-Djava.security.properties=./java.security" to the java arguments. Then the security settings will only apply for this particular application, hopefully avoiding potential security risks. |
This comment has been minimized.
This comment has been minimized.
Thank you! It works for me too. I made a Python script based on this. Should work for Win/Linux/Mac. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@codigobinario did you fix it? |
This comment has been minimized.
This comment has been minimized.
Hi, I have read through all the comments and tried all solutions. i am still getting this error
I am using JRE 7 on Windows 10. I can download the viewer.jnlp fresh from the webGUI and it works. I have change the SSL v3 statement in the security file. Any suggestions. Toby |
This comment has been minimized.
This comment has been minimized.
Thank you very much, it saved me hours and hours of headaches! To get the jar files from the idrac6 server, I had to use (with wine) an old Firefox (from 2011), so I didn't have to compile openssl and wget to allow sslv3 to work! |
This comment has been minimized.
This comment has been minimized.
I'm not sure how to find out what its looking for...
I wish it would say, I am looking for a file named x so I can name it that. |
This comment has been minimized.
This comment has been minimized.
If anyone is here trying to get this to work with an Avocent/Dell KVM switch, I was able to get it to work using a similar methodology. I probably overdid it with duplicate files, but here's my tree (depth truncated selectively)
You can customize with variables to your desire, but here's the launch command I got to work on Windows 10 with JRE 1.7.0 x64:
where:
Virtual media is not current working, but everything else seems to be. I extracted the .jar files from
|
This comment has been minimized.
This comment has been minimized.
I got this to work on Windows by doing the following:
This should work for a long time to come. But there will be more fun when the SSL Cert expires in 2024. |
This comment has been minimized.
This comment has been minimized.
Here is my batch file for windows 10 (64-bit, but easily changed for 32-bit)... it automatically downloads the jar files and unzips the .dll files if they don't exist so it can use the native dll libraries: Also, keep in mind if you still have to update the java settings to allow the older TLS to work:
|
This comment has been minimized.
This comment has been minimized.
@mermao1 @codigobinario |
This comment has been minimized.
This comment has been minimized.
Hi @ready4droid |
This comment has been minimized.
This comment has been minimized.
Apologies, I updated my post. This is using the inbuilt unzip from Windows 10 (possibly server 2016?). I can look into 2012 to see if it has any unzip options and re-work the script for you, but if you check my post and edit the java algorithms (the iDRAC 6 uses an old TLS protocol that is disabled in newer versions of Java, which is why you are getting the connection failed). The .zip files failing is not the reason it's not connecting though, it's needing to modify/edit your java security settings to allow the TLS connection. Once you fix this, you can unzip the .zip files by hand and just make sure the .dll files are in the lib folder and it'll work 100% correctly (and as long as it finds the .dll files in the lib folder it won't try to download/unzip them again). Since there can be so many versions of java I did not have it try to modify the security settings automatically (as finding JAVA_HOME and parsing the file would require admin rights as well). Ok, found this: So it seems if you update powershell to a version > 5.0 the auto unzip should function properly from Server 2008 and up. |
This comment has been minimized.
This comment has been minimized.
I'm not sure i have permission to install a newer version of power shell. |
This comment has been minimized.
This comment has been minimized.
First, those files don't have to be in your jre\lib folder, just in a lib folder from wherever you are running the .bat file. So the layout should look like this (you can put in any folder, but this is how the structure should end up). c:\idracscript\run.bat Second, if you're getting the connection failed, then it's a java issue someway. Either you need to add an exception for the site in the java configuration or something still isn't right in your security file. Also, I don't have server 2012 in order to do any testing so this is as much of a suggestion I can give. As long as you get the "Connection Failed" it is going to be an issue with java security. The .jar file will still run properly even without the .dll files, it will just use generic plugins that don't work as well for the IO and possibly be missing the ability to mount virtual CD's and stuff, but the connection itself should still establish. |
This comment has been minimized.
This comment has been minimized.
Perfect, its working now, it was the file location that was stopping it! |
This comment has been minimized.
This comment has been minimized.
Great to hear, glad you were able to get it working! |
This comment has been minimized.
This comment has been minimized.
This worked for me too in August 2020. Thanks so much everyone! |
This comment has been minimized.
This comment has been minimized.
Worked perfectly for me with the ...Win64... files. Many Thanks to everyone! |
This comment has been minimized.
This comment has been minimized.
Thank you for this! Works in Arch Linux using the jdk-7u79-linux-x64.tar.gz tarball from https://www.oracle.com/java/technologies/javase/javase7-archive-downloads.html#license-lightbox |
This comment has been minimized.
This comment has been minimized.
So, I had to jump through a lot of hoops to get this to work, but it DID work. That said, in case others are having the same issues I had, I'm posting here to tell you what I did. Note that this was on an x64 Windows machine.
|
This comment has been minimized.
This comment has been minimized.
Worked perfectly when I could not access with JNLP. Legend. |
This comment has been minimized.
This comment has been minimized.
@j0mbie: |
This comment has been minimized.
This comment has been minimized.
You saved me, this is awesome. Thanks |
This comment has been minimized.
This comment has been minimized.
A thousand thank yous! Finally a solution. I'll mop up the blood, sweat and tears and move on with my life. |
This comment has been minimized.
This comment has been minimized.
worked for me ! many thanks you saved my ass ! its a shame for java and dell we have to do all that to use their sh**ty products ! |
This comment has been minimized.
This comment has been minimized.
Cool, this help me to access my Dell R620 from my Mac OS. |
This comment has been minimized.
This comment has been minimized.
Finally it is worked on Windows 10. Thank you very much guys :) Specially thank you to @j0mbie |
This comment has been minimized.
This comment has been minimized.
Hey, thank you very much for your script.
As you can see, the kmport and vport are 4900 on my server, not 5900. I got that information out of the jnlp file. It complained about the native IO lib not working, but keyboard worked just fine despite that complaint. |
This comment has been minimized.
This comment has been minimized.
12/17/2020 02:28:18:947: User login response: 0 Getting that by running the script :| |
This comment has been minimized.
This comment has been minimized.
It is refusing the connection, i'm sure you see that. There isn't much to gain from the error message. I would suggest checking your firewall settings. Or find out why that port if refusing the connection otherwise. It looks like a configuration issue not the software. |
This comment has been minimized.
This comment has been minimized.
I have no firewall between my pc and my server... I used another script from GitHub, and it worked for me, don't know if it relies on my IDrac6 Version... But thanks for your fast Answer |
This comment has been minimized.
This comment has been minimized.
Post your version of Java to make sure you are using the right one and maybe someone else has an idea for you. |
This comment has been minimized.
This comment has been minimized.
I had this, too, because my server listens on a different port. Got the correct one out of the jnlp file. |
This comment has been minimized.
This comment has been minimized.
Thanks for your replies, i think the script has a section were the session between idrac and pc gets started. |
This comment has been minimized.
This comment has been minimized.
Hi! I'd like to make a big Thanks! bin\java -cp avctKVM.jar -Djava.library.path=.\lib com.avocent.idrac.kvm.Main ip=%drachost% vm=1 title=idrac-%2C+PowerEdge+T320%2C+User%3A+root user=%dracuser% passwd=%dracpwd% kmport=5900 vport=5900 apcp=1 reconnect=2 chat=1 F1=1 custom=0 scaling=15 minwinheight=100 minwinwidth=100 videoborder=0 version=2 "helpurl=https://%drachost%:443/help/contents.html" |
This comment has been minimized.
This comment has been minimized.
@j0mbie Thank you so much for writing that all out. Worked like a charm. |
This comment has been minimized.
tested also with following JRE on Win2012 R2 system