19 lines
551 B
Bash
Executable File
19 lines
551 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo -n 'Host: '
|
|
read drachost
|
|
|
|
echo -n 'User: '
|
|
read dracuser
|
|
|
|
echo -n 'Password: '
|
|
read -s dracpass
|
|
echo
|
|
|
|
if [ -z "${SOCKS_PROXY}" ]
|
|
then
|
|
java -cp avctKVM.jar -Djava.library.path=./lib com.avocent.idrac.kvm.Main ip=$drachost vmprivilege=true kmport=5900 vport=5900 user=$dracuser passwd=$dracpass apcp=1 version=2
|
|
else
|
|
java -cp avctKVM.jar -Djava.library.path=./lib -DsocksProxyHost=$SOCKS_PROXY com.avocent.idrac.kvm.Main ip=$drachost vmprivilege=true kmport=5900 vport=5900 user=$dracuser passwd=$dracpass apcp=1 version=2
|
|
fi
|