Changeset 197
- Timestamp:
- Aug 29, 2010, 4:26:10 PM (14 years ago)
- Location:
- drbl-virt/sbin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
drbl-virt/sbin/check_drbl_client.sh
r195 r197 42 42 fi 43 43 44 echo " $client_hostname $client_IP$IP_status CPU_Core=$client_CPU_core Ram=$client_Ram idle_CPU=$client_idle_CPU unused_Ram=$client_unused_Ram"45 echo " $client_hostname $client_IP$IP_status $client_CPU_core $client_Ram $client_idle_CPU $client_unused_Ram" >> $drbl_client_file44 echo "[$client_hostname $client_IP] $IP_status CPU_Core=$client_CPU_core Ram=$client_Ram idle_CPU=$client_idle_CPU unused_Ram=$client_unused_Ram" 45 echo "[$client_hostname $client_IP] $IP_status $client_CPU_core $client_Ram $client_idle_CPU $client_unused_Ram" >> $drbl_client_file 46 46 47 47 done -
drbl-virt/sbin/check_drbl_vm.sh
r196 r197 38 38 vm_hostnames="$(cat $drbl_vm_xentop_file | sed -n '3,$p' | awk '{print $1}')" 39 39 40 printf "[$client_hostname] 41 printf "[$client_hostname] 40 printf "[$client_hostname]\n" >> $drbl_vm_file 41 printf "[$client_hostname]\n" 42 42 declare -i i=1 43 43 … … 48 48 vm_CPU_loading="$(cat $drbl_vm_xentop_file | grep $vm_hostname | awk '{print $4}')" 49 49 vm_Ram_loading="$(cat $drbl_vm_xentop_file | grep $vm_hostname | awk '{print $6}')" 50 printf "VM$i: $vm_hostname $vm_CPU_core ${vm_Ram}M $vm_CPU_loading $vm_Ram_loading" >> $drbl_vm_file51 printf "VM$i: $vm_hostname $vm_CPU_core ${vm_Ram}M $vm_CPU_loading $vm_Ram_loading"50 printf "VM$i: $vm_hostname $vm_CPU_core ${vm_Ram}M $vm_CPU_loading%% $vm_Ram_loading%%\n" >> $drbl_vm_file 51 printf "VM$i: $vm_hostname VCPU=$vm_CPU_core Mem=${vm_Ram}M VCPU_loading=$vm_CPU_loading%% Mem_usage=$vm_Ram_loading%%\n" 52 52 i=i+1 53 53 done 54 54 55 55 fi 56 printf "\n" >> $drbl_vm_file57 printf "\n"58 56 done 59 57
Note: See TracChangeset
for help on using the changeset viewer.