fix scripts

This commit is contained in:
Kyle Hagerty
2020-03-16 14:21:38 -05:00
parent aed030ed40
commit a1f7f0ff99
3 changed files with 9 additions and 0 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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