Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PowerCLI C:\>$p = Get-Credential
- PowerCLI C:\>$k = "vcenter1"
- PowerCLI C:\>Disconnect-VIServer -Confirm:$false $k
- PowerCLI C:\>Connect-VIServer -Credential $p $k
- PowerCLI C:\>Get-VM test1p | Select Id
- VirtualMachine-vm-951
- # Veeam started backing up test1p
- PowerCLI C:\>$OBJ = "VirtualMachine-vm-951"
- PowerCLI C:\>$y = Get-VM -Id $OBJ
- PowerCLI C:\>$yv = $y | Get-View
- # Watching Veeam's progress.... Veeam just created its temporary snapshot of test1p, OK
- PowerCLI C:\>$ys = Get-Snapshot -VM $y; $ysv = $ys | get-view
- PowerCLI C:\>$a = @(); foreach($z in $ysv.Config.Hardware.Device) {; if ($z.DeviceInfo.Label.ToLower() -match ".*hard disk.*") { $a += $z } }
- PowerCLI C:\>$a | foreach {$_.Key}
- 2000
- 2001
- PowerCLI C:\> $yv.QueryChangedDiskAreas($ysv.MoRef,2001,0,"52 2d 7b 8f ac 61 51 cc-77 4c 7b ec 91 50 bb 7b/1")
- StartOffset : 0
- Length : 2147483648
- ChangedArea : {VMware.Vim.DiskChangeExtent, VMware.Vim.DiskChangeExtent, VM
- ware.Vim.DiskChangeExtent, VMware.Vim.DiskChangeExtent...}
- DynamicType :
- DynamicProperty :
- PowerCLI C:\> $yv.QueryChangedDiskAreas($ysv.MoRef,2001,0,"52 2d 7b 8f ac 61 51 cc-77 4c 7b ec 91 50 bb 7b/1")
- StartOffset : 0
- Length : 2147483648
- ChangedArea : {VMware.Vim.DiskChangeExtent, VMware.Vim.DiskChangeExtent, VM
- ware.Vim.DiskChangeExtent, VMware.Vim.DiskChangeExtent...}
- DynamicType :
- DynamicProperty :
- # vCenter just recorded a "Reconfigure Virtual machine" task initiated by veeam against the backup Source proxy VM
- PowerCLI C:\> $yv.QueryChangedDiskAreas($ysv.MoRef,2001,0,"52 2d 7b 8f ac 61 51 cc-77 4c 7b ec 91 50 bb 7b/1")
- Exception calling "QueryChangedDiskAreas" with "4" argument(s): "A specified parameter was not correct.
- deviceKey"
- At line:1 char:26
- + $yv.QueryChangedDiskAreas <<<< ($ysv.MoRef,2001,0,"52 2d 7b 8f ac 61 51 cc-77
- 4c 7b ec 91 50 bb 7b/1")
- + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
- + FullyQualifiedErrorId : DotNetMethodException
- PowerCLI C:\>
- PowerCLI C:\> $yv.QueryChangedDiskAreas($ysv.MoRef,2001,0,"*")
- Exception calling "QueryChangedDiskAreas" with "4" argument(s): "A specified parameter was not correct. deviceKey"
- At line:1 char:26
- + $yv.QueryChangedDiskAreas <<<< ($ysv.MoRef,2001,0,"*")
- + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
- + FullyQualifiedErrorId : DotNetMethodException
- matching vpxd LOG entry
- ------ In-memory logs end --------
- 2011-12-21T14:17:47.531-06:00 [04428 error 'Default' opID=26302c1d] Section for VMware VirtualCenter, pid=5496, version=5.0.0, build=build-455964, option=Release
- -->
- 2011-12-21T14:17:47.540-06:00 [04428 info 'Default' opID=26302c1d] [VpxLRO] -- FINISH task-internal-1352121 -- vm-979 -- vim.VirtualMachine.queryChangedDiskAreas -- 5278d30f-0599-c93e-3e83-b1a9459ea239(527b4c44-711b-60af-a9ad-ad5f90e738cc)
- 2011-12-21T14:17:47.541-06:00 [04428 info 'Default' opID=26302c1d] [VpxLRO] -- ERROR task-internal-1352121 -- vm-979 -- vim.VirtualMachine.queryChangedDiskAreas: vmodl.fault.InvalidArgument:
- --> Result:
- --> (vmodl.fault.InvalidArgument) {
- --> dynamicType = <unset>,
- --> faultCause = (vmodl.MethodFault) null,
- --> invalidProperty = "deviceKey",
- --> msg = "A specified parameter was not correct.
- --> deviceKey",
- --> }
- --> Args:
- -->
- --> Arg snapshot:
- --> 'vim.vm.Snapshot:snapshot-1028'
- --> Arg deviceKey:
- --> 2001
- --> Arg startOffset:
- --> 0
- --> Arg changeId:
- --> "52 29 fd 70 83 96 04 4b-57 e0 e7 40 1d 14 98 d4/35"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement