Teljes szöveg:
- Oracle VM CPU pin map
- ACT_TTY=$(ps -ef | awk "/$$/{if ("'$2'"=$$"') print $6}' | head -n1 | awk -F'/' '{print $2}') else ACT_TTY=$(tty|grep -oP '(?<=/dev/pts/).*') fi SSH_USER=$(w | awk '/pts\/'${ACT_TTY}'\s/{print $1}') red=$'\e[1;31m' grn=$'\e[1;32m' yel=$'\e[1... ]'` KIMENET="-=[ ${yel}$FEJLEC${whi} ]=-" printf "${whi}" for I in `seq 1 $2`; do printf '#';
- Fizikai diszkeket átnevező szkript
- 1; } ovm_cli "list PhysicalDisk" | awk -F' ' '/:/{print $2}' | sed 's/id://' | while read SOR; do #ovm_cli "list PhysicalDisk" | awk -F' ' '/ \([0-9]/{print $2}' | sed 's/id://' | while read SOR; do ... /g') DISK_ID=$(awk -F';' "/$DISK_UUID/"'{print $1}' $TMP_FILE) echo -e "$(env printf '\u250F') A(z) $DISK_UUID UUID diszk atnevezese" | tee -a
- VM-ek diszkjeinek listázása
- #!/bin/bash . ovm_functions.sh kulcs_ellenorzes printf $yel echo "VM" "Disk_name" "Repository/WWN" "Disk_Size" "Virt/Phys"| awk '{printf "%-40s %-30s %-40s %10s %3s\n",$1,$2,$3,$4,$5}' printf $end ovm_cli "list vmdiskMapping" | egrep -v '(E... isk name=$DISK_ID" "Max \(GiB\)") printf ${whi} echo "$VM" "$DISK_NAME" "
- VM-ek listázása
- E} NAME=$(cat ${TMP_FILE} | awk -F'=' '/Name/{print $2}') MEMORY=$(cat ${TMP_FILE} | grep -v Max | awk -F'=' '/Memory/{print $2}') VCPU=$(cat ${TMP_FILE} | grep -v Max | awk -F'=' '/Processors/{print $2}') OS=$(cat ${TMP_FILE} | awk -F'=' '/Operating System/{print $2}') IP=$(host $NAME | awk '{print $NF}')
- Fizikai diszkek tömeges mappelése VM(ek)hez
- | cut -d' ' -f 2 | sed 's/,/ /g') echo "$(env printf '\u250F') A(z) ${yel}$VDISK_NAME${end} hozzarend... D\"" | grep -oP "VmDiskMapping.*(?==)" | awk 'END{print $NF}') echo -e "$(env printf '\u2523')$(env printf '\u2501')> ${grn}$VM_NAME${end} VM ${grn}$SLOT${end}. slotjahoz" printf "
- ovm_functions.sh szkript
- 9 10; do local temp=${spinstr#?} printf " [%c]" "$spinstr" local spinstr=$temp${spinstr%"$temp"} sleep $delay printf "\b\b\b\b" done printf " \b\b" } </file>