#1 2019-01-18 10:37:02

darkrin
Member
From: Maldives
Registered: 2019-01-18
Posts: 25

line 1: arithmetic syntax error

Hi,

After install XSI backup to my EXSI and when i run the command from Putty

Also I have only 1 Datastore so im trying to take backup to it, for more details please see as follows.

VMFS-5      92.5G  11.7G     80.8G  13% /vmfs/volumes/datastore1
vfat       249.7M   8.0K    249.7M   0% /vmfs/volumes/5b85fa71-d74fd4ad-8d46-fa7d92fcbf5b
vfat         4.0G   8.1M      4.0G   0% /vmfs/volumes/5c38e7c0-e43a97b4-480c-000c29a098f9
vfat       249.7M 167.9M     81.8M  67% /vmfs/volumes/93109e78-9715952c-9fb0-b79cef11fd99
vfat       285.8M 202.6M     83.3M  71% /vmfs/volumes/5c38e7bf-22c075f4-4346-000c29a098f9


EXSI SSH [root@localhost:/vmfs/volumes/5c38e7c0-9554d197-eb7f-000c29a098f9/xsi-dir] /vmfs/volumes/datastore1/xsi-dir/xsibackup --backup-point=/vmfs/volumes/datastore1 --backup-type=all

I always get Two Error:
-----------------------
1. Error: skipping, not able to retrieve VM information
2. /vmfs/volumes/datastore1/xsi-dir/xsibackup: line 1: arithmetic syntax error

I need your guys Help ASAP.

For more details i have Past the result of mine.

###############################################################################
#
#  (c) XSIBACKUP-FREE 11.0.1 | Backup for (c) VMWARE ESXi Hypervisor by 33hops.com
#
###################################################################################

NOTICE: (c) XSIBackup kills any user launched jobs, make sure you don't overlap manual jobs
--------------------------------------------------------------------------------------------------------------------------------
NOTICE: (c) XSIBackup-Pro 11.2.2 is available to download
--------------------------------------------------------------------------------------------------------------------------------
XSIBackup PID:            55892                                           localhost.localdomain
Thu, 17 Jan 2019 19:50:31 +0000                              IPv4: 192.168.44.129/255.255.255.0
VMware ESXi 6.0.0 build-3620759                              (c) Rsync 3.1.0 as opt. dependency
--------------------------------------------------------------------------------------------------------------------------------
Backup Id:              unknown                         Intel(R) Core(TM) i5-7400 CPU @ 3.00GHz
--------------------------------------------------------------------------------------------------------------------------------
Message: crontab is installed for user root
--------------------------------------------------------------------------------------------------------------------------------
ADVICE: no SSD disks, please consider adding an SSD cache disk to improve performance
--------------------------------------------------------------------------------------------------------------------------------
sh: rsync: unknown operand
Backup user is: root
--------------------------------------------------------------------------------------------------------------------------------
--backup-point found at /vmfs/volumes/datastore1 (filesystem: VMFS-5)
--------------------------------------------------------------------------------------------------------------------------------
E-mail Warnings
--------------------------------------------------------------------------------------------------------------------------------
The e-mail report will not be sent because of the followig reasons:
The --mail-from string has not been set
The --smtp-srv string has not been set
The --smtp-port string has not been set
The --smtp-usr string has not been set, you need --smtp-usr if --smtp-auth is other than -none-
The --smtp-pwd string has not been set, you need --smtp-pwd if --smtp-auth is other than -none-
--------------------------------------------------------------------------------------------------------------------------------
Getting list of all VMs...
--------------------------------------------------------------------------------------------------------------------------------
1      Microsoft Windows 10 (64-bit)   [datastore1] Microsoft Windows 10 (64-bit)/Microsoft Windows 10 (64-bit).vmx   windows9_64Guest   vmx-11
--------------------------------------------------------------------------------------------------------------------------------
VMs to backup:
--------------------------------------------------------------------------------------------------------------------------------
1      Microsoft Windows 10 (64-bit)   [datastore1] Microsoft Windows 10 (64-bit)/Microsoft Windows 10 (64-bit).vmx   windows9_64Guest   vmx-11
Error: skipping, not able to retrieve VM information
--------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------
/vmfs/volumes/datastore1/xsi-dir/xsibackup: line 1: arithmetic syntax error

Offline

#2 2019-01-18 13:39:19

admin
Administrator
Registered: 2017-04-21
Posts: 1,363

Re: line 1: arithmetic syntax error

You should consider completing the job with --backup-prog=Vmkfstools and adding some SMTP server
Run this command in your host and post the output:

