< ^ txt
Wed Jan 6 06:37:15 EST 2016
Went to bed around 10:30, slept well, and woke up after six.
The waning crescent moon this morning, before sunrise. Venus and Saturn are clearly visible beneath it in the southeast sky. Venus is as bright as I ever remember seeing it.
http://www.beckstromobservatory.com/wp-content/uploads/2015/01/Jan6-copy.jpg
Sunny with a high of thirty-three today.
Goals:
Work:
- Rent updates
Done.
- Gather vm host/guest resource stats/capacity
Done.
#!/bin/bash
echo "============================== Host ================================"
uname -a
echo
echo "--------------------------- Host Memory ----------------------------"
free -h
echo
echo "------------------ Host Root and Backup Disk Space -----------------"
df -h --total | grep 'rootfs\|virtbackup\|total'
echo
echo "------------------------ Host Physical Disk ------------------------"
sudo pvscan
echo
echo "-------------------- Host Existing Logical Disks -------------------"
sudo lvscan
echo
echo "---------------- Host Total Logical Disk Space ----------------"
sudo lvdisplay --all | grep 'LV Size' | awk '{ sum += $3 } END { print sum " GiB total used by all logical volumes" }'
echo
echo "---------------------------- Host Info ----------------------------"
sudo virsh nodeinfo
echo
echo "----------------------------- Guests ------------------------------"
unset vmlist
readarray vmlist < <( sudo virsh list --all | awk '{ print $2 }' | tail -n +3 | head -n -1 )
for i in "${vmlist[@]}"
do
echo
sudo virsh dominfo $i | grep 'Name\|CPU(s)\|Max'
done
Twenty minute walk at lunch. Pleasant. It's amazing how much difference ten degrees makes.
Home:
- Read
< ^ txt