From a1f7f0ff99c593a249d3247a45df7c006498ccb8 Mon Sep 17 00:00:00 2001 From: Kyle Hagerty Date: Mon, 16 Mar 2020 14:21:38 -0500 Subject: [PATCH] fix scripts --- Linux/connect_idrac_kvm.sh | 4 ++++ MacOS/connect_idrac_kvm.sh | 4 ++++ Windows/connect_idrac_kvm.bat | 1 + 3 files changed, 9 insertions(+) diff --git a/Linux/connect_idrac_kvm.sh b/Linux/connect_idrac_kvm.sh index b5e584e..35162de 100644 --- a/Linux/connect_idrac_kvm.sh +++ b/Linux/connect_idrac_kvm.sh @@ -10,6 +10,10 @@ echo -n 'Password: ' read -s dracpwd echo +echo 'Downloading avctKVM.jar from host' +curl --no-check-certificate "https://$drachost/software/avctKVM.jar" > avctKVM.jar + +echo Executing JKVM Client... ./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" rm avctKVM.jar \ No newline at end of file diff --git a/MacOS/connect_idrac_kvm.sh b/MacOS/connect_idrac_kvm.sh index b5e584e..35162de 100644 --- a/MacOS/connect_idrac_kvm.sh +++ b/MacOS/connect_idrac_kvm.sh @@ -10,6 +10,10 @@ echo -n 'Password: ' read -s dracpwd echo +echo 'Downloading avctKVM.jar from host' +curl --no-check-certificate "https://$drachost/software/avctKVM.jar" > avctKVM.jar + +echo Executing JKVM Client... ./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" rm avctKVM.jar \ No newline at end of file diff --git a/Windows/connect_idrac_kvm.bat b/Windows/connect_idrac_kvm.bat index 11fc58c..2f52379 100644 --- a/Windows/connect_idrac_kvm.bat +++ b/Windows/connect_idrac_kvm.bat @@ -7,6 +7,7 @@ set /p dracpwd="Password: " ECHO Grabbing avctKVM.jar from host... powershell.exe -Command "[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true} ; $WebClient = New-Object System.Net.WebClient ; $WebClient.DownloadFile('https://%drachost%/software/avctKVM.jar','.\avctKVM.jar')" +ECHO Executing JKVM Client... 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" del avctKVM.jar \ No newline at end of file