Ignore:
Timestamp:
Sep 9, 2010, 9:53:01 AM (14 years ago)
Author:
rock
Message:

Modify: default VM numbers (the same numbers of drbl clients)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • drbl-virt/sbin/functions_drbl_virt

    r204 r205  
    197197VM_first_IP=$(echo $Host_last_IP | cut -d "." -f 1-3)
    198198VM_first_IP="${VM_first_IP}.${Host_last_IP_4}"
     199drbl_original_clients_nu=$(sed -n '/total_client_no/p' /etc/drbl/drblpush.conf | sed 's/total_client_no=//')
     200
    199201
    200202echo "The VM IP Range will start from -> [$VM_first_IP]"
     
    204206    echo ""
    205207    echo "Input VM number/IP range for $eth (ex. 40)."
     208    echo "default is the same numbers of drbl clients"
     209   
    206210
    207211    jude_2="no"
     
    209213    do
    210214        jude_2="yes"
    211         read -p "(If you have 10 PCs(4-core), suggestion is 30): " VM_IP_range
     215        echo "(If you have 10 PCs(4-core), suggestion is 30): "
     216        read -p "[$drbl_original_clients_nu] " VM_IP_range
    212217        if [ $((${VM_IP_range}+${Host_last_IP_4})) -ge 254 ]; then
    213218            echo "range can't greater than 254"
Note: See TracChangeset for help on using the changeset viewer.