Ignore:
Timestamp:
Aug 29, 2010, 2:48:03 PM (15 years ago)
Author:
rock
Message:

Add function Code: check_drbl_client.sh (Detect DRBL clinet status)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • drbl-virt/sbin/drbl_PXE_PV-VM_create.sh

    r193 r195  
    1111# [Source]
    1212source /opt/drbl-virt/conf/drbl-virt.conf
    13 #source $Work_Path/functions_drbl_PXE_PV-VM_create
    14 source ./functions_drbl_PXE_PV-VM_create
     13source $Work_Path/functions_drbl_virt
     14#source ./functions_drbl_PXE_PV-VM_create
    1515
    1616
     
    2828echo "Usage: drbl_PXE_PV-VM_create.sh options"
    2929echo "Options: "
    30 echo "-v    vm name"
    31 echo "-c    cpu number"
    32 echo "-r    ram size"
    33 echo "-h    deploy vm to which host"
     30echo "-v|--vm      vm name"
     31echo "-c|--cpu     cpu number"
     32echo "-r|--ram     ram size"
     33echo "-h|--host    deploy vm to which host"
    3434echo "Examples: "
    3535echo "drbl_PXE_PV-VM_create.sh options -v drbl110 -c 2 -r 512 -h drbl101"
     
    4646while [ $# -gt 0 ]; do
    4747    case "$1" in
    48         -v)
     48        -v|--vm)
    4949            shift
    5050            if [ -z "$(echo $1 |grep ^-.)" ]; then
     
    5858            fi
    5959            ;;
    60         -c)
     60        -c|--cpu)
    6161            shift
    6262            if [ -z "$(echo $1 |grep ^-.)" ]; then
     
    7070            fi
    7171            ;;
    72         -r)
     72        -r|--ram)
    7373            shift
    7474            if [ -z "$(echo $1 |grep ^-.)" ]; then
     
    8282            fi
    8383            ;; 
    84         -h)
     84        -h|--host)
    8585            shift
    8686            if [ -z "$(echo $1 |grep ^-.)" ]; then
     
    138138fi
    139139
    140 vm_cfg=${vm_dir}/${vm_name}.cfg
     140vm_cfg=${vm_dir}/${vm_name}_PXE_PV-VM.cfg
    141141
    142142if [ -e $vm_cfg ]; then
Note: See TracChangeset for help on using the changeset viewer.