Changeset 219 for drbl-virt/sbin/check_drbl_total_vm
- Timestamp:
- Oct 20, 2010, 3:33:09 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
drbl-virt/sbin/check_drbl_total_vm
r208 r219 27 27 # local variables 28 28 vm_IPs=$(cat $vm_IP_file | awk '{print $1}') 29 IP_status="online"30 29 31 30 for vm_IP in $vm_IPs 32 31 do 33 32 # check network status 33 IP_status="online" 34 34 ping -c1 -w1 $vm_IP > /dev/null 2>&1 || IP_status="offline" 35 35 vm_IP_Hostname=$(sed -n "/$vm_IP/p" $vm_IP_file)
Note: See TracChangeset
for help on using the changeset viewer.