Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- drachost=PUTIPHERE
- dracuser=root
- # dracpwd=calvin
- echo -n 'Password: '
- read -s dracpwd
- echo
- CWD=$(pwd)
- TMPDIR=$(mktemp -d -t idractmp)
- echo $TMPDIR
- cd $TMPDIR
- if [ ! -f avctKVM.jar ]; then
- wget --no-check-certificate "https://$drachost/software/avctKVM.jar"
- fi
- mkdir lib
- cd lib
- if [ ! -f avctKVMIOMac64.jar ]; then
- wget --no-check-certificate "https://$drachost/software/avctKVMIOMac64.jar"
- fi
- unzip -o avctKVMIOMac64.jar
- if [ ! -f avctVMMac64.jar ]; then
- wget --no-check-certificate "https://$drachost/software/avctVMMac64.jar"
- fi
- unzip -o avctVMMac64.jar
- cd ..
- 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"
- cd $CWD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement