Quantcast
Channel: VMware Communities: Message List - minor script error
Viewing all articles
Browse latest Browse all 12

minor script error

$
0
0
hi:
   I upgrade our esxi to 5.0 U1 and found  strange message "Insufficient arguments." when using ghettoVCB to backup.
   after debugging I found that message comes form the command "vim-cmd vmsvc/snapshot.remove".
   the script line is below:
   ${VMWARE_CMD} vmsvc/snapshot.remove | grep "snapshotId" > /dev/null 2>&1
   the script line redirect error of the "grep" command, which seems meaningless. we should redirect error of "vim-cmd" or the whole line, not "grep".
   so that line may be written like:
   (${VMWARE_CMD} vmsvc/snapshot.remove | grep "snapshotId") > /dev/null 2>&1
    I saw other placees in the script also redirect error of the "grep" command. maybe those need to be fixed also.

Viewing all articles
Browse latest Browse all 12

Trending Articles