VMware Cloud Community
cyber_hero
Contributor
Contributor

VCBMounter ERROR - Unexpected extra arguments encountered

Always use this script to make the FULL_Vm Backup the virtual machine witch Consolidated Backup.

-


# SCRIPT # -


@echo off

Rem Get Day,Mth & Year from %Date%

set Day=%Date:~0,2%

set Mth=%Date:~3,2%

set Yr=%Date:~6,4%

"C:\Program Files\VMware\VMware Consolidated Backup Framework\vcbmounter.exe" -h server.domino.it -u domain\users -p <password> -a ipaddr:server.dominio.it -r e:\vm_backup\vm_name_%Day%-%Mth%-%Yr% -t fullvm nbd -L6

I moved

the script with the necessary changes in one other location and

infrastructure of another ESX 3.5 Update 4, but the script gives me the

following error. What can it be?

C:\Documents and Settings\xxx>"C:\Script VCB\VCB_Backup_VMPDC3.bat"

Current working directory: C:\Document

s and Settings\xxx

HOSTINFO: Seeing Intel CPU, numCo

resPerCPU 1 numThreadsPerCore 2.

HOSTINFO: This machine has 1 phys

ical CPUS, 1 total cores, and 2 logical CPUs.

Error: Unexpected extra argume

nts encountered.

VMware Consolidated Backup -- Virtual Machine Mount Utility

Version 1.5.0.4948 (build-150805)

Copyright (C) 1998-2009 VMware, Inc. All rights reserved.

Usage:

vcbMounter -h <url> -u <username> <operation> [<verbosi

ty>]

+ <url> := <hostname>+

+ <operation> := <mount_op> | <file_umount_op> | <auto_umount_op>+

+ <verbosity> := -L (0-6)+

+ <mode> := -m "san"|"nbd"|"nbdssl"|"hotadd"+

+ <mount_op> := -a <VM> <mountPoint> [<datastores>]+

+ <file_umount_op> := -d <VM> <SsId> <mountPoint>+

+ <auto_umount_op> := -U <mountpoint_dir>+

+ <VM> := <moref>|<uuid>|<ipaddr>|<...> +

+ (See VM Backup guide for complete list of search+

+ criteria.)+

+ <mountPoint> := -r <dir>+

+ <flavor> := <fullvm_flavor>|<file_flavor>+

+ <datastores> := -C <datastore_catalog_file>+

+ <SsId> := -n "ssid:"<Sdk-MoRef>+

+ <fullvm_flavor> := -t "fullvm" +

+ <file_flavor> := -t "file"+

+ <export-flags> := -M (0|1) -F (0|1)+

If no password is specified on the command line, you will be prompted for one.

Export Flags:

+ -M: If set, the disk is exported into a single (monolithic) file.+

+ When turned off (default), the disk is split into multiple 2GB files.+

+ -F: If set, the disk is exported as "flat" disk, with no optimizations.+

+ When turned off (default), the exported disk files will be more compact as+

+ unused space in the disk image is not included in the exported file.+

Examples:

+) Do a full VM style backup of vm "foo.bar.com" across the SAN,

+ talk to ESX/VC host "wisdom.bar.com" as user "vc" with+

+ password "foobar". - Export will go to "d:\backups":+

+ vcbMounter -h wisdom.bar.com -u vc -p foobar -a ipaddr:foo.bar.com \+

+ -r d:\backups\foo-fullVM -t fullvm+

+ Full VM backups export an entire virtual machine into a set of+

+ files within a directory. Backing up this file set allows for the+

+ entire virtual machine to be restored later on.+

+) Do an automatic unmount of the export just created:

+ vcbMounter -h wisdom.bar.com -u vc -p foobar \+

+ -U d:\backups\foo-fullVM+

+ An automatic unmount will work for both file-level and full VM mounts.+

+ (A full VM unmount operation just has to delete the exported files.)+

C:\Documents and Settings\dezzani>

The infrastructure consists of two Dell PowerEdge 2950 server HBAs and Qlogic Storage DELL/EMC2 CX310 SPA.

0 Kudos
5 Replies
AndreTheGiant
Immortal
Immortal

Where is -m ?

(before nbd)

Andre

**if you found this or any other answer useful please consider allocating points for helpful or correct answers

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos
cyber_hero
Contributor
Contributor

Fair point, but does not work the same, I did all the tests, I have now

verified to run the script with me does not work same problem.

0 Kudos
AndreTheGiant
Immortal
Immortal

Is there a space in "-L 6" ?

Andre

**if you found this or any other answer useful please consider allocating points for helpful or correct answers

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos
cyber_hero
Contributor
Contributor

No space, but the problem is not in the script, and as such made and

put into other Vmare infrastructure ESX 3.5 works correctly so is

written, I think the problem is tied to 'hosts, in fact, the script

hangs when trying info on the 'host'.

0 Kudos
AndreTheGiant
Immortal
Immortal

The error "Unexpected extra arguments encountered." seems not related with host problem, but with some syntax error.

Have you tried to write the vcbmounter from command line, without and variable? Or with the "name" lookup (instead of ipaddr)?

Andre

**if you found this or any other answer useful please consider allocating points for helpful or correct answers

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos