fix scripts
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user