A=1;vim-cmd vmsvc/get.filelayout $A | grep -E '^[ \t].*\"\[.*.vmdk.*' | \
sed -e 's/\"//g' -e 's/\,//g' -e 's/\[//g' -e 's/\] /\//g' | awk '{print $0}' | \
sed -e 's/^ *//g' -e 's/ *$//g' | awk '{print "/vmfs/volumes/"$0}' | \
awk -F '/' 'sub(FS $NF,x)' | sort -u;vim-cmd vmsvc/get.filelayout $A | \
grep "Directory" | grep -v "<unset>" | awk -F '=' '{print $2}' | \
awk -F ']' '{print "/vmfs/volumes/"$2}' | sed -e 's/\"//g' -e 's/\ //g' -e 's/,//g' | sort -u

Offline

#3 2019-01-18 14:18:55

darkrin
Member
From: Maldives
Registered: 2019-01-18
Posts: 25

Re: line 1: arithmetic syntax error

Thanks For your Reply,

Sir I'm really very new for this, is it possible u to provide me how should i write or were should i write this cord --backup-prog=Vmkfstools

Well do u mean i should write like this,  /vmfs/volumes/datastore1/xsi-dir/xsibackup --backup-point=/vmfs/volumes/datastore1/backup --backup-prog=Vmkfstools

Offline

#4 2019-01-18 14:24:55

darkrin
Member
From: Maldives
Registered: 2019-01-18
Posts: 25

Re: line 1: arithmetic syntax error

The command you provide I just Copy and Past in my host, hence still same result.

Result:
-------
Microsoft Windows 7 (64-bit)    [datastore1] Microsoft Windows 7 (64-bit)/Microsoft Windows 7 (64-bit).vmx     windows7_64Guest   vmx-11
Error: skipping, not able to retrieve VM information
------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------
/vmfs/volumes/datastore1/xsi-dir/xsibackup: line 1: arithmetic syntax error

Offline

#5 2019-01-18 14:29:22

darkrin
Member
From: Maldives
Registered: 2019-01-18
Posts: 25

Re: line 1: arithmetic syntax error

[root@localhost:/vmfs/volumes/5c38e7c0-9554d197-eb7f-000c29a098f9/xsi-dir] A=1;vim-cmd vmsvc/get.filelayout $A | grep -E '^[ \t].*\"\[.*.vmdk.*' | \
> sed -e 's/\"//g' -e 's/\,//g' -e 's/\[//g' -e 's/\] /\//g' | awk '{print $0}' | \
> sed -e 's/^ *//g' -e 's/ *$//g' | awk '{print "/vmfs/volumes/"$0}' | \
> awk -F '/' 'sub(FS $NF,x)' | sort -u;vim-cmd vmsvc/get.filelayout $A | \
> grep "Directory" | grep -v "<unset>" | awk -F '=' '{print $2}' | \
> awk -F ']' '{print "/vmfs/volumes/"$2}' | sed -e 's/\"//g' -e 's/\ //g' -e 's/,//g' | sort -u
/vmfs/volumes/MicrosoftWindows10(64-bit)

Offline

#6 2019-01-18 15:03:03

admin
Administrator
Registered: 2017-04-21
Posts: 1,363

Re: line 1: arithmetic syntax error

XSIBackup does not allow parenthesis or any other especial character in VM names and/or paths. Use letters numbers spaces, underscores or hyphens. Fix this and it'll work.

Offline

#7 2019-01-18 19:24:52

darkrin
Member
From: Maldives
Registered: 2019-01-18
Posts: 25

Re: line 1: arithmetic syntax error

This is the command i use

EXSI SSH [root@localhost:/vmfs/volumes/5c38e7c0-9554d197-eb7f-000c29a098f9/xsi-dir] /vmfs/volumes/datastore1/xsi-dir/xsibackup --backup-point=/vmfs/volumes/datastore1 --backup-type=all

I don't see any special character and paths and spaces or underscores etc.... i wonder what is wrong with the command im using.

Offline

#8 2019-01-20 17:16:22

admin
Administrator
Registered: 2017-04-21
Posts: 1,363

Re: line 1: arithmetic syntax error

Your VM name has parenthesis in its name: Microsoft Windows 10 (64-bit). Your VM folder most probably also has parenthesis.

XSIBackup does not allow parenthesis or any other especial character in VM names and/or paths. Use letters numbers spaces, underscores or hyphens. Fix this and it'll work.

Offline

#9 2019-01-20 18:50:08

darkrin
Member
From: Maldives
Registered: 2019-01-18
Posts: 25

Re: line 1: arithmetic syntax error

oooomg, it worked i remove all Parenthesis and it worked yesss...Thank You Sooooo much

Offline

Board footer